- 积分
- 56599
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1

|

楼主 |
发表于 2012-10-4 11:17:33
|
显示全部楼层
残月 发表于 2012-10-4 11:01
嗯 知道了 谢谢楼主的指导
已经更新了grads转nc的功能,加上了axis属性,这样一来grads软件的sdfopen应该可以正确读出各维了。需要最新的MeteoInfoC.dll文件(见置顶帖子)。
转换后的nc文件的信息:
File Name: D:\Temp\nc\air_clm.nc
Dimensions: 4
lon = 144;
lat = 73;
level = 17;
time = 164;
Global Attributes: 2
: title = "Pressure data";
: description = "script sample data";
Variations: 5
NC_DOUBLE lon(lon);
lon: units = "degrees_east";
lon: long_name = "longitude";
lon: axis = "x";
NC_DOUBLE lat(lat);
lat: units = "degrees_north";
lat: long_name = "latitude";
lat: axis = "y";
NC_DOUBLE level(level);
level: units = "level";
level: long_name = "level";
level: axis = "z";
NC_DOUBLE time(time);
time: units = "hours since 1800-1-1 00:00:00";
time: long_name = "time";
time: axis = "t";
NC_DOUBLE aveair(time,level,lat,lon);
aveair: units = "99";
aveair: long_name = "aveair";
aveair: missing_value = -9.96921E+36;
aveair: description = "*air";
Unlimited dimension: 3 |
|