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

Home » Public Forums » archive » Re: IDL Save Files: A Journey into Craig's World
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
Re: IDL Save Files: A Journey into Craig's World [message #38913] Mon, 05 April 2004 09:43 Go to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Michael Wallace <mwallace.removethis@swri.edu.invalid> writes:
> No. But I was curious if there were any differences. I'm working on a
> project where one of my requirements is to support IDL save files (much
> to my chagrin) as an output. However, I have no control over what
> version of IDL folks are using. I will always be using the latest
> version of IDL, but who knows what kind of incompatibilities may arise
> since the format of save files could change at any time. RSI has been
> known to change things without warning before...

If you control the writing of output files, then I might suggest that
you use my (mid- or low-level) library routines to make IDL save
files. Since the library is a totally independent implementation of
save-file functionality, you don't have to worry about it changing
with new versions of IDL. Unfortunately it does not do compressed
files, or files with objects inside, if either of those are important
to you.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: IDL Save Files: A Journey into Craig's World [message #38914 is a reply to message #38913] Mon, 05 April 2004 09:39 Go to previous messageGo to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Paul Van Delst <paul.vandelst@noaa.gov> writes:
> I thought (not sure though) that for data only, save files were
> compatible across IDL versions. For save files containing
> procedures, then there is an incompatibility.

I think RSI only mentions forward compatibility, that is, old files
will be readable in new versions of IDL. This still allows them to
completely change the format written by new versions of IDL. And I'm
not sure RSI actually "promises" to maintain even that compatibility
anywhere.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: IDL Save Files: A Journey into Craig's World [message #38915 is a reply to message #38914] Mon, 05 April 2004 09:11 Go to previous messageGo to next message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Michael Wallace wrote:

>
>> Do you have any reason to believe that IDL 6 save file formats have
>> changed?
>
>
> No. But I was curious if there were any differences. I'm working on a
> project where one of my requirements is to support IDL save files (much
> to my chagrin) as an output. However, I have no control over what
> version of IDL folks are using. I will always be using the latest
> version of IDL, but who knows what kind of incompatibilities may arise
> since the format of save files could change at any time. RSI has been
> known to change things without warning before...

Hello,

I thought (not sure though) that for data only, save files were compatible across IDL
versions. For save files containing procedures, then there is an incompatibility.

BTW, what bright spark made support of IDL save files a requirement for you?

paulv
Re: IDL Save Files: A Journey into Craig's World [message #38916 is a reply to message #38915] Mon, 05 April 2004 09:02 Go to previous messageGo to next message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> The variable-type descriptors are not full fledged records. What you
> are really asking is how the descriptors appear within a single
> variable's record. What you will find is that a structure descriptor
> starts with a value of "9". Then, if the structure contains any
> arrays or structures within itself, then descriptors for those follow,
> first arrays, then structures. For your problem, you would see the
> following byte stream:
> STRUCT_DESCR (N tags, including M arrays)
> ARRAY_DESCR (1)
> ...
> ARRAY_DESCR (M)

Ah. Okay. Yes, that's what I'm really asking.


> Do you have any reason to believe that IDL 6 save file formats have
> changed?

No. But I was curious if there were any differences. I'm working on a
project where one of my requirements is to support IDL save files (much
to my chagrin) as an output. However, I have no control over what
version of IDL folks are using. I will always be using the latest
version of IDL, but who knows what kind of incompatibilities may arise
since the format of save files could change at any time. RSI has been
known to change things without warning before...
Re: IDL Save Files: A Journey into Craig's World [message #38940 is a reply to message #38916] Fri, 02 April 2004 21:58 Go to previous messageGo to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Greetings!

Michael Wallace <mwallace.removethis@swri.edu.invalid> writes:
>
> What I'm interested in is an example of a save file which consists of a
> structure with multiple one-dimensional arrays. The arrays are the same
> size, but may be of different primitive data types (usually integers,
> sometimes floats, sometimes strings). I guess I'm trying to figure out
> how all the records line up and where everything falls for a complicated
> structure like this. I want to determine how easy it would be to create
> a save file such as this outside of IDL.

If you are looking for an example, then probably you could make an
example pretty easily with some sample data, right?

You can also easily use the mid- or low-level routines in my library
to create sample save files of any type you desire.

The variable-type descriptors are not full fledged records. What you
are really asking is how the descriptors appear within a single
variable's record. What you will find is that a structure descriptor
starts with a value of "9". Then, if the structure contains any
arrays or structures within itself, then descriptors for those follow,
first arrays, then structures. For your problem, you would see the
following byte stream:
STRUCT_DESCR (N tags, including M arrays)
ARRAY_DESCR (1)
...
ARRAY_DESCR (M)

After the first definition of a structure, any following structures of
the same data type refer back to the original instead of redefining it
again.

> By the way, do you (Craig) have plans to update the document for IDL 6.0?

Let's say that the implied legal threats against me by RSI and Kodak
have more or less cooled my interest in IDL save files.

Do you have any reason to believe that IDL 6 save file formats have
changed?

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: IDL Save Files: A Journey into Craig's World [message #39164 is a reply to message #38913] Sun, 18 April 2004 19:26 Go to previous message
p.sommer is currently offline  p.sommer
Messages: 20
Registered: April 2004
Junior Member
Craig Markwardt <craigmnet@REMOVEcow.physics.wisc.edu> wrote in message news:<ony8paml3e.fsf@cow.physics.wisc.edu>...
> Michael Wallace <mwallace.removethis@swri.edu.invalid> writes:
>> No. But I was curious if there were any differences. I'm working on a
>> project where one of my requirements is to support IDL save files (much
>> to my chagrin) as an output. However, I have no control over what
>> version of IDL folks are using. I will always be using the latest
>> version of IDL, but who knows what kind of incompatibilities may arise
>> since the format of save files could change at any time. RSI has been
>> known to change things without warning before...
>
> If you control the writing of output files, then I might suggest that
> you use my (mid- or low-level) library routines to make IDL save
> files. Since the library is a totally independent implementation of
> save-file functionality, you don't have to worry about it changing
> with new versions of IDL. Unfortunately it does not do compressed
> files, or files with objects inside, if either of those are important
> to you.
>
> Craig

For what it's worth, 6.1 will support a sav file query -- new routines
to handle this. I've seen alpha versions of the functionality and it
looks promising going forward.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to make it an array?
Next Topic: Need a vector generalization procedure in ENVI

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

Current Time: Wed Oct 08 20:02:03 PDT 2025

Total time taken to generate the page: 0.00972 seconds