X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Jan 2008 09:17 AM by  anon
Writing SEG-Y file or How to Save an Object in a binary file ?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
10 Jan 2008 09:17 AM
    Hi, I have the following question. I open a SEG-Y file using the code available on ITTVIS website. So let says that I want to correct some values in the file and save it. I'vbe tried the following but got an error... I'm not sure how to save the information oSEGY = OBJ_NEW ('IDLffSEGY') ... doing my stuffs... ... OPENW, lun, dummy_output, /GET_LUN WRITEU, lun, oSEGY FREE_LUN, lun END % WRITEU: Expression containing object references not allowed in this context: OSEGY. Any help would be greatly appreciate. Thanks in advance. Best Regards. Antoine C.

    Deleted User



    New Member


    Posts:
    New Member


    --
    10 Jan 2008 09:17 AM
    IDL does not have a library for reading and writing SEG-Y files. The 'IDLffSEGY' library, I notice, is one of the freeware libraries that has been uploaded to ITT Visual Information Solutions' 'Code Contribution Library' site. I notice from that library's "home page", however, that it only "...provides read support for the SEG-Y file format." That is, it is not a library that provides a SEG-Y writer. If all you need to do is to share your 'IDLffSEGY' object from one IDL session with a future IDL session (or with some other user), then you should do this with IDL's SAVE procedure. Make sure, however, to read the second note in the Online Help for the 'SAVE procedure reference' about saving object instance variables. If, on the other hand, you need to write out data created in IDL as a SEG-Y format file, then the library download from our Code Contribution Library site will not help out. James Jones
    You are not authorized to post a reply.