[Thread Prev][Thread Next][Index]

[ferret_users] Re: Ferret list NOROWLAB and NOHEAD not working [ Is it BUG ? ]



Hi Dona,

What does the listing look like if you leave off the /NOROW? 

Here you are combining a number of variables from different grids and with expressions applied to them. I don't know but I see that the labels you show are sstarting with  ---- K . That is part of the style for listings of  multi-dimensioned data,  that is if you listed this:

yes? use levitus_climatology
yes? list/k=1:5 temp[x=170:172,y=-5:5@ave], salt[x=170:172,y=10]
             DATA SET: /home/users/tmap/ferret/linux/fer_dsets/data/levitus_climatology.cdf
             LONGITUDE: 170E to 172E
             DEPTH (m): 0 to 62.5
 Column  1: TEMP[Y=5S:5N@AVE] is TEMPERATURE (DEG C)
 Column  2: SALT[Y=9.5N] is SALINITY (PPT)
  TEMP   SALT
 ---- K:1 Z:   0
170.5E / 151:  28.88  34.37
171.5E / 152:  28.86  34.35
 ---- K:2 Z:   10
170.5E / 151:  28.83  34.38
171.5E / 152:  28.80  34.36
 ---- K:3 Z:   20

...
The row headers would show X= and the lines with ---- K:1 Z:   0 and so forth are showing each block in the K direction. If We added /NOROW, the longitude listings would not be written but the ---- K lines would still be included. I am guessing that all of the different grids may have caused Ferret to choose this list style.

Ansley

5/10/2016 7:09 AM, Don DNA wrote:
I am listing data to csv file using below command

list/QUIET/NOROWLAB/PRECISION=10/NOHEAD/x="($ln)"/y="($lt)"/z=1:30/format=comma/file="($outfile)"/append ($lt),($ln),y[g=t_an,d=1],x[g=t_an,d=1],z[g=t_an,d=1],t_an[d=1],s_an[d=2],t_an[d=1,z=1:30@ave],s_an[d=2,z=1:30@ave];


In CSV file I get output like below
 
 ---- K:1 Z:   0
-2.36,99.2,-2.375,99.125,0,29.0352097,33.77798843,28.99427565,33.8668104 
 ---- K:2 Z:   5
-2.36,99.2,-2.375,99.125,5,29.01410866,33.7875099,28.99427565,33.8668104 
 ---- K:3 Z:   10
-2.36,99.2,-2.375,99.125,10,29.0361099,33.82038879,28.99427565,33.8668104 
 ---- K:4 Z:   15
-2.36,99.2,-2.375,99.125,15,29.0055904,33.85781097,28.99427565,33.8668104 
 ---- K:5 Z:   20
-2.36,99.2,-2.375,99.125,20,28.9732914,33.88771057,28.99427565,33.8668104 
 ---- K:6 Z:   25
-2.36,99.2,-2.375,99.125,25,28.96639061,33.93978882,28.99427565,33.8668104 
 ---- K:7 Z:   30
-2.36,99.2,-2.375,99.125,30,28.9214897,34.00178909,28.99427565,33.8668104  

I don't want below lines
 ---- K:1 Z:   0
 ---- K:2 Z:   5
 ---- K:3 Z:   10
..
..
 ---- K:7 Z:   30

I can use external programs like sed or awk, but I just want to know whats going wrong here, though I specified NOROWLAB and NOHEAD its still listing

Someone help me

- Dona



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

Privacy Policy | Disclaimer | Accessibility Statement