where L2A_Process is the path for L2A_Process bash script and scene is the path for the SAFE folder. However, on running this file, it says
Sen2Cor/bin/python2.7: not found
However, The following code returns a positive output and affirms that the file is there:
if os.path.exists("/usr/local/lib/python2.7/dist-packages/Sen2Cor/bin/python2.7"): logging.info("Sen2Cor/bin/python2.7 exists") else: logging.info("Sen2Cor/bin/python2.7 does not exist")
I’ve also tried testing with absolute paths but to no avail
I am attempting to also run the L2A_Process in python (Spyder).
I do not have path problems with Sen2cor (yet at least…) in stead using the following code i just get
Out[165]: 0