Skip to main content
Pre-release

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

GRSl2bgen_icon

GRSl2bgen

Python 3.12 License L2BGEN Docker Pulls

Scientific code to process GRS L2A images

Estimation of water quality parameters from remote sensing reflectance (Rrs)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them

conda install -c conda-forge rasterio xarray dask rioxarray

Installing

First, clone the repository and execute the following command in the local copy:

pip install . 

Some examples:

example files

Example

img_dir=/your_path_for_image_folder
GRSl2bgen $img_dir/ -o $img_dir/L2B/S2B_MSIL2B_20220731T103629_N0400_R008_T31TFJ_20220731T124834.nc

Compile Docker image locally

First, you must get Dockerfile out of obs2co_l2bgen folder to have a structure as displayed below.

head_folder
├GRSl2bgen
└Dockerfile

Note that anything in this folder tree will be added to the Docker build context, so make it light. You might consider removing the notebooks and all useless files and directories from the GRSl2bgen folder to make the resulting image as light as possible (.git, illustration, notebook...).

Once all those requirements are met, you can compile the Docker image using the following command:

docker build -t GRSl2bgen:<version_tag> *path_to_head_folder* -f *path_to_Dockerfile*

When the compilation has ended, you can access the image with the command:

docker images

To run the Docker image in a container on a S2 raster you can use the run_docker.sh script as follows:

./run_docker.sh <image_ID> <L2A_raster_name> <L2A_raster_path> <desired_name_for_output> <desired_path_for_output>

Metadata

Release files for GRSl2bgen 0.1.0.dev1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GRSl2bgen 0.1.0.dev1
File Size Uploaded Provenance Actions
grsl2bgen-0.1.0.dev1.tar.gz 23.5 kB Without provenance Details for grsl2bgen-0.1.0.dev1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for GRSl2bgen 0.1.0.dev1
File Interpreter ABI Platform Actions
grsl2bgen-0.1.0.dev1-py3-none-any.whl Python 3 none any Details for grsl2bgen-0.1.0.dev1-py3-none-any.whl

Total release size: 51.4 kB

Release files / grsl2bgen-0.1.0.dev1.tar.gz

Download URL grsl2bgen-0.1.0.dev1.tar.gz
Size 23.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1a9d7cc82214f776988752e7e76e46d6a0e946efe070731b75a8d57cd017a923
BLAKE2b-256 checksum
How to use checksums
b9433273dfbe29c14f35b1dc61b8ff2e04165fc82fa6397d033eb1063bd5ec5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / grsl2bgen-0.1.0.dev1-py3-none-any.whl

Download URL grsl2bgen-0.1.0.dev1-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6be63c955afa732194e2199f4f5aef844bc79b658bd6038489f98372c8c52cef
BLAKE2b-256 checksum
How to use checksums
e14384b0420b7ee959dafcf0c1d0313cc0f12d6babd06715046e63679efc57d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for GRSl2bgen 0.1.0.dev1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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