Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Installation

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Download the LUT files

click on grsdata to download and save in your desired path (your_GRSDATA_PATH)

Installation with conda environment

conda activate "name of your conda env"

Python >= 3.9 is recommended, example:

conda create python=3.10 -n grs_v2
conda activate grs_v2

Then, install python dependencies:

conda install -c conda-forge eoreader cdsapi netCDF4 docopt xmltodict numba

Set the config.yml file:

path:
  grsdata: your_GRSDATA_PATH

Finally, install grs with:

pip install .

Testing

After installation, you can type:

grs -h

You should see something like:

Executable to process Sentinel-2 L1C images for aquatic environment

Usage:
  grs <input_file> [--cams_file file] [-o <ofile>] [--odir <odir>] [--resolution res] [--scale_aot factor]   [--levname <lev>] [--no_clobber] [--allpixels] [--surfwater file] [--dem_file file] [--snap_compliant]
  grs -h | --help
  grs -v | --version

Options:
  -h --help        Show this screen.
  -v --version     Show version.

  <input_file>     Input file to be processed

  --cams_file file     Absolute path of the CAMS file to be used (mandatory)

  -o ofile         Full (absolute or relative) path to output L2 image.
  --odir odir      Ouput directory [default: ./]
  --levname lev    Level naming used for output product [default: L2Agrs]
  --no_clobber     Do not process <input_file> if <output_file> already exists.
  --resolution=res  spatial resolution of the scene pixels
  --allpixels      force to process all pixels whatever they are masked (cloud, vegetation...) or not
  --surfwater file  Absolute path of the surfwater geotiff file to be used
  --dem_file file  Absolute path of the DEM geotiff file (already subset for the S2 tile)
  --scale_aot factor scaling factor applied to CAMS aod550 raster
                    [default: 1]
  --opac_model name  Force the aerosol model (OPAC) to be 'name'
                    (choice: ['ARCT_rh70', 'COAV_rh70', 'DESE_rh70',
                                'MACL_rh70', 'URBA_rh70'])
  --snap_compliant  Export output to netcdf aligned with "beam" for ESA SNAP software

  Example:
      grs /data/satellite/S2/L1C/S2B_MSIL1C_20220731T103629_N0400_R008_T31TFJ_20220731T124834.SAFE --cams_file /data/satellite/S2/cnes/CAMS/2022-07-31-cams-global-atmospheric-composition-forecasts.nc --resolution 60
  For CNES datalake:
      grs /work/datalake/S2-L1C/31TFJ/2023/06/16/S2B_MSIL1C_20230616T103629_N0509_R008_T31TFJ_20230616T111826.SAFE --cams_file /work/datalake/watcal/ECMWF/CAMS/2023/06/16/2023-06-16-cams-global-atmospheric-composition-forecasts.nc --odir /work/datalake/watcal/test --resolution 20 --dem_file /work/datalake/static_aux/MNT/COP-DEM_GLO-30-DGED_S2_tiles/COP-DEM_GLO-30-DGED_31TFJ.tif

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grsprocessor-2.2.0.dev1.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grsprocessor-2.2.0.dev1-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file grsprocessor-2.2.0.dev1.tar.gz.

File metadata

  • Download URL: grsprocessor-2.2.0.dev1.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for grsprocessor-2.2.0.dev1.tar.gz
Algorithm Hash digest
SHA256 e78b9213bb92ffe387b56790eba4bdd197056627326f0874b5efd2cc6bafa955
MD5 3ec428c1e19f249bd9ef9dc5f5988b96
BLAKE2b-256 e3084493cfb8e54c073194e2e4466f59323a11eaa8c2e1f1df962d3ef82c7b36

See more details on using hashes here.

File details

Details for the file grsprocessor-2.2.0.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for grsprocessor-2.2.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 4111d95bcb19c858c516c56b950e257679256f9d1664148fbc8d7f4401ab6e67
MD5 5a2ce55b030506af77739f7f14c04692
BLAKE2b-256 eccb6fcd830eb904e746509fb912c2f3a0473c393f102c3aba6cd9289667119c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.2.0.dev1 This release

2 files

2.1.6

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page