当前位置:网站首页>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
边栏推荐
- 给女朋友写个微信双开小工具
- Exploration of SendMessage principle of advanced handler
- Pytoch model saving and loading (example)
- Raspberry Pie: two color LED lamp experiment
- torch_ Geometric learning 1, messagepassing
- Machine learning II: logistic regression classification based on Iris data set
- swin transformer 转 onnx
- 机器学习——朴素贝叶斯
- 【動態規劃】不同路徑2
- 如何利用qemu搭建SOC protoype:80行代码实现一个Cortex M4 模拟器
猜你喜欢
Summary of image classification white box anti attack technology
[point cloud series] sg-gan: advantageous self attention GCN for point cloud topological parts generation
Chapter 8 generative deep learning
Paddleocr image text extraction
【点云系列】SG-GAN: Adversarial Self-Attention GCN for Point Cloud Topological Parts Generation
Face_ Recognition face detection
Chapter 2 pytoch foundation 1
ArcGIS license server administrator cannot start the workaround
c语言编写一个猜数字游戏编写
Write a wechat double open gadget to your girlfriend
随机推荐
第2章 Pytorch基础1
How to standardize multidimensional matrix (based on numpy)
SSL / TLS application example
【点云系列】Relationship-based Point Cloud Completion
红外传感器控制开关
机器学习——PCA与LDA
PyTorch 19. PyTorch中相似操作的区别与联系
机器学习——模型优化
unhandled system error, NCCL version 2.7.8
Pytorch模型保存与加载(示例)
C language, a number guessing game
【 planification dynamique】 différentes voies 2
Device Tree 详解
LPDDR4笔记
三子棋小游戏
[dynamic programming] longest increasing subsequence
Gee configuring local development environment
MySQL数据库安装与配置详解
Gephi tutorial [1] installation
The simplest and complete example of libwebsockets