#气候数据运营商(CDO) # # #定义网格# #我们定义一个lat-lon目标网格与1°x1°网格单元尺寸30 x30网格细胞从40°N和-10°E (= 10°W): gridtype = lonlat xsize = 30 ysize = 30 xfirst = -10 xinc = 1 yfirst = 40 yinc = 1这段文本写入一个文本文件。[1.3.2节CDO手册][1]为进一步的细节和例子。如果你已经有一个netCDF文件数据在你的目标网格,您还可以从该文件中提取网格定义:cdo griddes FILE_WITH_TARGET_GRID。数控> myGridDef myGridDef是一个文本文件。# # # #插入数据,我认为我们做了双线性插值。这是通过:cdo remapbil myGridDef INPUT_FILE。数控OUTPUT_FILE。数控的网格需要正确输入数据输入文件中定义(通常是一个问题)。# #正确定义的网格我会写正确地定义的。这个例子应该澄清:维度:经度= 30;lat = 30;时间=无限; // (24 currently) variables: double lon(lon) ; lon:standard_name = "longitude" ; lon:long_name = "longitude" ; lon:units = "degrees_east" ; lon:axis = "X" ; double lat(lat) ; lat:standard_name = "latitude" ; lat:long_name = "latitude" ; lat:units = "degrees_north" ; lat:axis = "Y" ; double time(time) ; time:standard_name = "time" ; time:long_name = "time" ; time:units = "seconds since 1900-01-01 00:00:00" ; time:calendar = "standard" ; time:axis = "T" ; float SST(time, lat, lon) ; SST:long_name = "sea_surface_temperature" ; SST:units = "degree celsius" ; SST:_FillValue = NaNf ; SST:missing_value = NaNf ; SST:var_desc = "sea surface temperature" ; Either 'lon' and 'lat' variables and attributes exist (see example) or the SST variable needs a string attribute which equals the variables holding the lon and lat coordinates: SST:coordinates = "lon lat" ; [1]: https://code.zmaw.de/projects/cdo/embedded/index.html#x1-150001.3.2