Metadata-Version: 2.5
Name: unifiedwvalticolocs
Version: 2026.10.6.post1
Summary: lib python to generate colocs S1 WV with CMEMS or CCI seatstate altimeters
Project-URL: repository, https://github.com/umr-lops/unifiedwvalticolocs
Project-URL: homepage, https://github.com/umr-lops/unifiedwvalticolocs
Author-email: umr-lops <antoine.grouazel@ifremer.fr>
License: MIT
License-File: LICENSE
Keywords: CMEMS,Level-2,SWH,WV,altimeters,colocation,ocean,sentinel1
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.11
Requires-Dist: dask
Requires-Dist: h5netcdf
Requires-Dist: h5py
Requires-Dist: pandas
Requires-Dist: pyyaml
Requires-Dist: scipy
Requires-Dist: tqdm
Requires-Dist: xarray
Provides-Extra: dev
Requires-Dist: bandit; extra == 'dev'
Requires-Dist: black; extra == 'dev'
Requires-Dist: cartopy; extra == 'dev'
Requires-Dist: coverage; extra == 'dev'
Requires-Dist: coverage-badge; extra == 'dev'
Requires-Dist: darglint; extra == 'dev'
Requires-Dist: flake8; extra == 'dev'
Requires-Dist: isort[colors]; extra == 'dev'
Requires-Dist: matplotlib; extra == 'dev'
Requires-Dist: mypy; extra == 'dev'
Requires-Dist: mypy-extensions; extra == 'dev'
Requires-Dist: pre-commit; extra == 'dev'
Requires-Dist: pydocstyle; extra == 'dev'
Requires-Dist: pylint; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: pytest-html; extra == 'dev'
Requires-Dist: pyupgrade; extra == 'dev'
Requires-Dist: safety; extra == 'dev'
Requires-Dist: shapely; extra == 'dev'
Provides-Extra: docs
Requires-Dist: cartopy; extra == 'docs'
Requires-Dist: matplotlib; extra == 'docs'
Requires-Dist: shapely; extra == 'docs'
Requires-Dist: sphinx; extra == 'docs'
Requires-Dist: sphinx-rtd-theme; extra == 'docs'
Provides-Extra: viz
Requires-Dist: cartopy; extra == 'viz'
Requires-Dist: matplotlib; extra == 'viz'
Requires-Dist: shapely; extra == 'viz'
Description-Content-Type: text/markdown

# unifiedwvalticolocs

<div align="center">

