parser

Module to inspect JWST visit files.

Authors

Johannes Sahlmann Marshall Perrin

class visitparser.parser.Activity(cmdstring, *args, **kwargs)[source]

Capture information related to activity.

describe()[source]
class visitparser.parser.Aux(cmdstring, verbose=False)[source]

Capture statement identified by AUX keyword.

class visitparser.parser.Dither(cmdstring, verbose=False)[source]

Capture statement identified by DITHER keyword.

class visitparser.parser.Guide(cmdstring, group=None, sequence=None, verbose=False)[source]

Expand Guide statement.

describe()[source]
class visitparser.parser.Momentum(cmdstring, verbose=False)[source]

Capture statement identified by MOMENTUM keyword.

class visitparser.parser.Slew(cmdstring, group=None, sequence=None, verbose=False)[source]

Expand statement identified by SLEW keyword.

class visitparser.parser.SlewOrAct(cmdstring, group=None, sequence=None, verbose=False)[source]

Capture statement identified by SLEW or ACT keyword.

property gsa

Group, sequence, activity

class visitparser.parser.Statement(cmdstring, verbose=False)[source]

Capture visit file statement delimited by a semicolon.

class visitparser.parser.Visit(templates, statements, groups)[source]

Class for JWST visit file information

overview_table(instrument=None)[source]

Return an astropy table with specific information, one row per exposure/activity.

instrumentstr

JWST instrument name, case insensitive

tableastropy.table

Table with additional information extracted from the statements.

class visitparser.parser.VisitDescription(cmdstring, verbose=False)[source]

Capture statement identified by VISIT keyword.

visitparser.parser.crosscheck_wfsc_visit_file(filename)[source]

update Perrin’s function to updated code.

filename

visitparser.parser.iswhitespace(x)
visitparser.parser.parse_visit_file(filename, verbose=False)[source]

Read and parse the visit file line-by-line.

filenamestr

Name fo file to parse

verbosebool

verbosity

visitVisit object

Object containing all information extracted from the file.