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!
|