I am trying to plot a hovmoeller plot by reading a netcdf daily datafile
and would like to have the time axis labelled with dates like "20031120"
or something like that.
I could not find specific information online, I would appreciate help or
directions to online instructions. below I include a test script.
Thank you,
Andres
------------------------------------------------------------------
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
begin
a = addfile("/Datasets/ncep/hgt.2003.nc","r")
x = a->hgt(:,{850},{60},:)
wks = gsn_open_wks ("ps", "test" ) ; open ps file
gsn_define_colormap(wks,"BlWhRe") ; choose colormap
res = True ; plot mods desired
res@cnFillOn = True ; turn on color fill
res@gsnSpreadColors = True ; use full range
of colors
res@trYReverse = True ; reverse y axis
res@lbLabelAngleF = 45 ; angle labels
plot = gsn_csm_hov(wks, x(:,{0:360}), res)
end
-------------------------------------------------------------------
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Fri Nov 21 2003 - 14:58:47 MST