- 积分
- 30
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-4-8
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
很简单的matlab写成nc文件的程序,是以前无聊时写的,分享一下。其实论坛里好像有类似的。。。
b为测试数据,写成的nc为'somefile.nc',包含lats, lons,data=b的信息,没有加入时间维度。somefile.nc的信息如下:
Dimensions:
lats = 46
lons = 31
Variables:
lats
Size: 46x1
Dimensions: lats
Datatype: double
Attributes:
units = 'degrees_north'
long_name = 'latitude'
lons
Size: 31x1
Dimensions: lons
Datatype: double
Attributes:
units = 'degrees_east'
long_name = 'longitude'
swh
Size: 46x31
Dimensions: lats,lons
Datatype: double
Attributes:
units = 'm'
long_name = 'significant height'
>>
|
|