当前位置:网站首页>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
边栏推荐
- Record some NPM related problems (messy records)
- decast id.var measure. Var data splitting and merging
- SQL exercise question 1
- 21 days learning mongodb notes
- 进程虚拟地址空间区域划分
- MySQL -- 16. Data structure of index
- 教你快速开发一个 狼人杀微信小程序(附源码)
- Synchronously update the newly added and edited data to the list
- The continuous construction of the Internet industry platform is not only able to collect traffic
- 22. 括号生成
猜你喜欢

Install nngraph

进程虚拟地址空间区域划分

Summary of JVM knowledge points - continuously updated

Date time type in database

将新增和编辑的数据同步更新到列表

Design of body fat detection system based on 51 single chip microcomputer (51 + OLED + hx711 + US100)

Remote access to raspberry pie at home (Part 1)

内核错误: No rule to make target ‘debian/canonical-certs.pem‘, needed by ‘certs/x509_certificate_list‘

R语言中dcast 和 melt的使用 简单易懂

8 websites that should be known for product development to enhance work experience
随机推荐
(personal) sorting out system vulnerabilities after recent project development
Start mqbroker CMD failure resolution
Redis deployment of cloud native kubesphere
8086 of x86 architecture
Pyqt5 store opencv pictures into the built-in sqllite database and query
PC starts multiple wechat at one time
The quill editor image zooms, multiple rich text boxes are used on one page, and the quill editor upload image address is the server address
Customize classloader and implement hot deployment - use loadclass
4. DRF permission & access frequency & filtering & sorting
[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
21 days learning mongodb notes
Mysql8 installation
Go language slicing operation
Wu Enda's programming assignment - logistic regression with a neural network mindset
Jupiter notebook installation
Record some NPM related problems (messy records)
The accuracy and speed are perfectly balanced, and the latest image segmentation SOTA model is released!!!
AUTOSAR from introduction to mastery 100 lectures (87) - key weapon of advanced EEA - AUTOSAR and DDS
Introduction to servlet listener & filter
Byte warehouse intern interview SQL questions