Skip to main content

Introduction

PyMOC is a module for manipulating Multi-Order Coverage (MOC) maps. It includes support for reading and writing the three encodings mentioned in the IVOA recommendation: FITS, JSON and ASCII.

PyMOC also includes a utility program pymoctool to allow MOC files to be manipulated from the command line.

Installation

The module can be installed using the setup.py script:

python setup.py install

Unit Tests

Prior to installation, the unit tests can be run using:

PYTHONPATH=lib python3 -m unittest

or:

PYTHONPATH=lib python2 -m unittest discover

The test-extra directory contains additional tests which may take longer to perform. You can exclude these by specifying just the plain test directory, for example with:

PYTHONPATH=lib python -m unittest discover -s test

The routines included in the doctests should also be covered by the unit tests. However to ensure the documentation is correct, they can be checked with:

sphinx-build -b doctest doc doc/_build/doctest

Requirements

For reading and writing data in FITS format, the astropy library is required.

Healpy is needed for some of the utility functions such as plot_moc and catalog_to_moc.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Metadata

Release files for pymoc 0.5.2

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

Source distribution (sdist)

Source distribution for pymoc 0.5.2
File Size Uploaded
pymoc-0.5.2.tar.gz 33.7 kB Details

Release files / pymoc-0.5.2.tar.gz

Download URL pymoc-0.5.2.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ce0fbda3cadfbd0899a9aaf7cfaecdcf59438ca8db9349786a1f133d1bc7e632
BLAKE2b-256 checksum
How to use checksums
2e20558e0b0e919a62651ea41563466612610c0dd8d0a31e8e84a6664e361b95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.9.1 pkginfo/1.4.1 requests/2.12.4 setuptools/36.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.9

Release history Release notifications | RSS feed

This release

0.5.2 This release

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

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