[Thread Prev][Thread Next][Index]

Re: lon/lat format



Hi  Vincent,
              Ferret needs the the "lat" or "lon" string in the PPL XFOR or YFOR
within "two single quotes" (see the example below). Please have a look at the 
usermanual : Appendix B Sec9.91 XFOR,frmt

Example :

    ! create some data
	 define axis/x=-90.2:-80.2:0.2/units=longitudes xlon
  	 define axis/y=37.2:50.2:0.2/units=latitudes    ylat
   	 let var = sin(x[gx=xlon]/100 + y[gy=ylat]/100)
  
    ! use /SET & PPL FILL with XFOR or YFOR
           
	 fill/SET/vlim=37.2:50.2:0.6/hlim=-90.2:-80.2:0.4 var
   	 ppl xfor, (f6.1,''lonW'')    ! labels like 88.4^oW
	 ppl yfor, (f6.1,''lat'')     ! labels like 42.0^oN
	 !   ppl xfor, (f6.1,'' '')   ! to remove ^oE or ^oW from axis labels
	 !   ppl yfor, (f6.1,'' '')   ! to remove ^oS or ^oN from axis labels
	 PPL FILL
	 go land 7         

    ! try with other values/options for XFOR & YFOR 

 Hope This Helps

 With Regards 

 Jaison


On 17 Oct 2004, Vincent Le Fouest wrote:

> Dear ferret users,
> 
> I experience a little problem with the axis formats.
> 
> I try to plot a file including 2 columns of LON LAT in the format -60.5
> 47.6, for example.
> 
> I would like the axis to be in the format 60.5W 47.6N. I tried the
> command ppl xfor (f4.1, 'lonw') and  ppl xfor (f4.1, 'lat') but it does
> not work.
> 
> Would somebody have an idea to resolve the problem?
> 
> Thank You in advance,
> 
> Bye,
> 
> Vincent
> 
> 
> 

-- 
___________________________________________________

    Jaison Kurian                           
    Centre for Atmospheric and Oceanic Sciences
    Indian Institute of Science
    B A N G A L O R E   560 012
    Ph: +91-80-3942505
        +91-80-3600450
    Fax:+91-80-3600865
___________________________________________________



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement