Skip to main content

fits_schema Build Status codecov PyPI version

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)

Source distribution for fits-schema 0.5.6
File Size Uploaded
fits_schema-0.5.6.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fits-schema 0.5.6
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.5.6 This release

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page