[Thread Prev][Thread Next][Index]

Re: [ferret_users] list/file=xxx.dat from north to south



Hi Xiaoyu,

The listings are ordered from north to south, I suppose so that north is at the top as it is on a map (with apologies to those using maps oriented for the Southern Hemisphere!)

yes? use etopo20
yes? list/x=134.5/y=-5.5:0.5 rose
             VARIABLE : RELIEF OF THE SURFACE OF THE EARTH (METERS)
             FILENAME : etopo60.cdf
             FILEPATH : /home/users/tmap/ferret/linux/fer_dsets/data/
             SUBSET   : 7 points (LATITUDE)
             LONGITUDE: 134.5E
             134.5E
             115
 0.5N / 91: -4030.
 0.5S / 90: -1831.
 1.5S / 89:  -564.
 2.5S / 88:  -120.
 3.5S / 87:   298.
 4.5S / 86: -1108.
 5.5S / 85:  -565.


It turns out that this sort of ordering is done only for listings of a single variable.  So, perhaps list the latitudes with your data, or any other variable you choose.

yes? let/units=degrees_north latitudes = y[gy=rose]
yes?list/x=134.5/y=-5.5:0.5 latitudes, rose
             DATA SET: /home/users/tmap/ferret/linux/fer_dsets/data/etopo60.cdf
             LATITUDE: 5.5S to 0.5N
             LONGITUDE: ???
 Column  1: LATITUDES is Y[GY=ROSE] (degrees_north)
 Column  2: ROSE is RELIEF OF THE SURFACE OF THE EARTH (METERS)
        LATITUDES   ROSE
5.5S / 85:  -5.500  -565.
4.5S / 86:  -4.500 -1108.
3.5S / 87:  -3.500   298.
2.5S / 88:  -2.500  -120.
1.5S / 89:  -1.500  -564.
0.5S / 90:  -0.500 -1831.
0.5N / 91:   0.500 -4030.

or, perhaps use the /NOROW qualifier to remove the coordinates and index numbers from each line, leaving you with the latitudes and data values:

yes? list /norow/y=-5.5:0.5 latitudes, rose[x=134.5]
             DATA SET: /home/users/tmap/ferret/linux/fer_dsets/data/etopo60.cdf
             LATITUDE: 5.5S to 0.5N
             LONGITUDE: ???
 Column  1: LATITUDES is Y[GY=ROSE] (degrees_north)
 Column  2: ROSE is RELIEF OF THE SURFACE OF THE EARTH (METERS)
          ROSE
  -5.500  -565.
  -4.500 -1108.
  -3.500   298.
  -2.500  -120.
  -1.500  -564.
  -0.500 -1831.
   0.500 -4030.


On 6/27/2019 10:49 AM, Xiaoyu Bai wrote:
Dear ferreters,

I am trying to write out .dat files and find that if I use list/file=xxx.dat, the output file will start with South grid (for example, 88.9S). I am wondering whether I can use some qualifiers maybe like /order to change the starting grid from North to South.

Thank you very much and have a good one.

--
Xiaoyu
--
Ansley Manke
NOAA/PMEL Science Data Integration Group
7600 Sand Point Way NE
206-526-6246

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement