comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Using .sav files outside of IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Using .sav files outside of IDL [message #54278 is a reply to message #54275] Tue, 29 May 2007 14:19 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
skcllus@gmail.com wrote:
> Hello,
>
> I have two structures saved in an IDL .sav file. Do you guys know how
> I can import this data to MATLAB. When I try, it says that .sav file
> is a proprietary format. I have a few IDL procedures that play with
> the data, and I'd like to port them to MATLAB. If it's not possible,
> can you suggest how I should go about saving these structures to a
> format that MATLAB would be able to read (preferably I would like the
> form of the structures preserved so that I won't have to think up new
> code/logic). Should I write to a file? If so, what format should I
> use?

I use netCDF for transporting data (or my own home-grown "binary" format). For your case I
would consider netCDF since both IDL and matlab have netCDF APIs so all you have to write
is the IDL wrapper code that writes your IDL structure to netCDF, and matlab code that
reads the netCDF file into a matlab structure.

Alternatively, you could see if IDL save files written in XDR format are readable in matlab.

cheers,

paulv

--
Paul van Delst Ride lots.
CIMSS @ NOAA/NCEP/EMC Eddy Merckx
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: map projection border/frame
Next Topic: simple question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 15:53:14 PDT 2025

Total time taken to generate the page: 0.79582 seconds