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

Home » Public Forums » archive » Re: Uniting IDL and Matlab
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: Uniting IDL and Matlab [message #48418 is a reply to message #48416] Tue, 18 April 2006 00:51 Go to previous message
Jan Kristian Jensen is currently offline  Jan Kristian Jensen
Messages: 10
Registered: February 2006
Junior Member
ChristopherFlorio@gmail.com wrote:
> I'm currently at a point where I have to make an IDL program generate a
> Matlab friendly array of data points.


My strong recomondation is to save the data in a format independent of
both IDL and matlab, but supported by both. HDF or NETCDF may be good
candidates. Unfortunately, the IDL routines and documentation for
reading and writing scientific data formats are rather obscure, but
searching this this group should get you started all right :)



If you find this to cumbersome for some specific problem at hand, you
may try saving the data as a text file. It is very straightforward to
read and write a 2D array this way in IDL and matlab.


Or you may write the data as a 1D array which after reading can be
reformed into the original dimemsions. Both binary and ascii can be
written and read this way. Writing binary data in IDL and reading them
with matlab _*might*_ just work right away, or else you need to sort out
some more details (little v.s. big endian etc. etc.).


You could also check out the "Fortran file formats" in the IDL
documentation, and see if you find something simular in matlab. If you
get this far, I would recomend you to have another look at the HDF or
NETCDF formats.



Good luck!


Jan
--
Jan Kristian Jensen

Remove the obvious from the email adress to email me.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Update Shared memory Structure
Next Topic: IDL 6.2 Array Definition Question (Program code area full)

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

Current Time: Sat Oct 11 13:12:54 PDT 2025

Total time taken to generate the page: 1.91568 seconds