No project description provided
Project description
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'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fits_schema-0.5.2.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for fits_schema-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a76a256751b7f9aa0f7756208dfdb07b8435cdbf87c33fcf71b2d7ee5f029ff |
|
MD5 | c464c88ac8ad61e6b3a985010ca2efac |
|
BLAKE2b-256 | c91adb828950eb699984c7fab5ffe1fa61b6d4e47e6b395287fbd11c615f0b3c |