Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gee-export

使用 GEE + xee 按年/月导出 ImageCollection 为 NetCDF。

1 安装

earthengine authenticate

uv pip install .
uv pip install git+https://github.com/gee-hydro/gee-export

开发模式

  • VSCode: 会自动加载autoreload,可检查get_ipython().extension_manager.loaded

    "jupyter.notebookFileRoot": "${workspaceFolder}"
  • Jupyter

    %load_ext autoreload
    %autoreload 2

2 使用

import ee
from gee_export import ee_export_batch, ee_export_weeks

ee.Initialize(opt_url='https://earthengine-highvolume.googleapis.com')
region = ee.Geometry.Rectangle(
    [108.0, 29.0, 116.5, 33.5], geodesic=False,
)
col = ee.ImageCollection('ECMWF/ERA5_LAND/HOURLY').select('temperature_2m')

ee_export_batch(
    col, region, '2020', '2021', by='year',
    prefix='Hubei_ERA5L', outdir='OUTPUT',
)

网格

  • scale=None:保持原始 CRS、分辨率及像元中心。
  • crs='EPSG:4326', scale=0.05:重投影至 WGS84、0.05°
  • 连续变量可先执行 col.map(lambda x: x.resample('bilinear'))
  • 设置 overwrite=True 可覆盖已有文件。

About

Export GEE images with Xee

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages