[Thread Prev][Thread Next][Index]

Re: [ferret_users] How to read ASCII data accurately



Hi Martin,
I'm not sure why this question is just coming through now, but I at least am just seeing your question.

You're right that Ferret v6.8 and higher reads data as double precision. I made a file with just that one value in it, and read it as follows,

 	NOAA/PMEL TMAP
 	FERRET v6.842  
 	Linux 2.6.18-308.1.1.el5 64-bit - 01/31/13
 	13-May-13 10:03     
 
yes? set data/ez asc.dat
yes? list/prec=12 v1
             VARIABLE : V1
             FILENAME : asc.dat
             X        : 1
          734707.01069
So I'm not sure what is happening on your end.


On Thu, May 2, 2013 at 8:50 AM, Martin Schmidt <martin.schmidt@xxxxxxxxxxxxxxxxx> wrote:
Hi,
I have an ASCII input file. One variable is the Julian day (from 0000) and looks like

734707.010069

Reading this with set data/ez I find

list/prec=10 v1

1   / 1:  734707.0000

which is not, what I would like to get.

I am using ferret_v6842_rh5, which should use real*8 accuracy for operations.

Is there a way to read ASCII data with the same accuracy?

I do not know, who had the idea to use this far away time origin, the data are as they are. Possibly
for compatibility with EXCEL.
For sure, I could edit the input file, remove the first four digits of the time variable and add this
after reading the data. This workaround is fine for my example, but for a larger project I am interested in a
more general solution with ferret - if it exists.

Many thanks,
Martin Schmidt




[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement