MOCPy is a Python library allowing easy creation and manipulation of MOCs (Multi-Order Coverage maps).
MOC is an IVOA standard enabling description of arbitrary sky, time, (or frequency) coverages.
Space Time Frequency Space ✅ ✅ ✅ Time ✅ ✅ ❌ Frequency ✅ ❌ ✅There is support for one dimensional MOCs:
But also these combinations:
Rendered with MOCpy!
For a command line tool, see the moc-cli.
For more information about MOCPy's Rust core, see the moc crate
We strongly recommend to work in an environnement
pip install mocpy
conda install -c conda-forge mocpy
To install MOCPy
from this repository, make sure you have Python (https://www.python.org/downloads/) and Rust (https://www.rust-lang.org/tools/install) on your machine. Then, run
pip install git+https://github.com/cds-astro/mocpy.git
The example notebooks require additional dependencies. They can be installed with
pip install mocpy[notebooks]
Contributions are very welcome. To build and test the library, clone this repository, make sure that you've got Rust on your machine (https://www.rust-lang.org/tools/install) and do:
pip install pre-commit pre-commit install pip install maturin maturin develop --release
And the library is ready to be edited. After a change on the Rust side, you'll have to do maturin develop --release
again. If you only edit the python side, then a pip install .
at the root of the repository will suffice.
We use pre-commit to keep consistent style conventions between all of us. This means that your commits will not pass if they require modifications. If this happens, do the required changes, git add
the files again and attempt to commit as usual.
To run the tests, do:
pip install .[dev] python -m pytest
Wheels that run in pyodide can be downloaded from each github's release for the module.
Other python packages for MOCsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4