Re: map tickmarker without E&W

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 23 2012 - 12:29:06 MDT

Hi Yongzuo,

There's no "automatic" way to remove the E and W from the polar labels. Instead of using this function, you might want to look at our radar examples page, especially example #3:

http://www.ncl.ucar.edu/Applications/radar.shtml

If you really want to stick with using gsn_csm_contour_map_polar, you can easily change the code yourself to remove those two labels.

I did this for you by editing gsn_csm.ncl and changing the two lines:

        labels(indexes) = floattoint(plon(indexes)) + "E"
        labels(indexes) = floattoint(360-plon(indexes)) + "W"

to:

        labels(indexes) = floattoint(plon(indexes))
        labels(indexes) = floattoint(360-plon(indexes))

See attached "mappolar.ncl" script, and the modified gsn_csm_map_polar function which is in gsn_csm_map_polar_mine.ncl.

--Mary

On Apr 23, 2012, at 11:58 AM, Li, Yongzuo wrote:

> Hi,
>
> Attached is ncl script and plot.
>
> I am plotting radar scanning using polar projection.
>
> I want to plot longitude/latitude grids/tickmarkers without
> E/W following the numbers.
>
> How can I get rid of E/W?
>
> Thanks.
>
> Yongzuo<110825245703_0.ps><readsweep4plot.ncl>_______________________________________________
> 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 Mon Apr 23 12:29:15 2012

This archive was generated by hypermail 2.1.8 : Mon Apr 30 2012 - 09:21:12 MDT