Sen2cor terrain correction error


I am trying to do a terrain correction for this product: S2A_OPER_PRD_MSIL1C_PDMC_20160713T144304_R093_V20160713T092032_20160713T092032.SAFE
In the L2A_GIPP.xml file I changed Cirrus_Correction and BRDF_Correction to 1 and modified DEM_Directory.

The DEM is downloaded, but afterwards I get 2 errors and the process stops:
ERROR 4: Unable to open EPSG support file gcs.csv.
Try setting the GDAL_DATA environment variable to point to the
directory containing EPSG csv files.
ERROR 1: Translating source or target SRS failed:

Any idea how to fix this?

Yes, I had this problem too. You need to create a new environment variable which is leading to this gca.csv directory.

You will find it in your Anaconda installation directory. [e.g. C:\Anaconda2\Lib\site-packages\sen2cor-2.2.1-py2.7.egg/sen2cor\cfg\gdal_data]


It works! Thank you very much, Andreas!