fits_schema

A python package to define and validate schemata for FITS files.
from fits_schema.binary_table import BinaryTable, Double
from fits_schema.header import HeaderSchema, HeaderCard
import astropy.units as u
from astropy.io import fits
class Events(BinaryTable):
'''A Binary Table of Events'''
energy = Double(unit=u.TeV)
ra = Double(unit=u.deg)
dec = Double(unit=u.deg)
class __header__(HeaderSchema):
EXTNAME = HeaderCard(allowed_values='events')
hdulist = fits.open('events.fits')
Events.validate_hdu(hdulist['events'])
Metadata
Release files for fits-schema 0.5.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fits_schema-0.5.6.tar.gz | 11.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fits_schema-0.5.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.2 kB
Release files / fits_schema-0.5.6.tar.gz
| Download URL | fits_schema-0.5.6.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd614b9718c84d8c02f13d8bef6c6002a03942b96e1db3160ca39f5942b0caf8
|
|
BLAKE2b-256 checksum How to use checksums |
b1c01acd50b25bc57d464bcef321c8a8488d874a80292ac5ae32d7282039b6bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / fits_schema-0.5.6-py3-none-any.whl
| Download URL | fits_schema-0.5.6-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01c9dc4040c935a01807048af9bcf6ad1fe99bf568135554c08e3cf595eab1c5
|
|
BLAKE2b-256 checksum How to use checksums |
96cac1ebc7afe04924f3c21cb2c4d356925f50e9154dbc9d4c25569d1c36f271
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|