Skip to main content

No project description provided

Project description

🎩 🪄 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 :

  • either 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";
  • 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 DDGS 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

Project details


Download files

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

Source Distribution

pixcdust-0.1.2.tar.gz (4.7 MB view details)

Uploaded Source

Built Distribution

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

pixcdust-0.1.2-py3-none-any.whl (4.7 MB view details)

Uploaded Python 3

File details

Details for the file pixcdust-0.1.2.tar.gz.

File metadata

  • Download URL: pixcdust-0.1.2.tar.gz
  • Upload date:
  • Size: 4.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-131-generic

File hashes

Hashes for pixcdust-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d868d97e0557af16fa4aa700e81bac3062e92814d9946455b68e652b0bb3dc91
MD5 9574c6cac773ff89e3d4d6bbb675c3c9
BLAKE2b-256 75e3d5ea8f4d3c256e7a715a3ce7247cfd29f3283e68b6f683903569888341e3

See more details on using hashes here.

File details

Details for the file pixcdust-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pixcdust-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-131-generic

File hashes

Hashes for pixcdust-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 272712f408a2c26ee35d69013a3a25b865c28bee8ac45eab861946484b0ac176
MD5 b418b4be80025c9faa57650a9391b0bd
BLAKE2b-256 f0a01b4abcd3d66e4cfd0beca6e43e4977352810bbd201cef60aa32a4f7d73bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page