Metadata-Version: 2.0
Name: jwxml
Version: 0.3.0
Summary: Parse and manipulate XML files, mostly JWST optics and wavefront sensing related.
Home-page: https://github.com/mperrin/jwxml
Author: Marshall Perrin, Joseph Long
Author-email: help@stsci.edu
License: BSD
Keywords: jwst xml siaf
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Requires-Dist: matplotlib (>=1.4.3)
Requires-Dist: numpy (>=1.9)
Provides-Extra: dev
Requires-Dist: check-manifest (>=0.34); extra == 'dev'
Requires-Dist: lxml (>=3.6.4); extra == 'dev'
Requires-Dist: pytest (>=3.0.2); extra == 'dev'

jwxml
=====

*Note: This is probably mostly useful internally at STScI.*

Miscellaneous XML support helper code related to some JWST configuration files, mostly optics and wavefront sensing related.

So far this provides support for reading in and interacting with:

  * The so-called SIAF (Science Instrument Aperture Files)
  * Wavefront control SUR (Segment Update Request) files

More functionality may be added ad hoc as needed; no overall long term development master plan is implied.

SIAF
----

Science Instrument Aperture Files contain detailed focal plane and pointing models for the science instruments. They are maintained in the JWST PRD (Project Reference Database). Snapshots taken from the PRD are bundled with jwxml, but care should be taken to ensure one is using the latest files from the PRD directly.

For a file obtained from the PRD:

.. code:: python

    siaf = jwxml.SIAF(filename='/your/path/to/NIRCam_SIAF_2016-01-28.xml')

To use the bundled SIAF:

.. code:: python

    siaf = jwxml.SIAF('NIRCam')

To check which PRD version is in use:

.. code:: python

    print(jwxml.PRD_VERSION)


