当前位置:网站首页>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
边栏推荐
- Five methods are used to obtain the parameters and calculation of torch network model
- SSL / TLS application example
- SHA512/384 原理及C语言实现(附源码)
- torch_ Geometric learning 1, messagepassing
- The simplest and complete example of libwebsockets
- Chapter 2 pytoch foundation 2
- 第2章 Pytorch基础1
- PaddleOCR 图片文字提取
- Handlerthread principle and practical application
- 【点云系列】 A Rotation-Invariant Framework for Deep Point Cloud Analysis
猜你喜欢

如何利用qemu搭建SOC protoype:80行代码实现一个Cortex M4 模拟器

Wechat applet uses wxml2canvas plug-in to generate some problem records of pictures

【点云系列】Unsupervised Multi-Task Feature Learning on Point Clouds

PaddleOCR 图片文字提取

1.2 初试PyTorch神经网络

直观理解 torch.nn.Unfold

Face_ Recognition face detection

Chapter 2 pytoch foundation 1

【3D形状重建系列】Implicit Functions in Feature Space for 3D Shape Reconstruction and Completion

Infrared sensor control switch
随机推荐
【Tensorflow】共享机制
pth 转 onnx 时出现的 gather、unsqueeze 等算子
PyTorch 13. 嵌套函数和闭包(狗头)
Unable to determine the device handle for GPU 0000:02:00.0: GPU is lost.
【点云系列】Pointfilter: Point Cloud Filtering via Encoder-Decoder Modeling
Android exposed components - ignored component security
torch.where能否传递梯度
安装 pycuda 出现 PEP517 的错误
ArcGIS license server administrator cannot start the workaround
深度学习模型压缩与加速技术(一):参数剪枝
【点云系列】 场景识别类导读
PaddleOCR 图片文字提取
[3D shape reconstruction series] implicit functions in feature space for 3D shape reconstruction and completion
How keras saves and loads the keras model
Résolution du système
Pytorch模型保存与加载(示例)
Summary of image classification white box anti attack technology
Solution to slow compilation speed of Xcode
swin transformer 转 onnx
unhandled system error, NCCL version 2.7.8