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 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
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_validator-0.0.1rc2.tar.gz
(10.6 kB
view details)
File details
Details for the file fits_validator-0.0.1rc2.tar.gz.
File metadata
- Download URL: fits_validator-0.0.1rc2.tar.gz
- Upload date:
- Size: 10.6 kB
- 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.41.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9560e438cc845702fa635f74a617398af331d90d5eba652d974b674acf8f2ebb
|
|
| MD5 |
80d2bf120b4e37f86e417ead5820e72c
|
|
| BLAKE2b-256 |
9bfb6b911da8b6b889fc31252e9c65bd09ff269be9e7c71509f4f41fb75c21b4
|