在Python中读取2D二进制数据并以NetCDF格式写入

2024-06-16 13:49:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我有带有以下标题信息的二进制数据:

DSET ../prcp/cmorph_test
OPTIONS template little_endian
UNDEF  -999.0
TITLE  Precipitation estimates
XDEF 1440 LINEAR    0.125  0.25
YDEF  480 LINEAR  -59.875  0.25
ZDEF   01 LEVELS 1
TDEF 999999 LINEAR  00z01jan2014  3hr
VARS 1
cmorph   1   99 RAW CMORPH integrated satellite precipitation estimates [mm/3hr]
ENDVARS

请建议是否可以使用Python读取(任何示例代码片段都将非常有用)并将其转换为NetCDF?在


Tags: 数据test信息标题二进制templateoptionslinear