((The answer))Problems with .cdf (.nc) template

Isabel belitaps belitaps at CPTEC.INPE.BR
Tue Mar 3 08:42:42 EST 2009


To those who may be interest,

The .cdf is a .nc's type. To open a template of these files in GrADS it's
necessary to create a .ddf (see example), this runs with 'xdfopen' in versions
higher than L8SL10.

Isabel.


example.ddf

DSET^file_%m2.cdf (or .nc)
OPTIONS template
TDEF name (e.g. TIME) 528 LINEAR 15JAN1958 1mo






Dear all,

Does somebody know how to use template with .CDF data?


I've been trying to work with SODA 2.0.2  on GrADS. So, I'd  built a
template and  when I'd displayed it on Grads, the grid was displaced
on x axis  (about 90 degrees). And suface's data do not plot, as well.

A have a clue: it's possible that the problem is the header, which must be
interpreted as data for GrADS.

Could you help me to solve this problem? Do you have any clue about
what I should do?

thanks. Best Regards,


Isabel

DSET /rede/ocatbm/luciano/soda.2.0.2/SODA_2.0.2_%y4%m2.cdf
*DSET /data/equator3/giese/SODA_POP_1.4.3/MONTHLY
*DTYPE Gridded
OPTIONS TEMPLATE ZREV BIG_ENDIAN
UNDEF -9.99e+33 _FillValue
TITLE   SODA_2.0.2 (1958-2001)
XDEF 720 LINEAR 0.25 0.5
YDEF 330 LINEAR -75.25 0.5
ZDEF 40 LEVELS  5375 5125 4875 4625 4375 4125 3875 3625 3375 3125
                 2875 2625 2375 2125.01 1875.11 1625.7 1378.57 1139.15
  918.37 729.35
           579.31  465.91  381.39  317.65  268.46  229.48  197.79
171.4  148.96  129.49
    112.32   96.92   82.92   70.02   57.98   46.61   35.76   25.28
15.07    5.01
TDEF 528 LINEAR 15JAN1958 1mo
VARS 13
temp   40 -999 TEMPERATURE deg. C
salt   40 -999 SALINITY(ppt)
u      40 -999 ZONAL VELOCITY
v      40 -999 MERIDIONAL VELOCITY
w      40 -999 VERTICAL VELOCITYq
utrans 40 -999 ZONAL TEMP TRANSPORT
vtrans 40 -999 MERIDIONAL TEMP TRANSPORTse
cfc11  40 -999 CFC11 CONCENTRATION
taux    0 -999   TAU X dynes/cm2
tauy    0 -999  TAU Y dynes/cm2
ssh     0 -999   SEA LEVEL HEIGHT cm
hflx    0 -999   SURFACE HEAT FLUX
wflx    0 -999  SURFACE WATER FLUX
endvars



More information about the gradsusr mailing list