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
Built Distribution
Close
Hashes for fits_schema-0.2.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66267e5f883b7705a53705ec48e3f5331a6961626d8610b66fb19631626cdc18 |
|
MD5 | c83fe8ddd90e21540d18125aa664ccc5 |
|
BLAKE2b-256 | 5003d25d80f1f97405ebc0df4a3a6694fbfb999ddd0d1e184192cb25d49f5717 |