🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #6435

Cray to Sun unformatted data file conversion

#6435
From: William McKie
Date: Mon, 19 Feb 1990 06:28
26 lines
1814 bytes
Does anyone know of a program which converts a Cray unicos fortran
unformatted variable length record file to a logically equivalent
file readable on a Sun-4 with Sun fortran?

The Cray file records consist of 64 bit REAL and INTEGER words only,
and it is desired that the Sun file contain 32 bit REAL and INTEGER
words (ieee).  Cray REALs with magnitude not representable in the
32 bit Sun format could be set to extreme values, or to one of the
ieee special values.  Cray INTEGERs with magnitude not representable
in the 32 bit Sun format could be truncated to the low order 32 bits.
It would be nice to run the translation program on the Cray side, and
then transfer the Sun image file over a network to the Sun.

Is this doable without the program knowing record lengths and the
structure of INTEGERs and REALs within each Cray record?  Can Cray
REAL words be distinguished in all cases from Cray INTEGER words?
Can the Sun fortran binary file structure be constructed on the
Cray side without interference from Cray internal blocking control
words?  [I think the Sun fortran unformatted variable length record
structure has a 32 bit integer record size byte count preceding and
following each record's data bytes.) 

Thanks,
Bill McKie
NASA Ames Research Center
mckie@sky.arc.nasa.gov
Technical Details
Message-ID: <4950@amelia.nas.nasa.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!jarthur!elroy.jpl.nasa.gov!ames!amelia!mckie

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!jarthur!elroy.jpl.nasa.gov!ames!amelia!mckie
From: mckie@amelia.nas.nasa.gov (William McKie)
Newsgroups: comp.lang.fortran
Subject: Cray to Sun unformatted data file conversion
Message-ID: <4950@amelia.nas.nasa.gov>
Date: 19 Feb 90 06:28:56 GMT
Reply-To: mckie@amelia.nas.nasa.gov (William McKie)
Distribution: usa
Organization: NASA Ames Research Center, Moffett Field, CA
Lines: 26