-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sen2cor version #79
Comments
Hi usamahzaheer6, I don't have access to Sen2Cor 2.9 right now; could you post a copy of the help string (run |
(pyeo_env) [uz6@spectre12 bin]$ /scratch/satburn/uz6/scratch_new/Sen2Cor-02.09.00-Linux64/bin/L2A_Process --help Sen2Cor 2.9.0, created: 2020.11.30, supporting Level-1C product version 14.2 - positional arguments: optional arguments: |
OK; your patch looks good, can you compose it into a pull request? |
Thanks. Pull request created. |
The issue with sen2cor v2.8 for processing new images from S2 which are dated after 30th March 2021.
sen2cor should be upgraded to a higher version v2.9 in order to be working with new images.
I figured out there is s part of the code in raster_manipulation.py (#def get_sen2cor_version), which may need some edit regarding acquiring the version of sen2cor being used (if upgraded to v2.9) .
See below (modified),
`version_regex = r"Version: (\d+.\d+.\d+)"
match = re.search(version_regex, help_string)
if match:
return match.group(1)
else:
version_regex = r"Sen2Cor (\d+.\d+.\d+)"
match = re.search(version_regex, help_string)
if match:
return match.group(1)
else:
raise FileNotFoundError("Version information not found; please check your sen2cor path.")
`
The text was updated successfully, but these errors were encountered: