This release is a pre-release and may not be stable for production use.
GRSl2bgen
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
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>
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file grsl2bgen-0.1.0.dev1.tar.gz.
File metadata
- Download URL: grsl2bgen-0.1.0.dev1.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a9d7cc82214f776988752e7e76e46d6a0e946efe070731b75a8d57cd017a923
|
|
| MD5 |
9fcbd26d0fd8e040b000e3c4692e1506
|
|
| BLAKE2b-256 |
b9433273dfbe29c14f35b1dc61b8ff2e04165fc82fa6397d033eb1063bd5ec5f
|
File details
Details for the file grsl2bgen-0.1.0.dev1-py3-none-any.whl.
File metadata
- Download URL: grsl2bgen-0.1.0.dev1-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6be63c955afa732194e2199f4f5aef844bc79b658bd6038489f98372c8c52cef
|
|
| MD5 |
03fcafa01e6a896d960c80195ed3a97d
|
|
| BLAKE2b-256 |
e14384b0420b7ee959dafcf0c1d0313cc0f12d6babd06715046e63679efc57d7
|