Re: gsn_csm_pres

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Jan 24 2011 - 09:15:40 MST

On Jan 22, 2011, at 5:34 PM, sima sima wrote:

> Hi Dear,
>
> I use gsn_csn_pres_hgt to plot wind cross section plots
> i need right y axis define at meter
> but it set at km
>
> how I can change it?

This is hard-coded in the gsn_csm_pres_hgt routine.

You can modify this yourself by making your own personal copy of $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl.
Edit your personal copy and search for the "gsn_geop_hgt" function. You will see the list of km values. Change these to
meters by multiplying the array by 1000:

  zsa = (/ -0.3, \ ; km
            0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, \
            3.5, 4.0, 4.5, 5.0, 5.5, 6.0, 6.5, \
            7.0, 7.5, 8.0, 8.5, 9.0, 9.5, 10.0, \
           11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, \
           18.0, 19.0, 20.0, 25.0, 30.0, 35.0, 40.0, 45.0, \
           50.0, 60.0, 70.0, 80.0, 84.8, 87.7, 90.6, \
           93.3, 96.1, 97.5,100.4,104.9, \
          110.0,114.2,116.7,119.7/)

 zsa = zsa * 1000 ; Convert to m

You will also need to change the line:

        "txString" : "Height (km)"

to:

        "txString" : "Height (m)"

>
> Thanks
>
> S.Hamzeloo
>
> _______________________________________________
> 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 Jan 24 09:15:46 2011

This archive was generated by hypermail 2.1.8 : Tue Jan 25 2011 - 14:22:15 MST