[Thread Prev][Thread Next][Index]
Re: [ferret_users] importing an ascii file
Hi Antonio,
I just had success by adding a delimiter value and specifying the
variables.
Given your example dataset:
yes? define axis/X=36:36:1/units=degree clorx
yes? define axis/Y=-11:0:1/units=degree clory
yes? define grid/X=clorx/Y=clory clorgrid
yes? file/form=delim/delimiter=" "/type=numeric/skip=1/
var="Lon,Lat,Chl"/grid=clorgrid junk.txt
yes? list Chl
VARIABLE : CHL
FILENAME : junk.txt
SUBSET : 12 points (LATITUDE)
LONGITUDE: 36E
36E
1
0 / 12: 0.1810
1S / 11: 0.2057
2S / 10: 0.2166
3S / 9: 0.2312
4S / 8: 0.2379
5S / 7: 0.5971
6S / 6: 0.5526
7S / 5: 0.1303
8S / 4: 0.1093
9S / 3: 0.1023
10S / 2: 0.1191
11S / 1: 0.1263
It makes three separate data sets though, so there may be a more
elegant way.
Hope that helps, apologies if I missed something.
Evan
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement