feat: ERA5 预处理完成 — 修复 NetCDF 引擎 (h5netcdf+dask),统一 NPZ 命名,109.6万序列样本

This commit is contained in:
2026-05-28 08:55:12 +08:00
parent a2c9ba4863
commit 12dbdf789d
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -23,6 +23,7 @@ dependencies = [
"scipy>=1.11", "scipy>=1.11",
"h5netcdf>=1.8.1", "h5netcdf>=1.8.1",
"h5py>=3.16.0", "h5py>=3.16.0",
"dask>=2026.3.0",
] ]
[tool.uv.sources] [tool.uv.sources]
+1 -1
View File
@@ -69,7 +69,7 @@ def load_era5_city(city: str) -> xr.Dataset:
combined = xr.open_mfdataset( combined = xr.open_mfdataset(
nc_files, nc_files,
combine="by_coords", combine="by_coords",
engine="netcdf4", engine="h5netcdf",
chunks=None, # 小区域数据直接加载到内存 chunks=None, # 小区域数据直接加载到内存
) )