[Thread Prev][Thread Next][Index]
Re: ASCII data plot
hello Rolando,
Probably you are missing the trick at
/var="taox,taoy"
which reads alternative data points into taox and taoy. But your taox
and taoy are separate blocks of data and the suggestion to read this
kind of data is given at:
http://ferret.wrc.noaa.gov/Ferret/Documentation/Users_Guide/
current/fer_html.htm
under section Ch2 Sec6. TRICKS TO READING BINARY AND ASCII FILES.
Basically what you need to do, make soft link to your original data
file to two files (under unix environment):
ln -s var.dat varx.dat
ln -s var.dat vary.dat
and replace the reading line to these two lines:
file/var=taox/Columns=6/grid=mygrid varx.dat
file/var=taoy/skip=5/Columns=6/grid=mygrid vary.dat
/skip=n qualifier will skip n lines from the top in that
file. Your taoy starts after 5 lines in that file and so n is 5 in
that line.
Hope this helps,
arindam
------------------------------------------
ARINDAM CHAKRABORTY
Centre for Atmospheric & Oceanic Sciences
Indian Institute of Science
Bangalore 560 012; INDIA
Tel: +91-80-2932505, +91-80-3600450
Fax: +91-80-3600865
__________________________________________
On Tue, 8 Jul 2003, Rolando S. Balotro wrote:
> Hello All
>
> I would like to read grid file of two variables (taox, taoy) in order to
> plot a vector field. But somehow when I list the values they are not
> consistent with my field.
>
> file/var=alon lon1.dat
> file/var=alat lat1.dat
>
> define axis/from_data/x/name=mlon/units=deg alon[d=1]
> define axis/from_data/y/name=mlat/units=deg alat[d=2]
> define axis/t=1:1:1 mtime
> define grid/x=mlon/y=mlat/t=mtime mygrid
>
> cancel data/all
> file/var="taox,taoy"/Columns=6/grid=mygrid var.dat
> save/clobber/file=var.cdf taox, taoy
>
>
> Here is the data set
> 1 2 3.5 6 2 1
> 2 7.1 9 3 2 2
> 4 0 1 9 2 1
> 1.5 2.5 3 3 6 9
>
> 1 2 3.5 6 2 1
> 2 7.1 9 3 2 2
> 4 0 1 9 2 1
> 1.5 2.5 3 3 6 9
>
> Here is my erroneous listing
>
> yes? list taox
> VARIABLE : TAOX
> FILENAME : var.dat
> SUBSET : 6 by 4 points (LONGITUDE-LATITUDE)
> T : 1
> 90W 89.5W 89W 88.5W 88W 87.5W
> 1 2 3 4 5 6
> 19.5N / 4: 4.000 1.000 2.000 1.500 3.000 6.000
> 19N / 3: 1.000 3.500 2.000 2.000 9.000 2.000
> 18.5N / 2: 4.000 1.000 2.000 1.500 3.000 6.000
> 18N / 1: 1.000 3.500 2.000 2.000 9.000 2.000
>
> yes? list taoy
> VARIABLE : TAOY
> FILENAME : var.dat
> SUBSET : 6 by 4 points (LONGITUDE-LATITUDE)
> T : 1
> 90W 89.5W 89W 88.5W 88W 87.5W
> 1 2 3 4 5 6
> 19.5N / 4: 0.000 9.000 1.000 2.500 3.000 9.000
> 19N / 3: 2.000 6.000 1.000 7.100 3.000 2.000
> 18.5N / 2: 0.000 9.000 1.000 2.500 3.000 9.000
> 18N / 1: 2.000 6.000 1.000 7.100 3.000 2.000
>
>
> The grid points are consistent but the data are not. I cant figure out
> the source of error.
>
> Thanks in advance
>
> roland
>
>
>
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement