https://github.com/mperrin/jwxml
Misc XML support helper code related to some JWST config files.
https://github.com/mperrin/jwxml
Last synced: about 1 year ago
JSON representation
Misc XML support helper code related to some JWST config files.
- Host: GitHub
- URL: https://github.com/mperrin/jwxml
- Owner: mperrin
- License: other
- Created: 2016-02-04T19:54:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-05T15:54:47.000Z (over 5 years ago)
- Last Synced: 2025-04-25T05:38:51.436Z (about 1 year ago)
- Language: Jupyter Notebook
- Size: 886 KB
- Stars: 0
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
jwxml
=====
**DEPRECATED: This package is obsolete. See PYSIAF (https://pysiaf.readthedocs.io/) instead for XML SIAF parsing code, and WebbPSF (https://webbpsf.readthedocs.io/) for JWST mirror file XML parsing code.**
**jwxml is no longer actively developed and its use should be phased out.**
*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)