Hi,
I encountered a problem while trying to do a simple contour plot of a 2D
data (Netcdf file, 48x96 grid). The plot shows contours over only a few
grid-cells, even though there are more valid values in the data. I
couldn't find any problems with the netcdf file and the data (though
there are many missing values; the data contains the fill_value
attribute as well, _FillValue = -9999.). The code is as below:
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
>
> begin
> a=addfile("test_data.nc","r")
> x = a->HDO
> N = num(.not.ismissing(x))
> print(N)
>
> wks = gsn_open_wks("x11","test")
> gsn_define_colormap(wks,"rainbow")
>
> res = True
> res@cnFillOn = True
> res@gsnSpreadColors = True
>
> plot = gsn_csm_contour_map(wks,x,res)
>
> end
Thanks a lot in advance,
Thejna Tharammal.
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2.1.8 : Wed Feb 06 2013 - 16:37:01 MST