problem in lambert conformal projection

From: Ufuk Utku Turunçoğlu <turuncu_at_nyahnyahspammersnyahnyah>
Date: Fri, 21 Mar 2008 12:09:49 +0200

Hi,

I try to generate plot using lambert conformal projection but it gives
me following error,

fatal:Assignment type mismatch, right hand side can't be coerced to
type of left hand side
fatal:Execute: Error occurred at or near line 3608 in file $NCARG_ROOT/
lib/ncarg/nclscripts/csm/gsn_csm.ncl

fatal:Execute: Error occurred at or near line 4647 in file $NCARG_ROOT/
lib/ncarg/nclscripts/csm/gsn_csm.ncl

fatal:Execute: Error occurred at or near line 5497 in file $NCARG_ROOT/
lib/ncarg/nclscripts/csm/gsn_csm.ncl

fatal:Execute: Error occurred at or near line 8341 in file $NCARG_ROOT/
lib/ncarg/nclscripts/csm/gsn_csm.ncl

fatal:Execute: Error occurred at or near line 49 in file plot.ncl

The ncl script as follows,

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"

begin

f20c = addfile("regcm-data/daily_20C/20C_kis/kis20c_01.nc","r")
fa2 = addfile("regcm-data/daily_a2/a2_kis/kisa2_01.nc","r")

pre = f20c->tpr
lon = pre&longitude
lat = pre&latitude

dims = dimsizes(pre)
ntimes = dims(0)

wks = gsn_open_wks("ps","plot")
gsn_define_colormap(wks,"BlWhRe")

res = True
res_at_mpProjection = "LambertConformal"
res_at_mpLambertParallel1F = 30
res_at_mpLambertParallel2F = 60
res_at_mpLambertMeridianF = 32

res_at_mpFillOn = False
res_at_cnFillOn = True
res_at_cnLinesOn = False

res_at_gsnSpreadColors = True
res_at_gsnAddCyclic = False
res_at_gsnMaximize = True

res_at_lbLabelAutoStride = True

res_at_mpLimitMode = "LatLon"
res_at_mpMinLatF = lat(0)
res_at_mpMaxLatF = lat(dims(1)-1)
res_at_mpMinLonF = lon(0)
res_at_mpMaxLonF = lon(dims(2)-1)
res_at_gsnMaskLambertConformal = True

plot = gsn_csm_contour_map(wks, pre(0,:,:), res)

end

Any suggestions will be helpful.

Best Wishes,

--ufuk
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 21 2008 - 04:09:49 MDT

This archive was generated by hypermail 2.2.0 : Sun Mar 23 2008 - 15:01:36 MDT