当前位置:网站首页>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
边栏推荐
- 机器学习——PCA与LDA
- Handlerthread principle and practical application
- Write a wechat double open gadget to your girlfriend
- Chapter 3 pytoch neural network toolbox
- 【点云系列】SG-GAN: Adversarial Self-Attention GCN for Point Cloud Topological Parts Generation
- 【點雲系列】SG-GAN: Adversarial Self-Attention GCN for Point Cloud Topological Parts Generation
- SHA512/384 原理及C语言实现(附源码)
- 安装 pycuda 出现 PEP517 的错误
- PyTorch 19. PyTorch中相似操作的区别与联系
- ThreadLocal, just look at me!
猜你喜欢

【点云系列】Multi-view Neural Human Rendering (NHR)

ArcGIS License Server Administrator 无法启动解决方法

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

rearrange 和 einsum 真的优雅吗

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

ThreadLocal, just look at me!

1.2 preliminary pytorch neural network
![[point cloud series] a rotation invariant framework for deep point cloud analysis](/img/43/065d552d216b3e253d25dcfdfaaff4.png)
[point cloud series] a rotation invariant framework for deep point cloud analysis

【点云系列】 A Rotation-Invariant Framework for Deep Point Cloud Analysis

Wechat applet uses wxml2canvas plug-in to generate some problem records of pictures
随机推荐
【点云系列】SO-Net:Self-Organizing Network for Point Cloud Analysis
[point cloud series] pnp-3d: a plug and play for 3D point clouds
多机多卡训练时的错误
PyTorch 11.正则化
图像分类白盒对抗攻击技术总结
机器学习——PCA与LDA
【点云系列】Relationship-based Point Cloud Completion
PyTorch 21. PyTorch中nn.Embedding模块
PyTorch 19. PyTorch中相似操作的区别与联系
【点云系列】点云隐式表达相关论文概要
【指标】Precision、Recall
torch_geometric学习一,MessagePassing
enforce fail at inline_container.cc:222
Pytorch trains the basic process of a network in five steps
树莓派:双色LED灯实验
三子棋小游戏
[2021 book recommendation] kubernetes in production best practices
Computer shutdown program
Pytorch模型保存与加载(示例)
Summary of image classification white box anti attack technology