X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 16 Nov 2012 02:26 AM by  anon
read_miltiband_image
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
16 Nov 2012 02:26 AM
    Hello, I have simple problem! How could i get multiband image in to IDL enviroment. How could i open it? For example, image name "Jura.bil", Dims: row12775 x col28745 x bands18, Unsigned Int 13.219.825.500 bytes, pixel size 0.92 m, wavelenth range from 432 nm to 797 nm. So, could you write me a read_script please? Thank you....

    Deleted User



    New Member


    Posts:
    New Member


    --
    21 Nov 2012 01:29 PM
    You can use read-banary function OPENR, lun, file_name, /GET_LUN Im = read_binary(lun, data_dims=[sam, lin, band] , data_type=12); Which sam, lin, band are number of sample, lines and bands respectively. And Im is your data.

    Deleted User



    New Member


    Posts:
    New Member


    --
    21 Nov 2012 02:49 PM
    Hope you have a BIG computer with a LOT of memory if you try this! You might be better off reading only the bands you need, using associated variables: OpenR, lun, fileName, /Get_Lun image = Assoc(lun, UIntArr(samples, lines)) Then, if you want the fourth band: band4 = image[3]
    You are not authorized to post a reply.