RE: SAVE/RESTORE files in C/FORTRAN (USING XDR!) [message #949] |
Sun, 28 February 1993 09:33 |
dutch
Messages: 8 Registered: June 1992
|
Junior Member |
|
|
To: comp.lang.idl-pvwave
Cc:
Subject: Re: SAVE/RESTORE files in C/FORTRAN?
Hi Mike
A colleague and I have written a library of C routines which write
XDR (eXternal Data Representation - very transportable binary) save files which
can be restored into IDL or MATLAB. The C routines are also callable from Fortran (I have testfiles to do this for VAX/VMS and SUN (Unix) machines). I have IDL procedures (LOADXDR/SAVEXDR) which read/write the XDR files. We have used these routines to write XDR files on a SUN (from Fortran), which are then FTP'ed to a VAX and read into IDL. We also use the XDR files to bounce data between IDL and MATLAB or as a common save file.
The Format of the XDR files was specifically chosen to be compatible with MATLAB XDR files, so the XDR files can restored into either IDL or MATLAB.
In summary, we have written IDL and C routines to bounce XDR files in MATLAB format backwards and forwards between Fortran (+C), IDL and MATLAB.
Let me know if this is what you want and which bits (if any) interest
you, and I'll either email the routines or post them to the net.
###########################################################
# Michael Dutch email: dutch@elpp1.epfl.ch #
# Centre de Recherches en Physique des Plasmas #
# Ecole Polytechnique Federale de Lausanne #
# 21 Ave des Bains #
# CH-1007 Lausanne, SWITZERLAND #
#---------------------------------------- #
# I'd rather have a bottle in front of me #
# than a frontal lobotomy. #
###########################################################
|
|
|