[Thread Prev][Thread Next][Index]
Re: [ferret_users] I have the problem in reading ascii file of 1 variable 2 dimensions
Hi Namba-san,
| the exsample Data is like this.
|
| 1 2 3 4 5 6 7
| 7 8 9 10 11 12 13
| 14 15 16 17 18 19 22
| 10 9 8 7 6 5 9
|
| DEFINE AXIS/X=1:7:1 xplants
| DEFINE AXIS/Y=1:4:1 yplants
| DEFINE GRID/X=xplants/Y=yplants gplants
| FILE/VAR=height/GRID=gplants test.txt
| shade height
In this case, FILE assumes you have one data item per line by default.
Since you have 7 items, you need the COLUMNS qualifier like so:
FILE/VAR=height/GRID=gplants/columns=7 test.txt
Hope this helps,
Ryo
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement