netCDF 格式
读取
ncdump file_name | less
ncdump -h file_name | less == ncl_filedump
ncdump -v
ncl
ncl_filedump
parts of netCDF
dimension size
lat=fixed
lon=fixed
time=12(有unlimited)
file attributes
variables(names,type ,attributes)
coordinate variables
float lat(lat)
long_name =“latitude”
units=“degrees_north”(ncl需要这个来画图)
— degrees_east
— Month of Year
Variables(Time ,lat,lon)
long_name
units
missing_value
FillValue(缺测值,遇到这个值不作任何处理,不显示,不做计算)
画
图
不
全
需
要
补
全
画图不全需要补全
画图不全需要补全
读取属性和坐标
values
@attributes
&coordinates
ncl 0> nf=addfile(“wrfout_d01_2016-09-07_03:00:00”,“r”) ;create:“c”
ncl 1> print(nf)
ncl 2> mu=nf->MU
ncl 3> print(mu@unit)
ncl 4> print(mu&XLAT)
ncl 5> printVarSummary(var) ;overview of variable
wrf
dimensions:
south_north
west_east
需要转换
其他格式
grib 二进制 requires external parameter tables
hdf
HDF-EOS