[ncl-talk] Query

Kunal Bali kunal.bali9 at gmail.com
Thu Aug 28 05:41:11 MDT 2014


Hello
I am trying to use the masking scripts for generating data only on land.
but i am getting error. My scripts is given below.

In this i am not getting the means of oro (line -5).
Could any one suggest me to how to correct this scripts or how to visualize
the data on land only.

ncl 0> load "/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/gsn_code.ncl"
ncl 1> load "/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
ncl 2> begin
ncl 3> in = addfile("/home/kunal/14-01.nc","r")
ncl 4> ts = in->TotCH4_A(:,:)
ncl 5> oro = in->ORO(:,:)
ncl 6> land_only = ts
ncl 7> land_only = mask(ts,oro,1)
ncl 8> wks = gsn_open_wks("x11","mask")
ncl 9> gsn_define_colormap(wks,"BlAqGrYeOrRe")
ncl 10> res = True
ncl 11> res at cnFillOn = True
ncl 12> res at cnLinesOn = False
ncl 13> res at gsnSpreadColors = True
ncl 14> res at gsnSpreadColorStart = 10
ncl 15> res at gsnSpreadColorEnd = 96
ncl 16> res at cnLevelSpacingF = 3
ncl 17> res at lbLabelString = 4
ncl 18> res at tiMainString = "Land Only"
ncl 19> plot = gsn_csm_contour_map_ce(wks,land_onl,res)
ncl 20> end
fatal:["Execute.c":6321]:variable (ORO) is not in file (in)
fatal:["Execute.c":8565]:Execute: Error occurred at or near line 5


Thank You
Kunal Bali
Research Scholar
Radio & Atmospheric Science Division
CSIR - National Physical Laboratory
New Delhi - 110012
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140828/1f5535ac/attachment.html 


More information about the ncl-talk mailing list