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

Home » Public Forums » archive » looking for some software to convert idl format data to text
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
looking for some software to convert idl format data to text [message #16630] Wed, 11 August 1999 00:00 Go to next message
Helin Wei is currently offline  Helin Wei
Messages: 1
Registered: August 1999
Junior Member
Hi,All

I have to convert some data which is saved in IDL format
by other group using the full version of IDL to text format
or normal binary format. We have not IDL on our local machine.
Is there any other software that can do this conversion? Can student
version of IDL do this job? Thanks.

Regards

Helin Wei
Re: looking for some software to convert idl format data to text [message #16810 is a reply to message #16630] Tue, 17 August 1999 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Helin Wei wrote:
> I have to convert some data which is saved in IDL format
> by other group using the full version of IDL to text format
> or normal binary format. We have not IDL on our local machine.
> Is there any other software that can do this conversion? Can student
> version of IDL do this job? Thanks.

Helin,

Here are some options:

(1) Convince the other group to write binary or text format data.

(2) Purchase a licensed copy of IDL (with educational discount, the cost
is < $1000).

(3) Follow the steps below to read the data:

Download and install the free demo version of IDL for any Unix platform
from
ftp://ftp.rsinc.com/pub/idl_5.2

Say the saved data was a single array named ARRAY, and it was saved in
IDL using this command:

IDL> save, array, file='data.sav'

then to restore the data in IDL, the command is

IDL> restore, file='data.sav'

To get text format output, create the following script and name it
test.pro:

restore, file='data.sav'
print, size(array)
print, array, format='(10e13.6)'
exit

Then execute the script using the following Unix command:

% idl test.pro > test.out

This will cause the contents of ARRAY to be saved as text in test.out.
The SIZE command prints the number of dimensions, the dimension values,
the data type code, and the number of elements.

Cheers,
Liam.

--
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Changing widget title?
Next Topic: Conversion Error?

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

Current Time: Wed Oct 08 16:00:38 PDT 2025

Total time taken to generate the page: 0.00457 seconds