Skip to main content

DKIST fits data validator

Project description

A pythonic interface containing a validator and a generator of FITS headers compliant with SPEC-0122 for DKIST data header validation testing at the Data Center.

Features

  • Use voluptuous schemas to validate a given input header to the standard SPEC-0122 header schema

  • 3 keyword validations: type validation, required-ness validation, and value validation

  • Returns a dictionary of ingest failure messages

Installation

pip install fits-validator

Examples

from validator import FitsValidator

val = FitsValidator()

val.validate('dkist_rosa0181200000_observation.fits')
#ValueError: Errors during Ingest Validation: {'PAC__007': 'expected str', 'ID___003': 'required key not provided', 'NAXIS3': 'required key not provided'}

This project is Copyright (c) AURA/NSO.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fits-validator-0.0.6.tar.gz (8.5 MB view details)

Uploaded Source

File details

Details for the file fits-validator-0.0.6.tar.gz.

File metadata

  • Download URL: fits-validator-0.0.6.tar.gz
  • Upload date:
  • Size: 8.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for fits-validator-0.0.6.tar.gz
Algorithm Hash digest
SHA256 edfe9f39f3c819e689587d504e2aa43ac88b8d8004d9498b6d072528e533336f
MD5 b39cfb065142d2b231ed89ac2b27a831
BLAKE2b-256 2f4a9539a7118839a29fc25b73d575e7cbe341945404f4b508c8421018606587

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page