Skip to main content

DKIST fits data validator

Project description

An interface containing a validator and a generator of FITS header schemas with schema implementations for DKIST specs:

  • SPEC-0122 : Data received from the summit

  • SPEC-214 : Data published by the Data Center (incomplete)

Features

  • Uses voluptuous schemas to validate a given input header

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

  • Failure exceptions include a dictionary of validation failure causes

Installation

pip install fits-validator

Examples

from fits_validator import spec122_validator, Spec122ValidationException

try:
    spec122_validator('dkist_rosa0181200000_observation.fits')
except Spec122ValidationException as e:
    print(e)

#Errors during validation: errors={'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.1.1rc1.tar.gz (8.5 MB view details)

Uploaded Source

File details

Details for the file fits-validator-0.1.1rc1.tar.gz.

File metadata

  • Download URL: fits-validator-0.1.1rc1.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.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for fits-validator-0.1.1rc1.tar.gz
Algorithm Hash digest
SHA256 eac26de9227c6dcaf7145af127acd61e5cf68bad7f071b36c75983290e07150e
MD5 2e27439ac6b36d88d06899401ff2f04c
BLAKE2b-256 ef8be45d1a4721e3dd3ba7d77b169c9735f71a8e980f3620f7c4d4f6e6cceb5b

See more details on using hashes here.

Supported by

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