X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11 Dec 2013 03:15 AM by  anon
L2 ocean color convert reflectance value
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
11 Dec 2013 03:15 AM
    I'm trying to calculate the correct values for reflectance at band 443. Most of the values I have for the L2 Rrs443 band are approx. -20,000. I was trying to input the following equation using slope and intercept to convert this number into the correct value. The formula I am using is: short Rrs_443(Number of Scan Lines, Pixels per Scan Line) ; Rrs_443:long_name = "Remote sensing reflectance at 443 nm" ; Rrs_443:slope = 2.e-06f ; Rrs_443:intercept = 0.050000001f ; Rrs_443:units = "sr^-1" ; Rrs_443:solar_irradiance = 188.75414f ; Rrs_443:bad_value_scaled = -32767s ; Rrs_443:bad_value_unscaled = -0.015534002f Rrs_443 = stored value * 2e-6 + 0.05 Does anyone know how to write this in bandmath? Thanks so much!

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    11 Dec 2013 05:51 AM
    Is this the equation? Rrs_443 = stored value * 2e-6 + 0.05 If so, it is basically the same. If stored value is the image DN, then you might want to cast it as float if it is not already: float(b1) * 2e-6 + 0.05
    You are not authorized to post a reply.