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.5.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for fits_schema-0.5.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7677b5367a8ea32591073e786b786d423107a88f93105384d1cfc2ee5f737c55 |
|
MD5 | 5e232aaf8e3feb735600d651a0e27a25 |
|
BLAKE2b-256 | 1e2062043b5e190a0df92926396c9712f94de75edeed70673397b1cd5d14ae7b |