Hello:
I used the ncl script as shown below to plot. When I set:
res@mpMinLatF = -55 ; range to zoom in on
res@mpMaxLatF = -25.
res@mpMinLonF = 160.
res@mpMaxLonF = 180.
The plotted figure is OK. However, when I set
res@mpMaxLonF = 190. ;instead of 180.
The plotted figure is quite odd. It shows all the map between -25 S and -55 S of the earth, instead of the region from 160E to 170W.
Can you tell me what is wrong with my setting? Thank you!
Regards
Ed
begin
files = "uas_2000.nc"
f = addfile(files, "r")
T = f->uas(10,{-55:-25},{160:190})
wks = gsn_open_wks("x11" ,"ce") ; open a ps file
gsn_define_colormap(wks,"BlAqGrYeOrRe") ; choose colormap
res = True ; plot mods desired
res@cnFillOn = True ; turn on color fill
res@cnLinesOn = False ; turn of contour lines
res@cnLevelSpacingF = 0.5 ; contour spacing
res@gsnSpreadColors = True ; use full range of color map
res@lbLabelStride = 4
res@lbOrientation ="vertical"
; res@pmTickMarkDisplayMode = "Always"; use NCL default lat/lon labels
res@gsnAddCyclic = False ; data already has cyclic point
; this must also be set for any zoom
res@mpMinLatF = -55 ; range to zoom in on
res@mpMaxLatF = -25.
res@mpMinLonF = 160.
res@mpMaxLonF = 180.
plot = gsn_csm_contour_map(wks,T, res)
end
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu, 15 Oct 2009 16:50:55 -0700 (PDT)
This archive was generated by hypermail 2.1.8 : Thu Oct 22 2009 - 12:22:52 MDT