积分 315
贡献
精华
在线时间 小时
注册时间 2016-4-27
最后登录 1970-1-1
1 金钱
输出文件中变量出错了,但是在ncl文件中print出来的格式是对的,请问有没有人知道这是为什么?
ncl文件输出的变量格式:
Variable: t2m_5x5_dmean
Type: double
Total Size: 4976640 bytes
622080 values
Number of Dimensions: 3
Dimensions and sizes: [time | 240] x [lat | 36] x [lon | 72]
Coordinates:
time: [701256..1042392]
lat: [-87.5..87.5]
lon: [2.5..357.5]
Number Of Attributes: 1
_FillValue : 9.969209968386869e+36
生成的nc文件中的格式:
netcdf ERA5_5x5_dmean {
dimensions:
lat = 36 ;
time = 240 ;
time = 240 ;
variables:
float lat(lat) ;
string lat:long_name = "latitude" ;
string lat:units = "degrees_north" ;
float lon(time) ;
string lon:long_name = "longitude" ;
string lon:units = "degrees_east" ;
double t2m_5x5_dmean(time, lat, time) ;
t2m_5x5_dmean:_FillValue = 9.96920996838687e+36 ;
int time(time) ;
time:_FillValue = -2147483647 ;
string time:units = "hours since 1900-01-01 00:00:00.0" ;
string time:long_name = "time" ;
string time:calendar = "gregorian" ;
}
ncl文件中生成nc文件的命令:
system("/bin/rm ERA5_5x5_dmean.nc")
setfileoption("nc","Format","NetCDF4")
fout = addfile("ERA5_5x5_dmean.nc","c")
fout->t2m_5x5_dmean = t2m_5x5_dmean
我来回答