activating DEM/SRTM usage for Sen2corToolbox V10

enable DEM/SRTM usage for Sen2corToolbox V10

I am trying to manually enable the use of the srtm DEM to launch the L2process.bat process in the new version 10. Specifically I am interested in having the program automatically download the required dem for the region. According to the ESA user guide this is done by editing the configuration file L2A_GIPP.xml which is located in the - Sen2Cor home directory - does anyone know where this file is located and where I should create the dem/srtm folder?

Example: <DEM_Directory>dem/srtm</DEM_Directory>
<DEM_Reference>
http://srtm.csi.cgiar.org/wp-content/uploads/files/srtm_5x5/TIFF/
</DEM_Reference>

I have problems with v10 the NDVIs are low after February 2022. Do you have the same problem?

Hi, I don’t have that problem. I would need to know more to help you. February NDVIs are not very high with respect to spring for example, but maybe SEN2COR is not doing a correct atmospheric correction. You should also consider the topographic effect. That’s why it’s important to enable the use of DEM…

On Linux, the config file is located at:
~/sen2cor/2.10/cfg
(unless specified otherwise)

Unsure on Windows. Maybe try searching your home directory for “L2A_GIPP.xml”

The XML will initially containing the following:

    <DEM_Directory>NONE</DEM_Directory>
    <!-- should be either a directory in the sen2cor home folder or 'NONE'. If NONE, no DEM will be used -->
    <DEM_Reference>NONE</DEM_Reference>
    <!-- DEM_Reference>http://srtm.csi.cgiar.org/wp-content/uploads/files/srtm_5x5/TIFF/</DEM_Reference -->
    <!-- disable / enable the upper two rows if you want to use an SRTM DEM
         The SRTM DEM will then be downloaded from this reference, if no local DEM is available
         if you use Planet DEM you can optionally add the local path instead,
         which then will be inserted in the datastrip metadata -->

Note that the SRTM reference is already provided, but commented out. Here, one also names a directory for the tiles to get automatically downloaded to. This can be any name, but only needs to be the folder name, not a full path.

e.g.

    <DEM_Directory>srtm</DEM_Directory>
    <!-- should be either a directory in the sen2cor home folder or 'NONE'. If NONE, no DEM will be used -->
    <!-- DEM_Reference>NONE</DEM_Reference -->
    <DEM_Reference>http://srtm.csi.cgiar.org/wp-content/uploads/files/srtm_5x5/TIFF/</DEM_Reference>
    <!-- disable / enable the upper two rows if you want to use an SRTM DEM
         The SRTM DEM will then be downloaded from this reference, if no local DEM is available
         if you use Planet DEM you can optionally add the local path instead,
         which then will be inserted in the datastrip metadata -->

Now when you run Sen2Cor, tiles should get downloaded to:
~/sen2cor/2.10/srtm
or the equivalent Windows directory