Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

how to import unformatted Fortran data

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124208] how to import unformatted Fortran data
  • From: Ted Sariyski <tsariysk at craft-tech.com>
  • Date: Fri, 13 Jan 2012 04:53:57 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <200505030926.FAA25678@smc.vnet.net> <200505040433.AAA06190@smc.vnet.net>

Hi,
I need to import Fortran unformatted, byteswapped data to Mathematica. 
The fortran code first reads two integers, which define the the shape of 
4 arrays:

integer*32 ::  num_4cells,num_vertices
integer*32 :: kphi4(1:4,1:num_4cells)
real*8        :: x(1:num_vertices)
real*8        :: y(1:num_vertices)
real*8        :: z(1:num_vertices)

Data files have more complicated structure, but it follows the same 
pattern. How can I import these data into Mathematica? Any help will be 
highly appreciated?

Thanks in advance,
--Ted






  • Prev by Date: Re: This is nuts: Block[{u = 1}, g3[u]] and Block[{u = 0}, g3[u]] executes but NIntegrate[g3[u], {u, 0, Infinity}] doesn't execute
  • Next by Date: Re: Can't use subscripted variables in function definition?
  • Previous by thread: Re: chasing.m with Mathematica 8
  • Next by thread: KeyEventTranslations: how to make them work with *two* modifiers? (Both Shift and Control)