X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 03 Apr 2012 01:35 PM by  anon
idl help
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
03 Apr 2012 01:35 PM
    respected sir, i am a beginner in IDL. my problem is that i have to open an image which is in " .bin " format in idl. i have converted it into ASCII format but stil its not opening. how to open a DN value image in idl. there is some other problem also. as it is a satellite data image so its showing the dimension as " Array[14293248] " which comes out to be " 1184 * 3018 * 4 " but its dimension is in .CSV format which is " 1184 * 3018 " so how come this multiplication factor of " 4 " is generated. In MATLAB i can open the same data after converting it into text or ".csv" format and than importing it but the problem is the data size is huge so its not possible to work in matlab. is there any way to do the same procedure in IDL

    Deleted User



    New Member


    Posts:
    New Member


    --
    03 Apr 2012 01:42 PM
    This question has already been answered on the IDL newsgroup (comp.lang.idl-pvwave) and in private correspondence. What makes you think you are going to get a better answer here? If you don't understand the answer, then you should ask questions about what you don't understand. Not keep posting the same question over and over again. This is a certain way to make sure no one bothers to answer your questions in the future.

    Deleted User



    New Member


    Posts:
    New Member


    --
    03 Apr 2012 02:04 PM
    If the data are in CSV format, I recommend trying the READ_CSV() function that was introduced with IDL 7.1. It is also possible to use the READ_ASCII command, but you will likely also have to use ASCII_TEMPLATE to define a template first. READ_CSV is much easier to use. Check out the IDL documentation for further information. As for the factor of "4" that you mention, it may be that this is a 4 band image, one band per wavelength. To view this in IDL, you'll want to use the IMAGE() function, and select from the array 3 bands to display, for example something like this: img = image(array[*,*,0:2]) Again, check out the IDL docs for details. -Josh Exelis VIS
    You are not authorized to post a reply.