Re: Uniting IDL and Matlab [message #48418 is a reply to message #48416] |
Tue, 18 April 2006 00:51  |
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.
|
|
|