X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Jun 2010 12:36 AM by  anon
IDL TOOL IN ENVI FOR CONVERTING REFLECTANCE TO RADIANCE
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 Jun 2010 12:36 AM
    Dear Friends, I'm Aishwarya. I'm a novice in IDL environment. I'm quite familiar with ENVI. I have MARS crism datasets. I want to convert the I/F reflectance values to Radiance. I have the band math expression. But writing a code for user function will give me only a single output band. And I want to run it for 72 bands with each band having a different values of "top of atmosphere" in RADIANCE calculation formula. The formula is as follows R=(Reflectance *Top of atmosphere irradiance*cos(solar zenith angle))/pI All values are available with me. For each band the top of atmosphere value changes. So how do I write a code in IDL for developing a tool in ENVI? Can anyone help me with this ? Ultimately I need a 72 band imagery with radiance values. Thanks in Advance, Regards, Aishwarya.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    22 Jun 2010 10:31 AM
    You have to loop through each band. Have a look at this tech tip: http://www.ittvis.com/ser...echtip.asp?ttid=3893

    Deleted User



    New Member


    Posts:
    New Member


    --
    22 Jun 2010 10:08 PM
    Dear Sir, Thank you so much for ur reply. But, the loop shows running the band math with same values of variables on the input image. In my case, I will have to substitute different values of top of atmosphere solar irradiance on different bands. The bottom line is 'each band has a different value'. THe formula is this Radiance = (reflectance * cos(solar zenith angle)* (top of atmosphere solar irradiance ))/(pi*d^2) Keeping all other variables (except reflectance ) constant I will have to change top of atm. solar. irr for each band. So can U suggest me how can I proceed on this ? I have got my values in excel file. For example, in erdas we insert a custom table in model maker. Likewise can I insert the excel file in the code such that for each iteration , my value keeps altering? Regards, Aishwarya.
    You are not authorized to post a reply.