当前位置:网站首页>GIS实战应用案例100篇(三十四)-拼接2020globeland30
GIS实战应用案例100篇(三十四)-拼接2020globeland30
2022-04-23 06:13:00 【格图洛书】
2020globeland30
产品介绍详见http://www.globallandcover.com/Page/sysFrame/dataIntroduce.html?columnID=81&head=product¶=product&type=data
总的来说,主要数据是含有投影的GeoTIFF格式,一共966个,每个tif连同对应的坐标信息文件、分类影像接图表文件、元数据文件压缩成一个zip,然后所有zip再压缩成一个zip。整个压缩包有7.18G大。
目的
将966个tif拼接成全球经纬度数据。
过程
计划用gdal读取tif然后xarray拼接,如果gdal能直接读取压缩包里指定数据当然是最好,可惜不能。那么就只把tif解压出来,“没用的”其他文件就不必浪费心情解压出来了。
解压
1import zipfile
2from os.path import exists, basename
3from os import makedirs
4
5
6globeland30_zippath = 'G:/GEO_DATA/landcover/globeland30/2020LC030.zip'
7globeland30_tifdir = 'G:/GEO_DATA/landcover/globeland30/tif'
8if not exists(globeland30_tifdir):
9 makedirs(globeland30_tifdir)
10globeland30_zipfile = zipfile.ZipFile(globeland30_zippath)
11for zipinfo in globeland30_zipfile.filelist:
12 a_zipfile = zipfile.ZipFile(globeland30_z
版权声明
本文为[格图洛书]所创,转载请带上原文链接,感谢
https://getuluoshu.blog.csdn.net/article/details/123377925
边栏推荐
- UEFI学习01-ARM AARCH64编译、ArmPlatformPriPeiCore(SEC)
- PyTorch 18. torch.backends.cudnn
- Résolution du système
- PyTorch 14. module类
- Pytorch trains the basic process of a network in five steps
- onnxruntime-gpu 1.7 出现的警告“Force fallback to CPU execution for node: Gather_191”等
- 【點雲系列】SG-GAN: Adversarial Self-Attention GCN for Point Cloud Topological Parts Generation
- 【期刊会议系列】IEEE系列模板下载指南
- Chapter 4 pytoch data processing toolbox
- Computer shutdown program
猜你喜欢
1.1 PyTorch和神经网络
ArcGIS License Server Administrator 无法启动解决方法
【点云系列】SG-GAN: Adversarial Self-Attention GCN for Point Cloud Topological Parts Generation
C language, a number guessing game
1.1 pytorch and neural network
第2章 Pytorch基础1
Pymysql connection database
机器学习笔记 一:学习思路
Chapter 4 pytoch data processing toolbox
Chapter 2 pytoch foundation 2
随机推荐
Machine learning III: classification prediction based on logistic regression
【動態規劃】不同路徑2
Visual studio 2019 installation and use
enforce fail at inline_container.cc:222
PyTorch 模型剪枝实例教程三、多参数与全局剪枝
利用官方torch版GCN训练并测试cora数据集
Chapter 4 pytoch data processing toolbox
Systrace 解析
[2021 book recommendation] learn winui 3.0
深度学习模型压缩与加速技术(一):参数剪枝
N states of prime number solution
Android exposed components - ignored component security
扫雷小游戏
Systrace 解析
[dynamic programming] Yang Hui triangle
Face_ Recognition face detection
【动态规划】最长递增子序列
[dynamic programming] triangle minimum path sum
pth 转 onnx 时出现的 gather、unsqueeze 等算子
How keras saves and loads the keras model