有谁能帮我,我从MatlabR2013B的.nc(netcdf)文件中读取数据。
我得到了这种变量Variables:
time
Size: 1x1
Dimensions: time
Datatype: double
Attributes:
units = 'hours since 0001-01-01 01:00:00.0'
calendar = 'gregorian'
latitude
Size: 801x1
Dimensions: latitude
Datatype: single
Attributes:
units = 'degrees_north'
longitude
Size: 1501x1
Dimensions: longitude
Datatype: single
Attributes:
units = 'degrees_east'
DEN
Size: 1501x801x1
Dimensions: longitude,latitude,time
Datatype: single
Attributes:
least_significant_digit = 1
long_name = 'Density'
units = 'Density Index'
HGH
Size: 1501x801x1
Dimensions: longitude,latitude,time
Datatype: single
Attributes:
least_significant_digit = 1
long_name = 'High level'
units = 'm'
....etc
我需要这样的格式:
^{pr2}$
所有的数据。在
我能读懂每一个变量,如经度或经度,但像DEN和HGH有三维空间,我不知道如何从经度、纬度以及DEN或HGH中的值合并。在
你有什么建议吗,如果你有python或R的解决方案,请给出nc文件的读取方法。在
提前谢谢