代码使用python实现,用到的是pyGEDI
## Dependencies
- `numpy`
- `gdal`
- `h5py`
- `pandas`
- `matplotlib`
## Installation
- `pip install pyGEDI`## Loading pyGEDI Package
`from pyGEDI import *`
安装成功后,使用如下代码
from pyGEDI import *
fileh5_2A=r'G:\data\GEDI02_A_2021225053948_O15112_03_T06391_02_003_02_V002.h5'
h5_2A=getH5(fileh5_2A)
ul_lat=45.591939
ul_lon=127.197238
lr_lat=45.298283
lr_lon=127.776425
bbox=[ul_lat,ul_lon,lr_lat,lr_lon]
idsbox=idsBox(h5_2A,'lat_lowestmode','lon_lowestmode',bbox)
layers=['shot_number','lat_lowestmode','lon_lowestmode', 'sensitivity','quality_flag','rh']
dfbox=generateBoxDataFrame([h5_2A],layers,idsbox)
dfbox.head()
保存为csv文件
df2csv(dfbox,filename='GEDI02_A_2021225053948_O15112_03_T06391_02_003_02_V002',outdir=r'G:\GEDI\data\result')
然后就可以用GIS软件导入可视化了。