当前位置:网站首页>100 GIS practical application cases (34) - splicing 2020globeland30
100 GIS practical application cases (34) - splicing 2020globeland30
2022-04-23 13:02:00 【Gatulo book】
2020globeland30
See... For product introduction http://www.globallandcover.com/Page/sysFrame/dataIntroduce.html?columnID=81&head=product¶=product&type=data
in general , The main data contains projection GeoTIFF Format , altogether 966 individual , Every tif Together with the corresponding coordinate information file 、 The classified image is connected to the chart file 、 The metadata file is compressed into a zip, And then all zip Then compress it into a zip. The whole package has 7.18G Big .
Purpose
take 966 individual tif Spliced into global latitude and longitude data .
The process
Plan to use gdal Read tif then xarray Splicing , If gdal It is of course best to be able to directly read the specified data in the compressed package , Unfortunately, I can't . Then just tif Unpack ,“ useless ” Other files do not have to waste the mood to unzip .
decompression
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
版权声明
本文为[Gatulo book]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230612571856.html
边栏推荐
- [51 single chip microcomputer traffic light simulation]
- melt reshape decast 长数据短数据 长短转化 数据清洗 行列转化
- Unable to create servlet under SRC subfile of idea
- Packet capturing and sorting -- TCP protocol [8]
- 31. Next arrangement
- The continuous construction of the Internet industry platform is not only able to collect traffic
- HQL find the maximum value in a range
- 在线计算过往日期天数,计算活了多少天
- No idle servers? Import OVF image to quickly experience smartx super fusion community version
- 22. Bracket generation
猜你喜欢
22. Bracket generation
[Blue Bridge Cup] April 17 provincial competition brushing training (the first three questions)
STM32 is connected to the motor drive, the DuPont line supplies power, and then the back burning problem
[untitled] make a 0-99 counter, P1 7 connected to key, P2 connected to nixie tube section, common anode nixie tube, P3 0,P3. 1. Connect the nixie tube bit code. Each time you press the key, the nixie
Trier les principales utilisations de l'Agent IP réseau
Remote access to raspberry pie at home (Part 1)
Synchronously update the newly added and edited data to the list
[51 single chip microcomputer traffic light simulation]
Important knowledge of transport layer (interview, retest, final)
Use Proteus to simulate STM32 ultrasonic srf04 ranging! Code+Proteus
随机推荐
About the 'enum' enumeration type and structure.
JDBC connection pool
Complete project data of UAV apriltag dynamic tracking landing based on openmv (LabVIEW + openmv + apriltag + punctual atom four axes)
GIS practical tips (III) - how to add legend in CASS?
内核错误: No rule to make target ‘debian/canonical-certs.pem‘, needed by ‘certs/x509_certificate_list‘
Redis deployment of cloud native kubesphere
Embrace the new blue ocean of machine vision and hope to open a new "Ji" encounter for the development of digital economy
jmeter操作redis
精度、速度完美平衡,最新图像分割SOTA模型重磅发布!!!
office2021安装包下载与激活教程
31. 下一个排列
JMeter operation redis
Baserecyclerviewadapterhelper realizes pull-down refresh and pull-up loading
Importerror after tensorflow installation: DLL load failed: the specified module cannot be found, and the domestic installation is slow
Timing role in the project
Pyqt5 store opencv pictures into the built-in sqllite database and query
4.22学习记录(你一天只做了水题是吗)
decast id.var measure.var数据拆分与合并
Record Alibaba cloud server mining program processing
Async void provoque l'écrasement du programme