Hi Yang,
I don't see where you are explicitly indicating the grid spacing, or
otherwise ensuring the conditions described at the following link are
met:
http://www.ncl.ucar.edu/Document/Graphics/overlays_on_map.shtml
It looks like you started to set up coordinate arrays for your data
with the commands:
...
nlat = 73
lat = latGlobeF(nlat, "lat", "latitude", "degrees_north")
print(lat)
nlon = 144
lon = lonGlobeF(nlon, "lon", "longitude", "degrees_east")
print(lon)
...
but I don't see that they are attached to the variable "var_temp" that
is used for the contour plot.
What do you get if you do "printVarSummary(var_temp)" just before the
call to gsn_csm_contour_map_ce()?
Rick
On Feb 2, 2010, at 3:25 PM, Yang Gao wrote:
> To whom it may concern:
>
> I am trying to plot global data with lat/lon projection and the
> grid size is 2.5*2 degrees. It seemed the default setting is 1
> degree for each grid. So Even I set up
>
> res@mpLimitMode = "LatLon" ; use lat/lon coordinates
> to limit area
> res@mpMinLatF = -90
> res@mpMaxLatF = 90
> res@mpMinLonF = -180
> res@mpMaxLonF =180
>
> When I use gsn_csm_contour_map_ce to plot, it shows the whole world
> map while the data only concentrates on parts of the map( because
> the grid space is2.5by 2 degree instead of 1 by 1 degree.) The
> attachment includes the script and plot I use.
>
> Please take a look and see how I can solve the problem
>
> Thanks
>
> Yang
>
>
>
> <
> plot
> .ncl><FILE_TEST.pdf>_______________________________________________
> 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 Tue Feb 2 15:59:19 2010
This archive was generated by hypermail 2.1.8 : Sun Feb 07 2010 - 15:37:25 MST