[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 980115: reading/converting Cray binary data files



>To: address@hidden
>From: John del Corral <address@hidden>
>Subject: reading/converting Cray binary data files
>Organization: .
>Keywords: 199801131939.MAA26222

Hi John,

> I am trying to convert cray binary data files to Digital Unix data
> files on a Digital Unix workstation.   I want to be able to
> ftp the cray binary file to the workstation and then convert 
> the files on the workstation.
> 
> I thought maybe there is a way in NetCDF to make a call to a
> netCDF routine to open and read a cray binary data file,
> and then write out a Digital Unix binary data file (maybe in
> netCDF format).
> 
> I contacted NCAR, but they only had routines that work on the Cray.

About the only way netCDF could help you with this would be to

 1.  Write a program for the Cray that reads the Cray binary data into
     memory (using your own I/O and knowledge of the data types and
     structures) and then writes it out as a netCDF file (using the
     netCDF library on the Cray).

 2.  FTP the resulting binary netCDF file to the Digital Unix
     workstation.

 3.  Read the resulting netCDF data on the Digital workstation
     using the netCDF library installed on the Digital workstation.

The only kinds of data conversion done in the netCDF library are between
a machine's native representation and the portable netCDF external
representation.  There is no conversion between the native
representation of two different machines in the netCDF library.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu