# 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') `
Metadata
Release files for ogip 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ogip-0.2.1.tar.gz | 2.9 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ogip-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 2.9 MB
Release files / ogip-0.2.1.tar.gz
| Download URL | ogip-0.2.1.tar.gz |
|---|---|
| Size | 2.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d052911d27c676410eb58aeb1110bc8e35c8b505df5f27f574a2194ae242dcfd
|
|
BLAKE2b-256 checksum How to use checksums |
16ce01c8356184e0e9232dced8496162c91d3779fa1b940735ca201be8af9b9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / ogip-0.2.1-py2.py3-none-any.whl
| Download URL | ogip-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
cb7b85fb75888b472d80936d172fd193f831283ecf5bedfe11966eb733fb14af
|
|
BLAKE2b-256 checksum How to use checksums |
a5095f4f552271493f27c6fc2340fa894294499e434dbada7ed2e2267b2fa625
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for ogip 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.