Continuing the discussion from Workaround for sen2cor bug at resolution 10 m, with a nod to this “unrecognized variable” topic:
If you get a KeyERROR 'SEN2COR_HOME'
you might want to make sure that you installed Sen2Cor according to the SETUP.pdf, and that you have an environment variable called SEN2COR_HOME
.
To check for that environment variable on a Windows system, you can either
a) follow the instructions on How To Manage Environment Variables in Windows (XP) and
- Right-click My Computer, and then click Properties.
- Click the Advanced tab.
- Click Environment variables.
- Look for a variable called
SEN2COR_HOME
in either User or System Variables.
or you can
b) list the environment variables in a command window and look there, like this:
- Click the Start button (or press the Windows key).
- In the search box at the bottom of the Start menu, type
cmd
and press Enter. - In the Command Prompt window that should have popped up now, type
set
and press Enter. - Look for a variable called
SEN2COR_HOME
in the list of environment variables.
If you don't find a `SEN2COR_HOME` environment variable then your Sen2Cor setup probably failed -- you might want to retry.