当前位置:网站首页>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
边栏推荐
- How to click an object to play an animation
- leetcode-791. Custom string sorting
- 7_ The cell type scores obtained by addmodule and gene addition method are compared in space
- CVPR 2022 & ntire 2022 | the first transformer for hyperspectral image reconstruction
- The El table horizontal scroll bar is fixed at the bottom of the visual window
- PC starts multiple wechat at one time
- SSM框架系列——注解开发day2-2
- 产品开发都应该知道的8个网站,增强工作体验
- Summary of JVM knowledge points - continuously updated
- 31. 下一个排列
猜你喜欢

5 free audio material websites, recommended collection

Mysql8 installation

31. 下一个排列

MySQL —— 16、索引的数据结构

Huawei cloud MVP email
![[untitled] PID control TT encoder motor](/img/ce/942a0b87994699f73da215e7cad2a1.png)
[untitled] PID control TT encoder motor

jmeter操作redis
![[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](/img/d1/b0ec21419db0cd3641f5fae8458c50.png)
[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

No idle servers? Import OVF image to quickly experience smartx super fusion community version

进程虚拟地址空间区域划分
随机推荐
office2021安装包下载与激活教程
World Book Day: I'd like to recommend these books
async void 導致程序崩潰
100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS
[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
Use compressorjs to compress pictures, optimize functions, and compress pictures in all formats
No idle servers? Import OVF image to quickly experience smartx super fusion community version
Process virtual address space partition
Read the data in Presto through sparksql and save it to Clickhouse
数据库中的日期时间类型
decast id.var measure. Var data splitting and merging
STD:: shared of smart pointer_ ptr、std::unique_ ptr
Community version Alibaba MQ ordinary message sending subscription demo
拥抱机器视觉新蓝海,冀为好望开启数字经济发展新“冀”遇
MySQL supports IP access
How to convert opencv pictures to bytes
Summary of JVM knowledge points - continuously updated
(personal) sorting out system vulnerabilities after recent project development
Free and open source intelligent charging pile SaaS cloud platform of Internet of things
leetcode-791. Custom string sorting