当前位置:网站首页>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
边栏推荐
- 【点云系列】 A Rotation-Invariant Framework for Deep Point Cloud Analysis
- EasyUI combobox determines whether the input item exists in the drop-down list
- 【点云系列】Fully-Convolutional geometric features
- The simplest and complete example of libwebsockets
- 【点云系列】Unsupervised Multi-Task Feature Learning on Point Clouds
- 【点云系列】 场景识别类导读
- 被 onnx.checker.check_model 检查出的常见错误
- Write a wechat double open gadget to your girlfriend
- 面试总结之特征工程
- ThreadLocal, just look at me!
猜你喜欢

使用 trt 的int8 量化和推断 onnx 模型

face_recognition人脸检测

【点云系列】Learning Representations and Generative Models for 3D pointclouds

RISCV MMU 概述

PyMySQL连接数据库

1.1 PyTorch和神经网络

直观理解 torch.nn.Unfold

【点云系列】FoldingNet:Point Cloud Auto encoder via Deep Grid Deformation
![[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

【點雲系列】SG-GAN: Adversarial Self-Attention GCN for Point Cloud Topological Parts Generation
随机推荐
[point cloud series] a rotation invariant framework for deep point cloud analysis
PyTorch 9. 优化器
Write a wechat double open gadget to your girlfriend
Reading notes - activity
PyTorch 10. 学习率
Unable to determine the device handle for GPU 0000:02:00.0: GPU is lost.
How to standardize multidimensional matrix (based on numpy)
【点云系列】Neural Opacity Point Cloud(NOPC)
PyTorch 11.正则化
【点云系列】DeepMapping: Unsupervised Map Estimation From Multiple Point Clouds
PyTorch 12. hook的用法
Pytorch best practices and coding style guide
[2021 book recommendation] kubernetes in production best practices
机器学习 三: 基于逻辑回归的分类预测
Handlerthread principle and practical application
Paddleocr image text extraction
PyTorch 13. 嵌套函数和闭包(狗头)
Data class of kotlin journey
Gobang games
5种方法获取Torch网络模型参数量计算量等信息