[Thread Prev][Thread Next][Index]

Re: [ferret_users] How to read ASCII data accurately



Hi Martin,

Version 6.82 RH6 reads this to full precision so it looks like a
difference between OS or a bug has crept in.

russ-hf% ferret -nojnl
        NOAA/PMEL TMAP
        FERRET v6.82  
        Linux 2.6.32-279.1.1.el6.x86_64 64-bit - 08/03/12
         3-May-13 09:55   
yes? file/var=xx dummy
yes? list/prec=10 xx
             VARIABLE : XX
             FILENAME : dummy
             X        : 1
          734707.0101

There also the /TYPE=r8 qualifier which might work or try specifying the
Fortran format explicitly.

Russ

On Thu, 2013-05-02 at 17:50 +0200, Martin Schmidt 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