[Thread Prev][Thread Next][Index]
Re: how do I reverse lat. axis for binary data?
On Thu, 15 Jan 2004, Glenn Carver wrote:
> I'm reading some binary data that's ordered north to south. If I do:
>
> def axis/x=-179.5:179.5:1/unit=degree xax
> def axis/y=89.5S:89.5N:1/unit=degree yax
> def grid/x=xax/y=yax gg
> file/var=depth/grid=gg/format=stream mydat.bin
> shade depth
>
> It works fine except the plot is "outside down" in the sense the NH
> is plotted as the SH.
>
> I was expecting to solve this by just doing this:
>
> def axis/y=89.5N:89.5S:-11/unit=degree yax
> (i.e. reverse the latitude axis)
>
> but Ferret doesn't like it:
> **ERROR: invalid command: DEFINE AXIS/DEPTH needs /Z=lo:hi:del
>
> How do I reverse the latitude axis?
Hi Glenn,
The following should help:
http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_2000/msg00156.html
http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_2001/msg00650.html
http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_2002/msg00413.html
http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_2003/msg00597.html
FYI, I found these by searching the mail archives
http://ferret.pmel.noaa.gov/cgi-bin/marc-search.cgi
for various combinations of "flip reverse lat y axis".
Cheers,
Andrew
+-----------------------------------------------------------+
| Dr. Andrew Wittenberg | Mailing address: |
| GFDL Room 357 | US DOC/GFDL |
| Andrew.Wittenberg@noaa.gov | Attn: Andrew Wittenberg |
| Voice: (609) 987-5064 | Forrestal Campus, US Route 1 |
| Fax: (609) 987-5063 | Princeton, NJ 08542 |
+-----------------------------------------------------------+
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement