当前位置:网站首页>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
边栏推荐
- Modifying a column with the 'identity' pattern is not supported
- SSL / TLS application example
- Reading notes - activity
- PyTorch最佳实践和代码编写风格指南
- MySQL installation and configuration - detailed tutorial
- 【点云系列】 场景识别类导读
- 免费使用OriginPro学习版
- 【動態規劃】不同路徑2
- [point cloud series] pnp-3d: a plug and play for 3D point clouds
- Computer shutdown program
猜你喜欢

图像分类白盒对抗攻击技术总结
![[3D shape reconstruction series] implicit functions in feature space for 3D shape reconstruction and completion](/img/4d/6d5821759766a6bf1d77ad51b69e24.png)
[3D shape reconstruction series] implicit functions in feature space for 3D shape reconstruction and completion

第2章 Pytorch基础1

LPDDR4笔记

【点云系列】PnP-3D: A Plug-and-Play for 3D Point Clouds

Device Tree 详解

PaddleOCR 图片文字提取

【点云系列】Pointfilter: Point Cloud Filtering via Encoder-Decoder Modeling

第1章 NumPy基础

第2章 Pytorch基础2
随机推荐
RISCV MMU 概述
利用官方torch版GCN训练并测试cora数据集
Five methods are used to obtain the parameters and calculation of torch network model
EasyUI combobox determines whether the input item exists in the drop-down list
免费使用OriginPro学习版
第2章 Pytorch基础2
Compression and acceleration technology of deep learning model (I): parameter pruning
torch.mm() torch.sparse.mm() torch.bmm() torch.mul() torch.matmul()的区别
【点云系列】Multi-view Neural Human Rendering (NHR)
第3章 Pytorch神经网络工具箱
Machine learning II: logistic regression classification based on Iris data set
Thanos. SH kill bully script, easily delete half of the files in the system at random
PyTorch 19. PyTorch中相似操作的区别与联系
机器学习——朴素贝叶斯
第4章 Pytorch数据处理工具箱
Common regular expressions
Reading notes - activity
安装 pycuda 出现 PEP517 的错误
ARMCC/GCC下的stack protector
电脑关机程序