Repository navigation
fix: exit status of grs and exe/launcher.py (#13) - #28
Merged
Merged
Conversation
… 1 processing error, 2 invalid or missing input, 3 skipped on purpose (cloud cover, no water)
Tristanovsk
added a commit
that referenced
this pull request
Nov 16, 2026
… fixed for Sentinel-2 (reference band, 0d76249) and Landsat (divided twice by sunglint_eps, edb2eaa), diffuse light interpolated in AOT, opt-in hybrid AOT under sunglint, log-log LUT interpolation in wavelength, stop when no clear-sky water is left; brings feature/v3.x (S3 inputs/outputs #29, exit codes #28) and the AERONET-OC match-up validation tooling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the exit status of the
grscommand and ofexe/launcher.pyreported in #13: a processing error ended with status 0, so the production chain went on to the Level-2B module with no Level-2A product.Targets
feature/v3.xso that the fix is part of #27.Exit status
--no_clobber, already there)log_file.log/error.log)-1, i.e. 255)<name>_no_water.txt) (was 0)Changes
grs/run.py:main(argv=None)returns the status (constantsEXIT_OK,EXIT_ERROR,EXIT_INPUT,EXIT_SKIPPED, listed ingrs -h); input, CAMS, SURFWATER and DEM files checked before the processing;GRS_IO_Exception→ 2; the log files are closed at the end of the run.exe/launcher.py: same statuses; itsnoclobbercheck also finds the Zarr products (default output) and the no-water marker; log files closed on every path.grs/tests/unit/test_exit_codes.py: every status for both entry points (fake processing), including the error of [Exception] GRS return an exit code 0 while output is not produced #13 (ValueError: arange: cannot compute length) → 1.The crash of #13 itself (
np.arangeon the solar angles, GRS 2.1.9) no longer exists in 3.x: the LUT preparation was rewritten and images without water stop early with the marker file.On the L2B side (GRSl2bgen), the launcher should also check that its input exists before opening it.
Unit tests: 508 passed locally.