I think the best way to go about this is to use the overlay procedure to
overlay your 2 maps, and keep your 2D lat/lon coordinates:
res_cn = True
.....
res_cn@gsnPolar = "NH" ; northern hemisphere
res_cn@mpMinLatF = 30. ; only show 30:90N
res_cn@gsnDraw = False ; don't draw the plot
res_cm@gsnFrame = False ; don't advance the frame (/flip the page)
plot = gsn_csm_contour_map_polar(...)
plot2 = gsn_csm_contour(...)
overlay(plot,plot2)
draw(plot)
frame(wks)
http://www.ncl.ucar.edu/Document/Functions/Built-in/overlay.shtml
Hope that helps..
Adam
On 11/29/2010 11:10 AM, Wei Liu wrote:
> Hi, there
>
> Is there some way to overlay contour on contour in the map of polar
> projection.
> I am using ccsm3 ocean/ice data in the pop grid.
>
> Two ways I have tried:
>
> 1) I use pop data that has 2D lat/lon coordinates can be plotted
> directly in physical space.
> t@lon2d = f->TLONG
>
> t@lat2d = f->TLAT
>
> Then I choose
>
> res_cn@mpProjection ="Orthographic"
>
> and then use*gsn_csm_contour_map_overlay <http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_contour_map_overlay.shtml>*
>
> I can do this. But the figure has no tick for the lon/lat, grid ...
>
> 2) I use *PopLatLon* <http://www.ncl.ucar.edu/Document/Functions/Pop_remap/PopLatLon.shtml> to convert the pop grid to a lat/lon grid.
>
> Then usegsn_csm_contour_map_polar
>
> But I can do only one vaiable.
>
> I cannot use overlay the get the contour on contour overlay figure.
>
>
> Thanks for your help~
>
>
>
> W
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- __________________________________________________ Adam Phillips asphilli@ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 Climate and Global Dynamics Division fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Mon Nov 29 11:50:48 2010
This archive was generated by hypermail 2.1.8 : Tue Nov 30 2010 - 08:26:08 MST