Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

spacetelescope/jwst-visit-parser

Repository files navigation

This package is archived and no longer maintained

Python tools for parsing information from JWST visit files

image

Documentation Status

Powered by Astropy Badge

image

Installation

Install from the repository

Example usage

Code:

from visitparser import parser
visitparser.parser.parse_visit_file('V00783001001.vst')

will return something like:

Visit  V00783001001:  1 dithers,  2 groups,  14 observation statements. Uses ['NIRISS Internal Flat']

Example visit files

Since JWST .vst files are marked as not public they cannot be included in this repository. Please download the directory at TBD to your local machine and set the VISIT_PARSER_TEST_DATA environment variable to the location of that folder, e.g. export VISIT_PARSER_TEST_DATA=your/path. This will allow you to run the tests and the examples locally.

Examples of .vst files can also be accessed at https://outerspace.stsci.edu/display/OPGS/Observation+Plan+Generation+System#ObservationPlanGenerationSystem-OPProductsforReview

Some usage examples are included in run_visit_parser.py

Citation

If you find this package useful, please consider citing the Zenodo record using the DOI badge above.

License

This project is Copyright (c) Space Telescope Science Institute and licensed under the terms of the Aura license. This package is based upon the Astropy package template which is licensed under the BSD 3-clause licence. See the licenses folder for more information.