[Thread Prev][Thread Next][Index]

Re: [ferret_users] Problem with reading from a file



As Russel Fiedler said it can be done in such a way:

FILE/VARIABLES=GriddedData/COLUMNS=132/GRID=BalticSea2D /format="(132F4.0)"  "bathymetry132x145.dat"
Thank You Russel!

2010/8/31 Russell Fiedler <russell.fiedler@xxxxxxxx>

Hi,

I think it might be due to the length of the lines.

Adding a fortran format specifier works

FILE/VARIABLES=GriddedData/COLUMNS=132/GRID=BalticSea2D /format="(132F4.0)"  "bathymetry132x145.dat"

Russ


On Tuesday 31 August 2010 00:42, Szymon Roziewski wrote:
> Hello everybody,
> I don't know what I am doing wrong during reading from a common file. I attach this file into this letter. The ferret script which is responsible for this job is as follows:
>
> set win/size=6.0/aspect=`1`
>  SET VIEWPORT FULL
> CANCEL MODE LOGO
> DEFINE AXIS/X=-5.666666667:5.25:0.083333333/unit=degree xlon
> DEFINE AXIS/Y=-2.0:10.0:0.083333333/unit=degree ylat
> DEFINE GRID/x=xlon/y=ylat BalticSea2D
> FILE/VARIABLES=GriddedData/COLUMNS=132/GRID=BalticSea2D "...bathymetry132x145.dat"
> shade/title="Bathymetry of Baltic Sea" GriddedData
> frame/file=bathymetry.gif
>
> and after it has done I get this error message:
>
>  **TMAP ERR: Numerical result out of range
>              Last or next-to-last record read:
>    0   0   0   0  -3  -8 -12 -16 -16 -11   0   0 -22 -23 -12  -7  -5  -7 -16 -19
>              Data set: /home/szymon/WAM/bathymetry132x145.dat
>              Data file: /home/szymon/WAM/bathymetry132x145.dat
> shade/title="Bathymetry of Baltic Sea" GriddedData
> Command file, command group, or REPEAT execution aborted
> STOP -script mode, ERROR RUNNING SCRIPT
>
> and when I just want to print out the GriddedData I got the same:
> yes? list griddeddata
>  **TMAP ERR: Numerical result out of range
>              Last or next-to-last record read:
>    0   0   0   0  -3  -8 -12 -16 -16 -11   0   0 -22 -23 -12  -7  -5  -7 -16 -19
>              Data set: /home/szymon/WAM/batymetria132x145.dat
>              Data file: /home/szymon/WAM/batymetria132x145.dat
> Does anybody know what I am doing wrong?
>
> I appreciate any solutions!
>
> With best regards,
> Szymon Roziewski
>



--
Z wyrazami szacunku,
Szymon Roziewski

[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement