Hi -
I'd like to add that there is an FAQ on how to create a time axis from
a data variable and put your data onto it:
http://www.ferret.noaa.gov/Ferret/FAQ/axes_and_data/time_axis_from_variables.html
Steve Hankin wrote:
Hi Timothée,
Ferret can read your data as-is and create the netCDF file for you:
yes? columns/delimiter=" " myfile.dat
yes? SHOW DATA ! ==> you'll see 16 variables for the 16 columns
yes? list v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16
yes? save/file=myfile.nc
v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16
Check out the on line Ferret documentation at
http://ferret.wrc.noaa.gov/Ferret/Documentation/Users_Guide/current/fer_html.htm.
("COLUMNS" is an alies for SET DATA/FORMAT=DELIMITED -- look in the
index under that) You can elect to name your variables with /VAR=
Below is a session cut-and-paste after cat-ing the fragment of the file
that you sent.
- steve
===========
> ferret
NOAA/PMEL TMAP
FERRET v5.81
Solaris 5.6 - 07/14/05
3-Oct-05 16:39
yes? columns/delimiter=" " test.dat
yes? show data
currently SET data sets:
1> ./test.dat (default)
name title I J
K L
V1 V1 1:20480 ...
... ...
V2 V2 1:20480 ...
... ...
V3 V3 1:20480 ...
... ...
V4 V4 1:20480 ...
... ...
V5 V5 1:20480 ...
... ...
V6 V6 1:20480 ...
... ...
V7 V7 1:20480 ...
... ...
V8 V8 1:20480 ...
... ...
V9 V9 1:20480 ...
... ...
V10 V10 1:20480 ...
... ...
V11 V11 1:20480 ...
... ...
V12 V12 1:20480 ...
... ...
V13 V13 1:20480 ...
... ...
V14 V14 1:20480 ...
... ...
V15 V15 1:20480 ...
... ...
V16 V16 1:20480 ...
... ...
(all values missing)
yes? list v1,v2,v3,v4,v5,v6,v7,v8,v9,v10
DATA SET: ./test.dat
X: 0.5 to 9.5
Column 1: V1
Column 2: V2
Column 3: V3
Column 4: V4
Column 5: V5
Column 6: V6
Column 7: V7
Column 8: V8
Column 9: V9
Column 10: V10
V1 V2 V3 V4 V5 V6 V7 V8
V9 V10
1 / 1: 848.0 -80.55 -7.133 50.00 16.10 -999.0 -999.0 9.00
11.00 2.00
2 / 2: 848.0 -80.98 -7.200 50.00 16.80 -999.0 -999.0 7.00
3.00 22.00
3 / 3: 848.0 -81.33 -7.367 50.00 17.90 -999.0 -999.0 4.00
12.00 3.00
4 / 4: 848.0 -81.33 -7.000 50.00 16.40 -999.0 -999.0 3.00
11.00 33.00
5 / 5: 848.0 -81.37 -6.617 50.00 16.70 -999.0 -999.0 12.00
0.00 10.00
6 / 6: 848.0 -82.00 -7.067 50.00 18.20 -999.0 -999.0 10.00
3.00 3.00
7 / 7: 848.0 -82.88 -5.633 50.00 17.50 -999.0 -999.0 75.00
0.00 0.00
8 / 8: 848.0 -83.33 -4.000 50.00 16.60 -999.0 -999.0 12.00
0.00 4.00
9 / 9: 848.0 -82.50 -4.000 50.00 16.50 -999.0 -999.0 1.00
7.00 0.00
yes? save/file=myfile.nc
v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16
=================================================
Timothée Brochier wrote:
hello,
I trying to put a large amout of data from oceanographics cruises in a
netCdf format,
I followed the steps explained in ferret documentation, creating a .cdl
file, transforming it to a .cdf with ncgen, and fill it with th datas
using a fortran progran, but it doesn't work, I think because I didn't
well understood how the time axis works...
my datas are in the form :
I put date in number of months since janury 1901 .
there is no regular time step, sometimes theres is 3 months without
data, ...
date lon lat data1 data2 .... ....
848 -80.55 -7.1333333 50 16.1 -999 -999 9 11 2 0 0 0 0 0
848 -80.983333 -7.2 50 16.8 -999 -999 7 3 22 0 0 0 0 0
848 -81.333333 -7.3666666 50 17.9 -999 -999 4 12 3 0 0 0 0 0
848 -81.333333 -7 50 16.4 -999 -999 3 11 33 0 0 0 0 0
848 -81.366666 -6.6166666 50 16.7 -999 -999 12 0 10 0 0 0 0 0
848 -82 -7.0666666 50 18.2 -999 -999 10 3 3 0 0 0 0 0
848 -82.883333 -5.6333333 50 17.5 -999 -999 75 0 0 0 0 0 0 0
848 -83.333333 -4 50 16.6 -999 -999 12 0 4 0 0 0 0 0
848 -82.5 -4 50 16.5 -999 -999 1 7 0 0 0 0 0 0
850
...
does anybody could explain me how to do to writes it in a cdf format?
Thanks
Timothee B.
--
º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤º¤ø,¸¸,ø¤º
Steve Hankin, NOAA/PMEL -- Steven.C.Hankin@noaa.gov
7600 Sand Point Way NE, Seattle, WA 98115-6349
ph. (206) 526-6080, FAX (206) 526-6744
|