Repository navigation
feat: inputs and outputs on S3-compatible object storage and web servers (#11) - #29
Merged
Merged
Conversation
…ers (#11): URLs for the Level-1 product, CAMS, DEM, SURFWATER, output and GRS_CONFIG (grs.remote, storage_options, grs --log_dir)
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.
First part of #11: inputs and outputs of the processing on S3-compatible object storage and web servers (fsspec URLs:
s3://,https://...).export AWS_PROFILE=my-profile AWS_ENDPOINT_URL=https://s3.example.org grs s3://bucket/l1c/S2B_MSIL1C_..._.SAFE --cams_file s3://bucket/cams/cams_forecast_2022-07-14.nc \ --odir s3://bucket/l2a --resolution 20What accepts URLs
GRSdriver.remote, not released yet), otherwise a clearGRS_IO_Exception(exit status 2)GRS_CACHE_DIR, default: user cache folder)--odir, Zarr)--log_dir) and copied next to the product at the endGRS_CONFIG)https://(e.g. raw file on a Git server) ors3://Available in
Process.execute(newstorage_optionsargument), thegrscommand andexe/launcher.py(input_file,cams_folderwith the daily/monthly search,surfwater_file,output_dir). Credentials and endpoint: AWS environment (AWS_PROFILE,AWS_ENDPOINT_URL...) orstorage_options.Changes
grs.remote(URL helpers on fsspec), in the API reference;grs/config.py:GRS_CONFIGURL;grs/grs_process.py: remote Level-1 / CAMS / DEM / SURFWATER, remote no-water marker;grs/run.py,exe/launcher.py: URLs kept as strings (notPath, which turnss3://intos3:/), existence checks and cloud cover (MTD_MSIL1C.xml) read through fsspec,--no_clobberon the bucket,grs --log_dir;pip install GRSprocessor[remote](s3fs);grs:error.lognow written next tolog_file.login the output folder (was the current folder);Tests
grs/tests/unit/test_remote.py(16 tests) on the in-memory file system of fsspec (memory://, same code path ass3://, no network nor credentials): helpers, configuration from a URL, cloud cover, no-water marker,grscommand and launcher with URL inputs and output,--no_clobber, and a full processing of the Camargue subset with the CAMS file and the output in the bucket (skipped without LUTs). 524 unit tests pass locally.Not tested yet on a real S3 / CNES storage.
Still to do for #11