CAOM-2.3 utils
Project description
caom2utils
=========
.. image:: https://img.shields.io/pypi/v/caom2utils.svg
:target: https://pypi.python.org/pypi/caom2utils
Utilities to facililate working with the CAOM2 model.
Observation Validation
---------------------
Validates a CAOM2 element (Observation, Plane, Artifact, Part or Chunk) with respect to the attributes of the element and possibly all its sub-elements. Example of validations: attribute values, spherical geometry of planes, WCS of chuncks, etc.
.. code:: python
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import sys
from caom2 import SimpleObservation
import caom2utils
obs = SimpleObservation('collection', 'observationID')
# change and update obs
try:
caom2utils.validate(obs)
except Exception:
print('My exception is not valid')
=========
.. image:: https://img.shields.io/pypi/v/caom2utils.svg
:target: https://pypi.python.org/pypi/caom2utils
Utilities to facililate working with the CAOM2 model.
Observation Validation
---------------------
Validates a CAOM2 element (Observation, Plane, Artifact, Part or Chunk) with respect to the attributes of the element and possibly all its sub-elements. Example of validations: attribute values, spherical geometry of planes, WCS of chuncks, etc.
.. code:: python
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import sys
from caom2 import SimpleObservation
import caom2utils
obs = SimpleObservation('collection', 'observationID')
# change and update obs
try:
caom2utils.validate(obs)
except Exception:
print('My exception is not valid')
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
caom2utils-1.2.tar.gz
(110.5 kB
view hashes)