当前位置:网站首页>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
边栏推荐
- Chapter 5 fundamentals of machine learning
- Wechat applet uses wxml2canvas plug-in to generate some problem records of pictures
- [point cloud series] sg-gan: advantageous self attention GCN for point cloud topological parts generation
- PyTorch训练一个网络的基本流程5步法
- Gee configuring local development environment
- 第1章 NumPy基础
- 【点云系列】SG-GAN: Adversarial Self-Attention GCN for Point Cloud Topological Parts Generation
- Pytorch模型保存与加载(示例)
- Data class of kotlin journey
- swin transformer 转 onnx
猜你喜欢

第3章 Pytorch神经网络工具箱

【点云系列】SG-GAN: Adversarial Self-Attention GCN for Point Cloud Topological Parts Generation

图像分类白盒对抗攻击技术总结

WinForm scroll bar beautification

第4章 Pytorch数据处理工具箱

ARMCC/GCC下的stack protector

【点云系列】DeepMapping: Unsupervised Map Estimation From Multiple Point Clouds

【3D形状重建系列】Implicit Functions in Feature Space for 3D Shape Reconstruction and Completion
![[point cloud series] sg-gan: advantageous self attention GCN for point cloud topological parts generation](/img/1d/92aa044130d8bd86b9ea6c57dc8305.png)
[point cloud series] sg-gan: advantageous self attention GCN for point cloud topological parts generation

ArcGIS license server administrator cannot start the workaround
随机推荐
[2021 book recommendation] kubernetes in production best practices
Use originpro express for free
1.1 pytorch and neural network
【动态规划】杨辉三角
Thanos. SH kill bully script, easily delete half of the files in the system at random
【动态规划】三角形最小路径和
The simplest and complete example of libwebsockets
Some common data type conversion methods in pytorch are similar to list and NP Conversion method of ndarray
直观理解 torch.nn.Unfold
【点云系列】SO-Net:Self-Organizing Network for Point Cloud Analysis
Chapter 2 pytoch foundation 2
[3D shape reconstruction series] implicit functions in feature space for 3D shape reconstruction and completion
F.pad 的妙用
Chapter 8 generative deep learning
unhandled system error, NCCL version 2.7.8
PyTorch 21. PyTorch中nn.Embedding模块
Keras如何保存、加载Keras模型
【期刊会议系列】IEEE系列模板下载指南
1.1 PyTorch和神经网络
torch.where能否传递梯度