Thank you so much for reply.
This is what I am doing, with format string like f6.3 its working without listing, but if I specify comma, its showing "---- K:1 Z: 0", I don't want to specify format string every time, please help me
set data "http://data.nodc.noaa.gov/thredds/dodsC/woa/WOA13/DATAv2/temperature/netcdf/decav/0.25/woa13_decav_t00_04v2.nc"
set data "http://data.nodc.noaa.gov/thredds/dodsC/woa/WOA13/DATAv2/salinity/netcdf/decav/0.25/woa13_decav_s00_04v2.nc"
! This is not working as expected
list/NOROWLAB/NOHEAD/x="99.20"/y="-2.36"/z=1:30/format=comma 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]
! But this is working, but I don't want to specify everytime format string
list/NOROWLAB/NOHEAD/x="99.20"/y="-2.36"/z=1:30/format=(f6.3,',',f6.3,',',f6.3,',',f6.3,',',f6.3,',',f6.3,',',f6.3) 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]
yes? go test.jnl
set data "http://data.nodc.noaa.gov/thredds/dodsC/woa/WOA13/DATAv2/temperature/netcdf/decav/0.25/woa13_decav_t00_04v2.nc"
set data "http://data.nodc.noaa.gov/thredds/dodsC/woa/WOA13/DATAv2/salinity/netcdf/decav/0.25/woa13_decav_s00_04v2.nc"
! This is not working as expected
list/NOROWLAB/NOHEAD/x="99.20"/y="-2.36"/z=1:30/format=comma 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]
---- K:1 Z: 0
-2.375,99.13,0,29.04,33.78,28.99,33.87
---- K:2 Z: 5
-2.375,99.13,5,29.01,33.79,28.99,33.87
---- K:3 Z: 10
-2.375,99.13,10,29.04,33.82,28.99,33.87
---- K:4 Z: 15
-2.375,99.13,15,29.01,33.86,28.99,33.87
---- K:5 Z: 20
-2.375,99.13,20,28.97,33.89,28.99,33.87
---- K:6 Z: 25
-2.375,99.13,25,28.97,33.94,28.99,33.87
---- K:7 Z: 30
-2.375,99.13,30,28.92,34,28.99,33.87
! But this is working, but I don't want to specify everytime format string
list/NOROWLAB/NOHEAD/x="99.20"/y="-2.36"/z=1:30/format=(f6.3,',',f6.3,',',f6.3,',',f6.3,',',f6.3,',',f6.3,',',f6.3) 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]
-2.375,99.125, 0.000,29.035,33.778,28.994,33.867
-2.375,99.125, 5.000,29.014,33.788,28.994,33.867
-2.375,99.125,10.000,29.036,33.820,28.994,33.867
-2.375,99.125,15.000,29.006,33.858,28.994,33.867
-2.375,99.125,20.000,28.973,33.888,28.994,33.867
-2.375,99.125,25.000,28.966,33.940,28.994,33.867
-2.375,99.125,30.000,28.921,34.002,28.994,33.867
! Without NOWROWLAB
list/NOHEAD/x="99.20"/y="-2.36"/z=1:30/format=comma 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]
---- K:1 Z: 0
I / *: -2.375,99.13,0,29.04,33.78,28.99,33.87
---- K:2 Z: 5
I / *: -2.375,99.13,5,29.01,33.79,28.99,33.87
---- K:3 Z: 10
I / *: -2.375,99.13,10,29.04,33.82,28.99,33.87
---- K:4 Z: 15
I / *: -2.375,99.13,15,29.01,33.86,28.99,33.87
---- K:5 Z: 20
I / *: -2.375,99.13,20,28.97,33.89,28.99,33.87
---- K:6 Z: 25
I / *: -2.375,99.13,25,28.97,33.94,28.99,33.87
---- K:7 Z: 30
I / *: -2.375,99.13,30,28.92,34,28.99,33.87
Thank you
-Dona
On Tuesday, May 10, 2016 10:44 PM, Ansley C. Manke <ansley.b.manke@xxxxxxxx> wrote:
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