[![Build status](https://github.com/umr-lops/unifiedwvalticolocs/workflows/build/badge.svg?branch=main&event=push)](https://github.com/umr-lops/unifiedwvalticolocs/actions?query=workflow%3Abuild)
[![Python Version](https://img.shields.io/pypi/pyversions/unifiedwvalticolocs.svg)](https://pypi.org/project/unifiedwvalticolocs/)
[![Dependencies Status](https://img.shields.io/badge/dependencies-up%20to%20date-brightgreen.svg)](https://github.com/umr-lops/unifiedwvalticolocs/pulls?utf8=%E2%9C%93&q=is%3Apr%20author%3Aapp%2Fdependabot)

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Security: bandit](https://img.shields.io/badge/security-bandit-green.svg)](https://github.com/PyCQA/bandit)
[![Pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/.pre-commit-config.yaml)
[![Semantic Versions](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--versions-e10079.svg)](https://github.com/umr-lops/unifiedwvalticolocs/releases)
[![License](https://img.shields.io/github/license/umr-lops/unifiedwvalticolocs)](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/LICENSE)
![Coverage Report](assets/images/coverage.svg)

lib python to generate colocs S1 WV with CMEMS or CCI seatstate altimeters

</div>

## Very first steps

### Initialize your code

1. Initialize `git` inside your repo:

```bash
cd unifiedwvalticolocs && git init
```

2. Create a virtual environment and install the project in editable mode with its dev dependencies:

```bash
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
```

(any Python 3.11+ environment works — `venv`, `conda`/`micromamba`, or `uv venv`)

3. Install `pre-commit` hooks:

```bash
pre-commit install
```

4. Run the codestyle:

```bash
pre-commit run --all-files
```

5. Upload initial code to GitHub:

```bash
git add .
git commit -m ":tada: Initial commit"
git branch -M main
git remote add origin https://github.com/umr-lops/unifiedwvalticolocs.git
git push -u origin main
```

### Set up bots

- Set up [Dependabot](https://docs.github.com/en/github/administering-a-repository/enabling-and-disabling-version-updates#enabling-github-dependabot-version-updates) to ensure you have the latest dependencies.
- Set up [Stale bot](https://github.com/apps/stale) for automatic issue closing.

### Packaging: Hatchling

The project is packaged with [`Hatchling`](https://hatch.pypa.io/latest/build/) as the build backend, with [`hatch-vcs`](https://github.com/ofek/hatch-vcs) deriving the package version straight from git tags — there's no version to bump by hand in `pyproject.toml`.

<details>
<summary>Details about the build backend</summary>
<p>

Everything project- and dependency-related lives in [`pyproject.toml`](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/pyproject.toml) under the standard `[project]` table (PEP 621) — no separate `setup.cfg` or lockfile-driven workflow. Useful commands:

- `pip install -e ".[dev]"` — editable install with dev tools
- `pytest` — run tests
- `python -m build` — build sdist + wheel
- `twine upload dist/*` — publish to PyPI

If you use [`uv`](https://docs.astral.sh/uv/) instead of plain `pip`, the equivalents are `uv pip install -e ".[dev]"` and `uv build`.

</p>
</details>

### Building and releasing your package

Building a new version of the application contains steps:

- Tag the commit with the new version, e.g. `git tag 2026.5.1` (hatch-vcs reads this to set the package version — no file to edit). Follow [Semantic Versions](https://semver.org/) for the tag name.
- Push the tag to `GitHub`: `git push origin 2026.5.1`.
- Create a `GitHub release` from that tag.
- Build and publish: `python -m build && twine upload dist/*` (or `uv build && uv publish`).

## 🎯 What's next

Well, that's up to you 💪🏻. I can only recommend the packages and articles that helped me.

- [`Typer`](https://github.com/tiangolo/typer) is great for creating CLI applications.
- [`Rich`](https://github.com/willmcgugan/rich) makes it easy to add beautiful formatting in the terminal.
- [`Pydantic`](https://github.com/samuelcolvin/pydantic/) – data validation and settings management using Python type hinting.
- [`Loguru`](https://github.com/Delgan/loguru) makes logging (stupidly) simple.
- [`tqdm`](https://github.com/tqdm/tqdm) – fast, extensible progress bar for Python and CLI.
- [`IceCream`](https://github.com/gruns/icecream) is a little library for sweet and creamy debugging.
- [`orjson`](https://github.com/ijl/orjson) – ultra fast JSON parsing library.
- [`Returns`](https://github.com/dry-python/returns) makes you function's output meaningful, typed, and safe!
- [`Hydra`](https://github.com/facebookresearch/hydra) is a framework for elegantly configuring complex applications.
- [`FastAPI`](https://github.com/tiangolo/fastapi) is a type-driven asynchronous web framework.

Articles:

- [Open Source Guides](https://opensource.guide/).
- [A handy guide to financial support for open source](https://github.com/nayafia/lemonade-stand)
- [GitHub Actions Documentation](https://help.github.com/en/actions).
- Maybe you would like to add [gitmoji](https://gitmoji.carloscuesta.me/) to commit names. This is really funny. 😄

## 🚀 Features

### Development features

- Supports `Python 3.11` and higher.
- [`Hatchling`](https://hatch.pypa.io/latest/build/) as the build backend, with [`hatch-vcs`](https://github.com/ofek/hatch-vcs) for git-tag-based versioning. See configuration in [`pyproject.toml`](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/pyproject.toml).
- Automatic codestyle with [`black`](https://github.com/psf/black), [`isort`](https://github.com/timothycrosley/isort) and [`pyupgrade`](https://github.com/asottile/pyupgrade).
- Ready-to-use [`pre-commit`](https://pre-commit.com/) hooks with code-formatting.
- Type checks with [`mypy`](https://mypy.readthedocs.io); docstring checks with [`darglint`](https://github.com/terrencepreilly/darglint); security checks with [`safety`](https://github.com/pyupio/safety) and [`bandit`](https://github.com/PyCQA/bandit)
- Testing with [`pytest`](https://docs.pytest.org/en/latest/).
 - Ready-to-use [`.editorconfig`](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/.editorconfig) and [`.gitignore`](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/.gitignore). You don't have to worry about those things.

### Deployment features

- `GitHub` integration: issue and pr templates.
- `Github Actions` with predefined [build workflow](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/.github/workflows/build.yml) as the default CI/CD.
 - Everything is already set up for security checks, codestyle checks, code formatting, testing, linting, etc with [`Makefile`](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/Makefile#L89). More details in [makefile-usage](#makefile-usage).
 - Apptainer image definition in [`apptainer.def`](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/apptainer.def) for HPC runs.
- Always up-to-date dependencies with [`@dependabot`](https://dependabot.com/). You will only [enable it](https://docs.github.com/en/github/administering-a-repository/enabling-and-disabling-version-updates#enabling-github-dependabot-version-updates).
- Automatic drafts of new releases with [`Release Drafter`](https://github.com/marketplace/actions/release-drafter). You may see the list of labels in [`release-drafter.yml`](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/.github/release-drafter.yml). Works perfectly with [Semantic Versions](https://semver.org/) specification.

### Open source community features

- Ready-to-use [Pull Requests templates](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/.github/PULL_REQUEST_TEMPLATE.md) and several [Issue templates](https://github.com/umr-lops/unifiedwvalticolocs/tree/main/.github/ISSUE_TEMPLATE).
- Files such as: `LICENSE`, `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, and `SECURITY.md` are generated automatically.
- [`Stale bot`](https://github.com/apps/stale) that closes abandoned issues after a period of inactivity. (You will only [need to setup free plan](https://github.com/marketplace/stale)). Configuration is [here](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/.github/.stale.yml).
- [Semantic Versions](https://semver.org/) specification with [`Release Drafter`](https://github.com/marketplace/actions/release-drafter).

## Installation

```bash
pip install -U unifiedwvalticolocs
```

or with [`uv`](https://docs.astral.sh/uv/):

```bash
uv pip install -U unifiedwvalticolocs
```

For development (editable install with dev tools):

```bash
pip install -e ".[dev]"
```


### Makefile usage

[`Makefile`](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/Makefile) contains a lot of functions for faster development.

<details>
<summary>1. Install all dependencies and pre-commit hooks</summary>
<p>

Install requirements:

```bash
make install
```

Pre-commit hooks could be installed after `git init` via

```bash
make pre-commit-install
```

</p>
</details>

<details>
<summary>2. Codestyle</summary>
<p>

Automatic formatting uses `pyupgrade`, `isort` and `black`.

```bash
make codestyle

# or use synonym
make formatting
```

Codestyle checks only, without rewriting files:

```bash
make check-codestyle
```

> Note: `check-codestyle` uses `isort`, `black` and `darglint` library

Update all dev libraries to the latest version using one command

```bash
make update-dev-deps
```

</p>
</details>

<details>
<summary>3. Code security</summary>
<p>

```bash
make check-safety
```

This command identifies security issues with `Safety` and `Bandit`.

</p>
</details>

<details>
<summary>4. Type checks</summary>
<p>

Run `mypy` static type checker

```bash
make mypy
```

</p>
</details>

<details>
<summary>5. Tests with coverage badges</summary>
<p>

Run `pytest`

```bash
make test
```

</p>
</details>

<details>
<summary>6. All linters</summary>
<p>

Of course there is a command to ~~rule~~ run all linters in one:

```bash
make lint
```

the same as:

```bash
make test && make check-codestyle && make mypy && make check-safety
```

</p>
</details>

<details>
<summary>7. Cleanup</summary>
<p>
Delete pycache files

```bash
make pycache-remove
```

Remove package build

```bash
make build-remove
```

Delete .DS_STORE files

```bash
make dsstore-remove
```

Remove .mypycache

```bash
make mypycache-remove
```

Or to remove all above run:

```bash
make cleanup
```

</p>
</details>

## 📈 Releases

You can see the list of available releases on the [GitHub Releases](https://github.com/umr-lops/unifiedwvalticolocs/releases) page.

We follow [Semantic Versions](https://semver.org/) specification. Versions are tagged in git and read automatically at build time by `hatch-vcs` — there is no version field to update by hand.

We use [`Release Drafter`](https://github.com/marketplace/actions/release-drafter). As pull requests are merged, a draft release is kept up-to-date listing the changes, ready to publish when you're ready. With the categories option, you can categorize pull requests in release notes using labels.

### List of labels and corresponding titles

|               **Label**               |  **Title in Releases**  |
| :-----------------------------------: | :---------------------: |
|       `enhancement`, `feature`        |       🚀 Features       |
| `bug`, `refactoring`, `bugfix`, `fix` | 🔧 Fixes & Refactoring  |
|       `build`, `ci`, `testing`        | 📦 Build System & CI/CD |
|              `breaking`               |   💥 Breaking Changes   |
|            `documentation`            |    📝 Documentation     |
|            `dependencies`             | ⬆️ Dependencies updates |

You can update it in [`release-drafter.yml`](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/.github/release-drafter.yml).

GitHub creates the `bug`, `enhancement`, and `documentation` labels for you. Dependabot creates the `dependencies` label. Create the remaining labels on the Issues tab of your GitHub repository, when you need them.

## 🛡 License

[![License](https://img.shields.io/github/license/umr-lops/unifiedwvalticolocs)](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/LICENSE)

This project is licensed under the terms of the `MIT` license. See [LICENSE](https://github.com/umr-lops/unifiedwvalticolocs/blob/main/LICENSE) for more details.

## 📃 Citation

```bibtex
@misc{unifiedwvalticolocs,
  author = {umr-lops},
  title = {lib python to generate colocs S1 WV with CMEMS or CCI seatstate altimeters},
  year = {2026},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/umr-lops/unifiedwvalticolocs}}
}
```

## Credits [![🚀 Your next Python package needs a bleeding-edge project structure.](https://img.shields.io/badge/python--package--template-%F0%9F%9A%80-brightgreen)](https://github.com/TezRomacH/python-package-template)

This project was generated with [`python-package-template`](https://github.com/TezRomacH/python-package-template)
