Re: Draw contour map on a bigger map

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue Dec 04 2012 - 09:57:28 MST

Hi Ronny,
If I understand what you are asking correctly, you first made a
color-filled plot that ran from 10E,30S to 30E,10S, and now you want to
plot data from 10E,30S to 30E,10S (only) but show a larger map domain?

If that's the case you can set the following:
res@mpLimitMode = "LatLon" ; may or not be needed as this is usually
the default
res@mpMinLatF = -50.
res@mpMaxLatF = 10.
res@mpMinLonF = -10.
res@mpMaxLonF = 50.
res@mpCenterLonF = (res@mpMaxLonF+res@mpMinLonF)/2.

; and then subset your original data if it had 1D latitudes/longitudes:
plot2 = gsn_csm_contour_map(wks,tarr({-30:-10},{10:30}),res)

If your data has 2D latitudes/longitudes you can use getind_latlon2d to
subset your data within the plotting fuction:
http://www.ncl.ucar.edu/Document/Functions/Contributed/getind_latlon2d.shtml

If this does not adequately answer your question please respond to
ncl-talk further explaining the issue with a clean script attached..
Thanks,
Adam

On 12/3/12 3:55 PM, Ronny Berndt wrote:
> Hi,
>
> i plot a contour map from netCDF data.
>
> Data is going from (30S/10E) to (10S/30E).
> Now i want to draw this map on a "bigger" map maybe from
> (50S/10W) to (10N/50E) but this map is also full colored with the
> colors from the first map.
> I want to color only the part from (30S/10E) to (10S/30E) on a map
> with this limits (50S/10W) to (10N/50E).
>
> How can i achieve this?
>
> Cheers,
> Ronny
> _______________________________________________
> 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 Dec 4 09:57:41 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 07 2012 - 13:30:06 MST