ogip
Project description
# Python library to read, write, and validate “OGIP” files
aims to support OGIP formats: * [OGIP/92-007 (The OGIP Spectral File Format)](https://heasarc.gsfc.nasa.gov/docs/heasarc/ofwg/docs/spectra/ogip_92_007/node5.html) * [OGIP Calibration Memo CAL/GEN/92-002 (The Calibration Requirements for Spectral Analysis, Definition of RMF and ARF file formats)](https://heasarc.gsfc.nasa.gov/docs/heasarc/caldb/docs/memos/cal_gen_92_002/cal_gen_92_002.html) * [OGIP Memo OGIP/93-003 (The Proposed Timing FITS File Format for High Energy Astrophysics Data)](https://heasarc.gsfc.nasa.gov/docs/heasarc/ofwg/docs/rates/ogip_93_003/ogip_93_003.html).
does not aim to implement the strictest form of the standard, instead trying to understand the content from the least information provided, following [Postel’s](https://en.wikipedia.org/wiki/Robustness_principle) [Law](https://tools.ietf.org/html/rfc1122) (which has proven to be successful in TCP).
well-defined, versioned, and provenance-committed process
it just works, always while it is also always possible to recover what exactly was done and why.
relies only on [astropy](https://www.astropy.org/)
Existing alternatives:
[heasoft](https://heasarc.gsfc.nasa.gov/lheasoft/) contains pyxpec and heasp modules, which read ogip files.
[sherpa](https://cxc.cfa.harvard.edu/sherpa/) and [3ml](https://github.com/threeML/threeML/) can read and write ogip files
The alertnatives share common disadvantage: they are complex and not easily portable packages. Also, they implement different variations of the standards, and we have a different aim here (see above).
## Disadvantages:
only python, hence slow
## Example
`python # opens a file, detects format, writes ogip.core.open_something("file.fits").to_fits('output_file.fits') `
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
Built Distribution
File details
Details for the file ogip-0.2.1.tar.gz
.
File metadata
- Download URL: ogip-0.2.1.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d052911d27c676410eb58aeb1110bc8e35c8b505df5f27f574a2194ae242dcfd |
|
MD5 | b213dcf9b26478ba5c52fb1c74d886f1 |
|
BLAKE2b-256 | 16ce01c8356184e0e9232dced8496162c91d3779fa1b940735ca201be8af9b9e |
File details
Details for the file ogip-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: ogip-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb7b85fb75888b472d80936d172fd193f831283ecf5bedfe11966eb733fb14af |
|
MD5 | 443128ebeaf944e06fbeccb02eb9296e |
|
BLAKE2b-256 | a5095f4f552271493f27c6fc2340fa894294499e434dbada7ed2e2267b2fa625 |