catalogs.fetch_jwst_programs
catalogs.fetch_jwst_programs(programs, apt_command=None, output_path=None)Fetch APT and status for requested programs. APT files will be converted to XML using apt_command.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| programs | The program PID numbers to fetch. | required | |
| apt_command | APT’s command executable. If None, do not convert .aptx files to .xml | None |
|
| output_path | Output folder location. | None |
Examples
>>> import gen_tso.catalogs as cat
>>> from gen_tso.utils import KNOWN_PROGRAMS
>>>
>>> # Fetch all known TSO programs
>>> apt_command = '/Applications/APT\\ 2025.1/bin/apt'
>>> programs = KNOWN_PROGRAMS
>>> cat.fetch_jwst_programs(programs, apt_command)
>>>
>>> # Fetch a specific TSO program
>>> programs = 1366
>>> cat.fetch_jwst_programs(programs, apt_command)