[Thread Prev][Thread Next][Index]
Re: ascii file problems when reading: Summary
Dear All,
The solution given by Steve is just the one I needed. Before this I've
tried to do the ascii tricks that comes in the manual, those of using
soft links to rename the file, but I needed to copy and paste from the
original file and wasn't a clever solution.
Thanks a LOT!
cheers,
Antonio
----- Original Message -----
From: "Steve Hankin" <hankin@pmel.noaa.gov>
To: <arv@ono.com>
Cc: "Michael Spillane" <spillane@pmel.noaa.gov>; "Ansley Manke"
<ansley@pmel.noaa.gov>
Sent: Thursday, January 30, 2003 7:23 PM
Subject: Re: ascii file problems when reading
> Hi Antonio,
>
> At a guess, the problem is that the file has inherited the use of
> CarriageReturn and LineFeed that is inappropriate for your system.
This
> happens sometimes when ASCII files are attached to emails and saved
between
> Unix and Windows systems.
>
> Instead of FILE you can also try the more recent and powerful COLUMNS
> command in Ferret (alias for "SET DATA/FORM=delimited"). For the file
you
> have described it should be sufficient to issue
>
> yes? COLUMNS my_file.dat
> yes? LIST V1
>
> - steve
>
> =============
>
> arv@ono.com wrote:
>
> > Hi,
> >
> > I've read the manual pages and mail archives about this issue but
I'm
> > still having problems when reading my data, wich is a very simple
file
> > of one variable (wind, m/s)(one column) and 200 monthly
observations.
> > I've done the following:
> >
> > >file/var="wind" wind.txt
> > >show data
> > currently SET data sets:
> > 1> ./wind.txt (default)
> > name title I J K L
> > WIND WIND 1:20480 ... ... ...
> >
> > But couldn't plot wind, because I get:
> >
> > Success
> > **TMAP ERR:
> > Last or next-to-last record read: 5.3
> >
> > So I've tried:
> >
> > >define axis/t="16-jan-1985:12":"16-dec-2000:12"/np=228 twind
> > >define grid/t=twind gwind
> > >file/var=wind/grid=gwind wind.txt
> >
> > >show data
> > currently SET data sets:
> > 1> ./wind.txt (default)
> > name title I J K L
> > WIND WIND ... ... ... 1:228
> >
> > >show grid wind
> > GRID GWIND
> > name axis # pts start end
> > normal X
> > normal Y
> > normal Z
> > TWIND TIME 228 r 16-JAN-1985 12:00 16-DEC-2000
12:00
> >
> > But again same problem when plotting or listing
> >
> > Any hints appreciated
> >
> > Cheers,
> >
> > Antonio Rodriguez
>
> --
>
> | NOAA/PMEL | ph. (206) 526-6080
> Steve Hankin | 7600 Sand Point Way NE | FAX (206) 526-6744
> | Seattle, WA 98115-0070 | hankin@pmel.noaa.gov
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/03
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement