[Thread Prev][Thread Next][Index]

Re: ASCii data



North-South reversed grids

Hi Antonio,

Easy solution for plotting:

	CONTOUR/YLIMITS=90:-90 my_grid

(see other ways to specify /YLIMITS in the users guide.)

Alternative approach:  create a NetCDF file with

	SAVE/FILE=my_reversed_data.cdf my_grid

and then edit the file (in its CDL representation) so that the Y axis
coordinates are listed in the file correctly (re: they are reversed in
the file). Ferret is capable of recognizing and transparently flipping
reversed axes in NetCDF files. Until the next version, ferret cannot do
this for ASCII data files.

	- steve

=====================================================

Antonio Caetano Vaz Caltabiano wrote:
> 
> Dear ferreters
> 
> I have a ASCii gridded data that looks like the format below:
> 
>           ______________________________________________
>      90N |(1,1)                                         |
>          |                                              |
>          |                                              |
>          |                                              |
>          |                                              |
>          |(1,90)                                        |
>      Equ |                                              |
>          |(1,91)                                        |
>          |                                              |
>          |                                              |
>          |                                              |
>          |                                              |
>      90S |(1,180)______________________________(360,180)|
>           180W                 0                    180E
> 
> 
> I've defined my axis and grid in Ferret:
> 
> define axis/x=179.5W:179.5E:1/unit=degrees xaxis
> define axis/y=89.5S:89.5n:1/unit=degrees yaxis
> define grid/x=xaxis/y=yaxis gaxis
> file/var=temp/grid=gaxis/col=360 my_data.dat
> 
> When I try to plot this data, North and South are inverted. So, I tried to
> define a new y-axis:
> 
> define axis/y=89.5n:89.5s:1/unit=degrees yaxis
> 
> and plot again. For my surprise, the plot is the same: North and South
> inverted!!!
> 
> What am I do wrong?? I suppose that data must begin always with southmost
> position!!
> 
> I appreciate any help.
> 
> Cheers
> 
> Antonio
> 
>    **************************************************************
>                   Antonio Caetano Vaz Caltabiano
>           National Institute for Space Research - SERE II
>     P.O. Box 515 - 12201-970 - Sao Jose dos Campos - SP - Brazil
>         Phone: +55 (0)12 3456508   FAX: +55 (0)12 3456488
>    **************************************************************

-- 

                |  NOAA/PMEL               |  ph. (206) 526-6080  
Steve Hankin    |  7600 Sand Point Way NE  |  FAX (206) 526-6744
                |  Seattle, WA 98115-0070  |  hankin@pmel.noaa.gov




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement