Re: Problem with data-plotting

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Mon Feb 04 2013 - 10:20:20 MST

Hi,

You might try adding:

  res@cnFillMode = "RasterFill"
or
 res@cnFillMode = "CellFill"

This shows more of your data, but yields a blocky appearance. It also shows just how sparse the data really are.

Rick

On Feb 3, 2013, at 9:51 AM, thejna tharammal <ttharammal@marum.de> wrote:

>
> 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.
>
>
>
>
> <test_data.nc>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Feb 4 10:20:31 2013

This archive was generated by hypermail 2.1.8 : Wed Feb 06 2013 - 16:37:01 MST