Repository navigation
Release version 3.1.0 - #35
Merged
Merged
Conversation
# Conflicts: # grs/__init__.py # grs/grs_process.py # grs/run.py # pyproject.toml
# Conflicts: # grs/__init__.py # grs/grs_process.py # grs/run.py # pyproject.toml
…bsets around the site, one GRSprocessor run per subset, statistics for all and Level 2.0 matchups)
…atchup_nb.py); ring window 80-140 m around the platform (platform and shadow left out), images covering the site only; AAOT rerun and Section-7_Platform notebook (GRSprocessor 3.1.1+cc785e0)
…g-log space (_interp_wl_loglog): ~1 % error instead of ~10 % between 400 and 800 nm on the coarse LUT wavelength grid (leave-one-out test on the OSOAA LUT); linear interpolation kept where the values are not positive
… same coordinates, Level 2.0 kept when both have the same time, whole Sentinel-2 record from 2015-07); match-up with the nearest Level 2.0 record within MAX_LAG, else the nearest one; older CAMS file layout (up to 2024-06) read; results tagged with the last commit of grs/ ('.dirty' if grs/ has uncommitted changes) so commits that only touch notebooks keep the cache
…test on the TOA reflectance (NDSI(560, 1610) > 0.4, R(842) > 0.11, R(560) > 0.10, NDVI < 0.1, no opaque cirrus) with a whiteness test R(490) > 1.03 R(560) against very turbid waters; ice when R(560) < 0.5; snow and ice (which pass the SWIR water index) excluded from the processed water pixels (Masking.snow_ice) and set in mask; fix: neg_rrs moved from bit 18 (also the Landsat l1_snow bit) to bit 23 and set with OR instead of +
…le Sentinel-2 record (2015-07 to 2026-11, the two AERONET-OC series of the platform merged): 512 valid matchups, 365 with Level 2.0 (GRSprocessor 3.1.1+916399f)
… 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
… snow, 22 ice), Fmask-like test with a whiteness test against very turbid waters, snow and ice excluded from the processed water pixels and set in mask; neg_rrs moved from bit 18 (also the Landsat l1_snow bit) to bit 23; Venise+AAOT match-ups over the whole Sentinel-2 record (512 valid, 365 Level 2.0)
…ion (settings p_slope, default false): false keeps P_slope = 1 (results unchanged), true evaluates the isotropic Cox-Munk probability in Kernel.p_slope (development option, not validated: azimuth convention); Process.execute(p_slope=...), Kernel(use_p_slope=...), product attribute p_slope ('off' or 'cox_munk_iso'); tests, methods documentation and CHANGELOG
…e slope probability of the sunglint normalisation (settings p_slope, Process.execute(p_slope=...)), false by default (P_slope = 1, results unchanged), true for development (formula not validated); product attribute p_slope
…s.execute), the wind is not retrieved from the sunglint (rugosity_est_chunk kept for development, not called)
…(CamsProduct.load selects the date and the longitudes before stacking the forecast times, which read the whole latitude band around the globe; grs.cams._select_longitudes, also across the Greenwich meridian): same values, ~2x faster from a hard disk (5.3 GB monthly file: 239 -> 139 s); validation: CAMS files of the site cut once out of the global files (make_cams_site.py) and used by the matchup notebooks (CAMS_SITE_DIR): same L2A, AAOT subset 138 -> 36 s with the LUT on the SSD; tests and CHANGELOG
…bset.py --batch, BATCH = 20 images per process in the matchup notebooks: imports once per batch, memory released between the batches, images left by a killed worker run one per process): same extractions, ~24 -> ~14 s per AAOT subset
…ce, default 'auto': CUDA when torch finds a GPU, else CPU; 'cpu', 'cuda'), CUDA failure (e.g. out of GPU memory) run on the CPU with a warning; same products (S2 tile 32TQR at 60 m, bit-identical Rrs, AOT, mask, flags), cloud screening 78-101 s -> 27-36 s and execute 142-162 s -> 75-78 s on a busy workstation; product attribute ocm_device; tests and CHANGELOG
…s under test (own copies of _netcdf_engine and _select_longitudes when grs.cams has not them)
…MS of the new ADS layout read for the area of the image only (date and longitudes selected before the stacking of the forecast times, ~2x faster from a hard disk), OmniCloudMask on the GPU when there is one (processor: ocm_device, default 'auto', CPU fallback; S2 tile at 60 m: execute 142-162 s -> 75-78 s); validation: CAMS files of the site cut once out of the global files (make_cams_site.py) and batched worker processes for the matchup subsets (AAOT subset 138 -> ~14 s with the LUT on the SSD)
…: the int16 dtype of the packed NetCDF3 monthly files was kept without its scale_factor/add_offset (wrong pressures, NaN L2A, images taken as without water); written file checked against the global file
…s written decoded: corrupt site files from the packed NetCDF3 monthly files)
…T regenerated by make_s2_matchup_nb.py (CAMS files of the site, batched worker processes), not executed (results in the caches /data/grs/validation/aeronet_oc/<site>/<version>)
…e_s2_matchup_nb.py (CAMS files of the site, batched workers)
…ar irradiance of the L1C metadata (unused: GRS works on the L1C TOA reflectance and needs no solar spectrum) and the test of prod.U that no longer matched the code; CHANGELOG
…ation instead of the v3.x branch, which does not exist in the CNES repository
…y tag), duplicate of pypi.yml (trusted publishing on the v* tags); README CI section and CHANGELOG
…RSprocessor (branch develop) instead of Tristanovsk/grs (master)
|
Notebooks changed:
Review visual diffs and comment on any notebook cell. All comments sync back to this PR. Powered by ReviewNB |
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.
New version of GRSProcessor