[Thread Prev][Thread Next][Index]

[ferret_users] Reading ascii file



Hi all
Simple question… 
I’m trying to read an ascii file  with 60 rows (each row is one year of data) and 19 columns : column 1 is year; columns 2 to 19 are the  same variable but different regions (18 regions).
I want to create one variable (nbp) with 18 levels, one per region.
Here is what I do, which doesn’t work :

define axis/T=1960:2019:1/units=year taxis
define axis/X=1:18:1 xaxis
define grid/T=taxis/X=xaxis mygrid

file/grid=mygrid/var= -,nbp "nbp.txt"

 1962   / 3:  0.2176

yes? list nbp[l=1]
             VARIABLE : nbp
             FILENAME : nbp.txt
             SUBSET   : 18 points (X)
             T (YEAR) : 1960
 1    /  1:  0.1057
 2    /  2:  0.1384
Re: [ferret_users] Reading ascii file
  • From: Patrick Brockmann
[Thread Prev][Thread Next][Index]