X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Apr 2021 12:06 PM by  MariM
Gain and offset values for Sentinel-2
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Ale Briseno



New Member


Posts:1
New Member


--
09 Apr 2021 11:45 AM
    Hello!

    I am new to ENVI and attempting to do a radiometric calibration and dark subtraction on Sentinel 2 L1C images. The metadata in the ENVI header shows 0.000 for the gain and offset values of all of the bands. I believe this is why I am getting "no data" when I attempt the radiometric calibration.

    Where can I find or calculate the gain and offset values to input them using the "Apply Gain and Offset" tool. I haven't found this information in the metadata, but I probably don't know what to look for.

    Thank you so much!

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    15 Apr 2021 09:12 AM
    Hello,
    Which version of ENVI are you using? Are you opening the data using the top level XML of the product? For example, 'MTD_MSIL2A.xml' which is at the top level along with the manifest.safe and folders?
    When I open an L1C data in ENVI 5.6, which is a TOA reflectance product, I see 1.0 set in the gains and 0.0 in the offsets. However, what is applied are the reflectance scale factors (as it is already calibrated to TOA reflectance) which are 0.0001. This allows you to convert to both radiance and TOA reflectance in floating point output.

    Ale Briseno



    New Member


    Posts:1
    New Member


    --
    19 Apr 2021 10:18 AM
    Hello, I have ENVI 5.5 (64-bit).
    When I try to open the metadata .xml or manifest.safe file I get a "file does not appear to be a valid Sentinel-2 file" error.
    I was able to find the gain values in the Sentinel-2 L1C Data Quality Report for the date my images were taken and I could manually input the gain values. Does this work?
    I am still having difficulties converting to radiance.
    Thank you!

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    19 Apr 2021 12:06 PM
    I believe you would need to populate the Reflectance scale factors with 0.0001 so that the conversation from TOA reflectance back to radiance can occur.
    You are not authorized to post a reply.