Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
d5e26ef
Merge remote-tracking branch 'cnes_github/develop' into feature/v3.0
Sep 28, 2026
f3f6b10
add former documentation of readthedocs
Oct 2, 2026
a06330a
test name
Oct 2, 2026
7c5a1ed
test name
Oct 2, 2026
ac96139
big update about masking
Oct 5, 2026
9e063a2
optimize LUT interpolation, change neam acutils to utils, documentation
Oct 6, 2026
026d901
export ZARR
Oct 6, 2026
2914a6f
export ZARR testing
Oct 6, 2026
57c2cd1
add ZARR 3
Oct 7, 2026
787072c
documentation
Oct 7, 2026
2c2d55e
fix for pyramids and geoinformation
Oct 7, 2026
33f6175
optimization
Oct 7, 2026
d19f9af
optimize package importation
Oct 7, 2026
c657da2
fix unresolved imports with lazy package loading
Oct 7, 2026
c4aa66f
set coarse raster by spatial resolution instead of pixel factors
Oct 7, 2026
49f9415
load Sentinel-2 viewing geometry lazily
Oct 7, 2026
82b9d50
document kernel physics with equations for readthedocs
Oct 7, 2026
b00ca60
store aot coarse resolution in output attributes, default 240 m
Oct 7, 2026
876a909
rework sphinx documentation for readthedocs
Oct 7, 2026
6f0910c
fix autosummary class template path in API reference
Oct 7, 2026
cecd659
docs: light/dark logos, partner logos, zarr export in processing chain
Oct 7, 2026
08af514
fix --no_clobber for zarr output and --snap_compliant help in CLI
Oct 7, 2026
62a0046
small updates
Tristanovsk Oct 12, 2026
c670690
restrict setuptools package discovery to the grs package
Tristanovsk Oct 14, 2026
f6b3062
fix weights of the AOT smoothing in Process.execute
Tristanovsk Oct 14, 2026
15050f8
scale the AOT smoothing windows with the retrieval blocks
Tristanovsk Oct 14, 2026
e9d6054
fix compatibility with recent xarray versions
Tristanovsk Oct 14, 2026
6e90395
bump version to 3.1.0
Tristanovsk Oct 14, 2026
43d2ca8
set the default aot_resolution to 480 m
Tristanovsk Oct 14, 2026
eb9f0cb
add --aot_resolution option to the CLI
Tristanovsk Oct 14, 2026
fd1579f
docs: reorganise the tutorials
Tristanovsk Oct 14, 2026
d1e1426
fix vertical NaN bands in Landsat products
Tristanovsk Oct 14, 2026
e2a7ae3
docs: rerun the Landsat tutorial after the fix of the NaN bands
Tristanovsk Oct 14, 2026
acb88ca
fix NaN at the image edges in the final processing
Tristanovsk Oct 14, 2026
ef83d56
docs: rerun the Landsat tutorial after the fix of the NaN edges
Tristanovsk Oct 14, 2026
7fdc37c
docs: remove coastlines from the tutorial maps and rerun the tutorials
Tristanovsk Oct 14, 2026
4cd17ef
configuration read at run time, grs_config command, LUT download from…
Tristanovsk Oct 15, 2026
6aa5c0a
LUTs downloaded from the published Zenodo record (doi:10.5281/zenodo.…
Tristanovsk Oct 15, 2026
caa8901
skip the NaN pixels in the final processing
Tristanovsk Oct 15, 2026
22d42b3
p_slope: skip the disabled slope probability
Tristanovsk Oct 15, 2026
13303a6
reduce the memory of the processing
Tristanovsk Oct 15, 2026
8cb0d20
fix the gas absorption correction for dask-backed bands
Tristanovsk Oct 15, 2026
80adad4
PyPI packaging (GRSprocessor) with automatic download of the LUTs
Tristanovsk Oct 15, 2026
ad3a69a
docs
Tristanovsk Oct 15, 2026
0f7e637
two malloc arenas (MALLOC_ARENA_MAX=2) in the Docker images and launc…
Tristanovsk Oct 16, 2026
9325211
NetCDF export: write boolean attributes as integers (gas_absorption_c…
Tristanovsk Oct 16, 2026
9c3ebfd
README: installation with pip (Python >= 3.11), LUT download, CAMS fr…
Tristanovsk Oct 16, 2026
d0d0db9
docs: batch processing tutorial for Sentinel-2 time series
Tristanovsk Oct 16, 2026
06b5d0a
docs: CAMS tutorial with the daily YYYY/MM/DD archive
Tristanovsk Oct 16, 2026
9a8eb54
CAMS archive in a YYYY/MM/DD tree
Tristanovsk Oct 16, 2026
e85770f
docs: CAMS tutorial on a 2026 image with the daily CAMS archive
Tristanovsk Oct 16, 2026
7fb0f86
requirements: h5py (optional extra of h5netcdf since 1.8)
Tristanovsk Oct 16, 2026
1714ee3
docs: grstbx on PyPI, viewer controls and web dashboard
Tristanovsk Oct 16, 2026
ea6f9d7
aerosol section of the configuration: settings of the AOT retrieval
Tristanovsk Oct 16, 2026
a122b74
clip the smoothed AOT map at 0: NaN Rrs for the whole image otherwise
Tristanovsk Oct 17, 2026
c52df9c
docs: tile 31TEJ is the Gulf of Lion (Thau lagoon), not the Alps
Tristanovsk Oct 17, 2026
3afd4a9
default aot_chunk 64: AOT retrieval blocks of 15 km at 240 m
Tristanovsk Oct 17, 2026
5c91f51
unit tests on a small L1C subset of the Camargue (grs/tests/unit)
Tristanovsk Oct 19, 2026
937cbc6
version history consistent with cnes_github/develop
Tristanovsk Oct 19, 2026
fd425c0
docs(visualization): water-quality section with GRSl2bgen 1.1.0dev0 a…
Tristanovsk Oct 20, 2026
a458b35
docs: Read the Docs pre-release of v3 (v3.x branch): build without co…
Tristanovsk Oct 21, 2026
f3a0691
tests: integration tests moved to the unit tests on the Camargue subs…
Tristanovsk Oct 22, 2026
02cb6f7
kernel: legacy eager methods removed; auxdata merged into utils
Tristanovsk Nov 2, 2026
02adbd9
output: wind packed as int16, Zarr export compresses and chunks every…
Tristanovsk Nov 3, 2026
e1b83d9
output: PNG quicklooks (L1C RGB, L2A RGB, sunglint) next to the product
Tristanovsk Nov 3, 2026
e7c6bfe
docs: installation page brought up to date (Python >= 3.11, PyPI, CPU…
Tristanovsk Nov 3, 2026
a5e0b37
docs: quicklooks in the processing chain (data types, content and str…
Tristanovsk Nov 3, 2026
34954d7
docs: README_CNES reduced to TREX (v3 install, LUTs without internet,…
Tristanovsk Nov 3, 2026
a8388d8
v3.1.1: OmniCloudMask replaces s2cloudless; only the clear-sky (OCM c…
Tristanovsk Nov 3, 2026
ab6780e
build: setuptools>=70.1 without the wheel package in the build requir…
Tristanovsk Nov 3, 2026
b2d1d9c
perf: final_process_chunk in float32 with in-place products; peak mem…
Tristanovsk Nov 5, 2026
9c46d86
fix: thread-safe numba layer by default (workqueue aborts on the conc…
Tristanovsk Nov 5, 2026
eab438e
docs: Sentinel-2 processing example rerun with GRS 3.1.1 (OmniCloudMa…
Tristanovsk Nov 5, 2026
822f316
docs: remove unused imports (osgeo.gdal, numpy) from the example note…
Tristanovsk Nov 5, 2026
e2a2453
perf: CAMS NetCDF3 files read with the scipy engine (memory map: ~50 …
Tristanovsk Nov 5, 2026
1c6751b
perf: aerosol retrieval loops in numpy (AOT LUT interpolated once per…
Tristanovsk Nov 5, 2026
c0f8973
feat: stop early for images without water (min_water_area, default 1 …
Tristanovsk Nov 5, 2026
8d315e4
feat: marker file <name>_no_water.txt written by write_output for the…
Tristanovsk Nov 5, 2026
438173c
docs: CHANGELOG and version history of 3.1.1 (no-water early stop and…
Tristanovsk Nov 5, 2026
2dfd0dd
fix: grs --no_clobber checks the existing product / no-water marker b…
Tristanovsk Nov 5, 2026
82f369a
docs: CHANGELOG entry for the --no_clobber log fix
Tristanovsk Nov 5, 2026
928bc4a
docs: rename GRS to GRSprocessor in the documentation (pages, example…
Tristanovsk Nov 13, 2026
cf5743b
docs: rename GRS to GRSprocessor in README.md and README_CNES.md
Tristanovsk Nov 13, 2026
f07b345
Merge develop (CNES) into feature/v3.x: CI, unit tests and dependenci…
Tristanovsk Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
python -m pip install -r requirements.txt --no-cache-dir --force-reinstall
python -m pip install pytest pytest-cov

echo "Lancement des tests des répertoires grs/tests/unit/ et grs/tests/integration_tests/"
python -m pytest --tb=short -vv -s -x grs/tests/unit/ grs/tests/integration_tests/ --cov=grs --cov-report=html:cov_html --cov-report=xml:coverage.xml --junitxml=test-results.xml
echo "Lancement des tests du répertoire grs/tests/unit/"
python -m pytest --tb=short -vv -s -x grs/tests/unit/ --cov=grs --cov-report=html:cov_html --cov-report=xml:coverage.xml --junitxml=test-results.xml

if [[ "$GITHUB_REF_TYPE" == "tag" ]]; then
echo "Génération du badge coverage"
Expand Down
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,58 @@ Dates are given for tagged releases only.

## [Unreleased] - 3.1.1

### Added
- Images without water are not processed: `Process.execute` stops right after reading the image (no CAMS,
cloud mask, LUTs nor aerosol retrieval) when the water test of the processing finds less water than
`min_water_area` (km², `settings: min_water_area` of the configuration, default 1 km²; argument of
`execute` and `--min_water_area` option of the CLI; 0: only images without any water pixel). Instead of
the product, `write_output` writes the marker file `<name>_no_water.txt` (image, water area, minimum,
version), skipped like a product by `grs --no_clobber` and by the batch tutorial (status `no_water`).
Not used with `allpixels`.
- Unit tests of the `Kernel` retrievals (`grs/tests/unit/kernel/`: LUT preparation, coarse rasters, wind,
SWIR and visible aerosol, final processing), of the masking, output product, configuration, command line,
exceptions and utilities (from `develop`, PR #24 and #26).
- CI from `develop`: GitLab synchronisation in its own workflow (`gitlab-sync.yml`, Gitflow branches,
merge requests and releases), unit tests before the PyPI publication, test and coverage summary,
release/hotfix/bugfix branches, documentation published on tags; `notebooks` extra in `pyproject.toml`.

### Changed
- Faster processing, same products (bit-identical L2A on a Sentinel-2 tile; `execute` about 295 s ->
150 s on the Loire tile at 20 m):
- CAMS NetCDF3 files (monthly global files `cams_forecast_YYYY-MM.nc`) read with the xarray `scipy`
engine (memory map): the area of an image is read in ~5 s instead of ~50 s from a hard disk when the
file is not in the cache. The NetCDF4 files (daily archive, ADS downloads) keep the default engine.
- LUT preparation: only the window of the radiance LUT around the angles of the image is read, once
per run, and the aerosol models are mixed before the angular interpolation (45 + 26 s -> 21 + 7 s for
the first and refined LUTs).
- Aerosol retrieval: the loops over the tested AOT values work on numpy arrays (AOT LUT interpolated
once per block, nearest diffuse light LUT by index, direct transmittance without xarray): 33 -> 19 s.
- Lower memory of the final processing: blocks computed in float32 with in-place products, peak memory
per block halved (~150 MB for blocks of 512 pixels, ~600 MB for 1024), same speed and Rrs.
- One numba thread per block of the final processing (the blocks already run in `processor: ncpu` dask
threads): `ncpu` is the number of busy cores, as fast as all the cores per block before.
- Cloud screening with OmniCloudMask only, in the core of the processing: the pixels processed (aerosol
retrieval and correction) are the clear-sky water pixels, OmniCloudMask class 0 (no thick cloud, thin
cloud or cloud shadow, `Masking.clear_sky`); cloudy pixels get NaN `Rrs`. The `mask` recipe masks the
OmniCloudMask bits 11, 12 and 13 (was: s2cloudless bit 1 and OmniCloudMask shadow bit 13).
- s2cloudless removed (masking step, settings, `Masking.s2cloudless_mask` and the `s2cloudless`
requirement, with LightGBM): flag bits 1 and 2 (`cloud_p06`, `cloud_p08`) are no longer set.
- Merge of `develop` (CNES): Docker images on Ubuntu 24.04 / Python 3.12 without GDAL, SLURM test
environment on Python 3.12, `exe/launcher.py` without `osgeo` (cloud cover from `s2_cloud_cover`),
light `environment.yml`, CWL descriptor reading its inputs from S3; requirements with minimum versions
and GRSdriver >= 2.0.4 (no EOReader, sertit, fiona). The processing code of 3.1.1 is kept.

### Fixed
- Thread-safe numba threading layer by default (`NUMBA_THREADING_LAYER=threadsafe`: TBB, else OpenMP,
unless set by the user): the fallback `workqueue` layer aborted the process on the concurrent calls of
the numba kernels from the dask threads.
- `grs --no_clobber`: the existing product (or no-water marker) is checked before the logger is set up,
so a skipped run no longer overwrites the `log_file.log` of the previous run (the skip message is
printed).
- Wind retrieval: `_find_min_cost` picked the first candidate with a NaN cost (`np.argmin` returns the
first NaN) instead of the smallest valid cost, giving a NaN cost and a wrong wind on the pixels where
only some wind candidates have a valid cost.
- Configuration tests no longer read the user file of the computer (`~/.config/grs/config.yml`).

## [3.1.0]

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ required to actually run `grs` on data.
## Running tests

```bash
pytest grs/tests/unit/ grs/tests/integration_tests/
pytest grs/tests/unit/
```

The unit tests (`grs/tests/unit/`, about 10 s) run on a small L1C subset stored in the repository
Expand Down
Loading
Loading