X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11 Dec 2007 12:24 AM by  anon
Using the SEG_Y code from the IDL code bank
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
11 Dec 2007 12:24 AM
    Hi, I try to understand how to plot the trace from the IDLffSEGY object that I've found in the code bank. I can make it work and read SEGY data. I can plot each trace from the GetTraceData method. However, I try to display the total profil as an image with the following VERY basic code: oSEGY=obj_new('idlffsegy') oSEGY -> getProperty, N_TRACES=n_traces for i=1,n_traces do begin data = oSEGY -> GetTraceData (TRACE_NUMBERS=i) if (i eq 1) then final=data.(0) else final=[final,data.(0)] endfor final=reform(final, i-1,1250) tv, final The result is absolutly wrong. The problem comes probably form the fact the the final array to display contains negative value. I try to work around this issue by offseting the data and convert the type to make sure that all the values are present, but without any luck... Is some one manage to get a descent visualisation of all the trace ? by any chance. Thanks in advance. Best Regards. Antoine C. I can send a segy file if that helps.

    Deleted User



    New Member


    Posts:
    New Member


    --
    11 Dec 2007 12:24 AM
    I do not know anything about 'IDLffSEGY' or 'SEG-Y' data, but, if there are negative values in your image array, then the image array is clealy not made up of byte data. That makes me wonder if TVSCL would not solve your problem. TV is really designed for byte data only. TVSCL scales data of other types (or of a smaller range of bytes) to the byte magnitude range of 0 to 255 - the min value of your data (even negative) becomes 0, the max value becomes 255. James Jones
    You are not authorized to post a reply.