Re: Can I remove the continent outline in polar projection plot?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed May 26 2010 - 10:14:06 MDT

Hi Eddy,

You can make your own copy of $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl and then modify the following code:

      if(.not.polar_time) then
; Define an array of strings to label the longitude values.
        indexes = ind(plon.gt.0.and.plon.lt.180)
        labels(indexes) = floattoint(plon(indexes)) + "E"
        delete(indexes)

        indexes = ind(plon.gt.180.and.plon.lt.360)
        labels(indexes) = floattoint(360-plon(indexes)) + "W"
        delete(indexes)

        indexes = ind(plon.eq.0.or.plon.eq.180)
        labels(indexes) = floattoint(plon(indexes))
        delete(indexes)
      else
;

to be something like:

      if(.not.polar_time) then
; Define an array of strings to label the longitude values.
        labels(indexes) = floattoint(plon(indexes)) + ""
      else
. . .

--Mary

On May 26, 2010, at 9:07 AM, Adam Phillips wrote:

> Hi Eddy,
> To remove the continental outlines, set mpOutlineOn = False
>
> As far as changing the polar labels to go from 0:360 instead of from 180W:180E, I know of no way to do this. Hopefully someone else knows a way... To turn the tickmarks off, set gsnTickMarksOn = False.
> Adam
>
> On 05/25/2010 11:43 AM, eddycarl wrote:
>> Hi there,
>>
>> I'm wondering if there is a way to remove the background continent
>> outline within the polar stereographic projection plot? And how can I
>> change the tickmark label on polar plot (such as the default is 180w -
>> 180E, and I would like 0 - 360.)? The reason why I want to do the above
>> is that I am plotting a similar data as the usual ones, which also have
>> two dimensions (0-180 degree and 0-360 degree), but do not have the
>> meaning of lat/lon. Thus, the map outline is not needed and longitude
>> tickmark is not applicable.
>>
>> Thanks,
>> -Eddy
>>
>>
>> ------------------------------------------------------------------------
>> 网易为中小企业免费提供企业邮箱(自主域名) <http://ym.163.com/?from=od3>
>>
>>
>>
>> _______________________________________________
>> 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-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 26 10:15:00 2010

This archive was generated by hypermail 2.1.8 : Wed May 26 2010 - 10:39:13 MDT