Skip to main content

🎩 🪄 A Pinch of PixC Dust 🐇

This python project centralizes librairies to facilitate local studies based on SWOT-HR Level-2 Pixel Cloud products.

🚀 Quick Start

This project is available with pip and conda-forge. You can install it with either

  • pip: pip install pixcdust
  • conda: conda install -c conda-forge pixcdust

🚀 Manual Installation

Start by cloning this package and installing the environment with either

  • pip: pip install -e .
  • poetry: poetry install

📔 Notebooks

Start here to understand what you can do: "There is nothing more frustrating than a good example" (Mark Twain)

⬇️ Downloaders

The downloader classes allow you to directly download SWOT Pixel Cloud files from hydroweb.next (or other sources such as PO.DAAC to be implemented).
For hydroweb.next, it requires you to create an account and an API Key (token) from the platform: https://hydroweb.next.theia-land.fr. Then, carefully store your API-Key :

  • (default backend) in an environment variable export HYDROWEB_API_KEY="PLEASE_CHANGE_ME".
  • (eodag backend) in your eodag configuration file (usually ~/.config/eodag/eodag.yml, automatically generated the first time you use eodag) in auth/credentials/apikey="PLEASE_CHANGE_ME";
  • (eodag backend) or in an environment variable export EODAG__HYDROWEB_NEXT__AUTH__CREDENTIALS__APIKEY="PLEASE_CHANGE_ME".

🪄 Converters

The converter classes allow you to create more easy-to-use databases than the original netcdf4 format. The various databases are designed for local studies, not for huge country-scale databases (though it should work, they will not be efficient).
Zarr (with zcollection), geopackage and shapefile are currently supported.
The converters allow you to limit the databases to areas of interest (provided by polygons) and variables of interest (limitated to the pixel_cloud group mono-dimensional variables).
Users are encouraged to limit the number of variables to what is useful, especially for geopackage format, but also for the planet ;)

👓 Readers :

The reader classes allow you to read the original netcdf4 format or the databases generated by converters.

🧰 Tools

Here are some python script implementing the classes.

🔶 Discrete Global Grid System (experimental)

I enjoy DGGS a lot. It is pretty great if you want to perform on-the-fly "rasterization", partitionning, comparing pixels over time or space, etc.
Currently H3 and HEALPix are implemented.

✅ Tests

You first need to configure the tests and download the tests data with init_tests.py. We recommend setting the following options:

  • INPUT_FOLDER is where the tests data will be downloaded (or are already available).
  • HYDROWEB_AUTH is your hydroweb.next API key. It is required to automatically download the tests data or run the downloaders tests.
python tests/init_tests.py -I INPUT_FOLDER -H HYDROWEB_AUTH

You then can run the converters tests:

pytest

You can also run all the tests including the downloaders tests with:

pytest --dl

Metadata

Release files for pixcdust 0.2.0

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

Source distribution (sdist)

Source distribution for pixcdust 0.2.0
File Size Uploaded
pixcdust-0.2.0.tar.gz 4.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pixcdust 0.2.0
File Interpreter ABI Platform
pixcdust-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 MB

Release files / pixcdust-0.2.0.tar.gz

Download URL pixcdust-0.2.0.tar.gz
Size 4.5 MB
Tags Source
SHA-256 checksum
How to use checksums
a0b3e22cbe072709a9682d45b5cedaf61565d68ce833d4825d012895ee212376
BLAKE2b-256 checksum
How to use checksums
0af592597ef931df3b4c2eef14d8a7f3a3834d7e6b15781b205d8726b95e0992
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.10.14 Linux/4.18.0-553.16.1.el8_10.x86_64

Release files / pixcdust-0.2.0-py3-none-any.whl

Download URL pixcdust-0.2.0-py3-none-any.whl
Size 4.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a1d3581fe05f4bc6b85164dc735442bd883ea12c995f392b6eeede6dba51251c
BLAKE2b-256 checksum
How to use checksums
a3e45d7261eb98f24e6e8d5c399a2e87f766976f29abf212c6ab2b4e225c7e90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.10.14 Linux/4.18.0-553.16.1.el8_10.x86_64

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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