MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: Reading Fortran Data file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100409] Re: [mg100360] Re: Reading Fortran Data file
  • From: "Scot Martin" <smartin at seas.harvard.edu>
  • Date: Tue, 2 Jun 2009 06:50:16 -0400 (EDT)
  • Organization: Harvard University
  • References: <gvtmic$gho$1@smc.vnet.net> <200906011113.HAA26327@smc.vnet.net>
  • Reply-to: <scot_martin at harvard.edu>

CSV format can deal with Fortran numbers.

Import["file.dat","CSV"]

christopher pike wrote:
> Hi,
>   Have data fortran data file with numbers like 0.447562485933D-01.  I
> need all the digits, but mathematica seems to only read this as
> 0.0448062.
>   I can read it as a string and get
> 
>     "0.448062494397D-01"
> 
> but when I use ToExpression, I get
> 
>    -1 + 0.448062 D
> 
> So how can I read in all the digits.
> 
> thanks for any help, chris
> 




  • Prev by Date: Re: Min function returns Min[2.05875,] instead of just 2.05875
  • Next by Date: Re: Min function returns Min[2.05875,] instead of just 2.05875
  • Previous by thread: Re: Reading Fortran Data file
  • Next by thread: Re: Reading Fortran Data file