MAST query and download tools for coronagraphic datasets
SpaceKLIP includes some simple query tools for searching available coronagraphic datasets in MAST.
These are intended for, for instance, determining if there are PSF or background observations from other programs that may be useful in reducing a given science dataset.
Finding available PSF reference or background observations
Let’s see what’s available for NIRCam F356W. This returns a table of all observations, including science obs, PSF reference obs, and background obs (for MIRI).
This output is a bit long; We’ll show next how to filter that to particular kinds of data.
[1]:
import spaceKLIP
table = spaceKLIP.mast.query_coron_datasets('NIRCam', 'F356W')
print(f"Found {len(table)} total rows. Here's the first few:")
table[:5]
Found 34 total rows. Here's the first few:
[1]:
visit_id | start time | filter | coronmsk | targname | obslabel | duration | numdthpt | program | title | pi_name |
---|---|---|---|---|---|---|---|---|---|---|
str12 | str16 | str5 | str9 | str22 | str54 | float64 | int64 | int64 | str75 | str20 |
V01386001001 | 2022-07-29 22:01 | F356W | MASKA335R | * phi Cen | NIRCam 335R - REF | 83.426 | 9 | 1386 | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | Hinkley, Sasha |
V01386002001 | 2022-07-30 01:13 | F356W | MASKA335R | HD 116434 | NIRCam 335R - Roll 1 | 617.946 | 1 | 1386 | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | Hinkley, Sasha |
V01386003001 | 2022-07-30 03:16 | F356W | MASKA335R | HD 116434 | NIRCam 335R - Roll 2 | 617.946 | 1 | 1386 | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | Hinkley, Sasha |
V01184015001 | 2022-09-06 00:00 | F356W | MASKA335R | LP 944-20 | LP 944-20 roll 1 | 846.844 | 1 | 1184 | A NIRCam Coronagraphic Imaging Survey of Nearby Young M Dwarfs | Schlieder, Joshua |
V01184016001 | 2022-09-06 01:43 | F356W | MASKA335R | LP 944-20 | LP 944-20 roll 2 | 846.844 | 1 | 1184 | A NIRCam Coronagraphic Imaging Survey of Nearby Young M Dwarfs | Schlieder, Joshua |
The columns in the above provide information on the observation overall (visit number, date and time, instrument settings, etc), the target and observation label, the duration in seconds and number of dither points used, and which APT program these data are from.
Let’s see what PSF references are available in MIRI F1550C.
[2]:
spaceKLIP.mast.query_coron_datasets('MIRI', 'F1550C', kind='REF')
[2]:
visit_id | start time | filter | coronmsk | targname | obslabel | duration | numdthpt | program | title | pi_name |
---|---|---|---|---|---|---|---|---|---|---|
str12 | str16 | str6 | str9 | str23 | str42 | float64 | int64 | int64 | str80 | str21 |
V01045069001 | 2022-06-13 17:35 | F1550C | 4QPM_1550 | HD 92209 | 4QPM - F1550C | 774.406 | 9 | 1045 | MIRI Coronagraphic PSF Characterization, Radial Transmission and 4QPM Transition | Dicken, Daniel |
V01037010001 | 2022-06-18 15:04 | F1550C | 4QPM_1550 | HD 163113 | 4QPM - F1550C | 2299.49 | 9 | 1037 | MIRI Coronagraphic Contrast Ratios | Boccaletti, Anthony |
V01037011001 | 2022-06-18 21:13 | F1550C | 4QPM_1550 | HD 162989 | Ref 1 deg F1550C | 2299.49 | 9 | 1037 | MIRI Coronagraphic Contrast Ratios | Boccaletti, Anthony |
V01386007001 | 2022-07-17 20:48 | F1550C | 4QPM_1550 | * phi Cen | MIRI 1550C - REF | 459.706 | 9 | 1386 | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | Hinkley, Sasha |
V01045088001 | 2022-07-19 10:02 | F1550C | 4QPM_1550 | HD 92209 | 4QPM - F1550C | 2299.49 | 5 | 1045 | MIRI Coronagraphic PSF Characterization, Radial Transmission and 4QPM Transition | Dicken, Daniel |
V01386027001 | 2022-08-02 17:02 | F1550C | 4QPM_1550 | HD 140986 | MIRI F1550C - REF | 1726.894 | 5 | 1386 | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | Hinkley, Sasha |
V01193004001 | 2022-10-21 18:48 | F1550C | 4QPM_1550 | * 19 PsA | FomalhautPSF-1550C | 202.29 | 9 | 1193 | Coronagraphic Imaging of Young Planets and Debris Disk with NIRCam and MIRI | Beichman, Charles A. |
V01194016001 | 2022-11-08 15:17 | F1550C | 4QPM_1550 | HD 218261 | REF 1550C | 239.92 | 9 | 1194 | Characterization of the HR 8799 planetary system and planet search | Beichman, Charles A. |
V01411008001 | 2022-12-13 08:54 | F1550C | 4QPM_1550 | * alf Pic | Alpha Pic - 1550 4QPM PSF | 725.991 | 5 | 1411 | Coronagraphy of the Debris Disk Archetype Beta Pictoris | Stark, Chris |
V01241041001 | 2023-03-10 19:02 | F1550C | 4QPM_1550 | HD 49518 | Ref HR 2562 - F1550C | 357.123 | 5 | 1241 | MIRI Coronagraphic Imaging of exoplanets | Ressler, Michael E. |
V02243006001 | 2023-07-03 14:08 | F1550C | 4QPM_1550 | V* DI Tuc | DITuc F1550C | 2724.443 | 5 | 2243 | A direct detection of the closest Jupiter analog with JWST/MIRI | Matthews, Elisabeth C |
V01413009001 | 2023-07-15 22:40 | F1550C | 4QPM_1550 | HD 190360 | HD 190360 F1550 (PSF star) | 293.848 | 9 | 1413 | MIRI coronagraphy of the Cold Substellar Companion GJ 758 B | Pueyo, Laurent |
V01618007001 | 2023-07-27 04:34 | F1550C | 4QPM_1550 | dr3-5859405804986931200 | offset star for eps Mus. Position A. Obs 2 | 2971.792 | 9 | 1618 | Searching Our Closest Stellar Neighbor for Planets and Zodiacal Emission | Beichman, Charles A. |
V01193024001 | 2023-08-18 21:39 | F1550C | 4QPM_1550 | HD 169305 | VegaPSF-1550C | 206.844 | 9 | 1193 | Coronagraphic Imaging of Young Planets and Debris Disk with NIRCam and MIRI | Beichman, Charles A. |
V01241021001 | 2023-09-19 14:11 | F1550C | 4QPM_1550 | HD 222389 | Ref kappa And - F1550C | 199.653 | 5 | 1241 | MIRI Coronagraphic Imaging of exoplanets | Ressler, Michael E. |
And similarly for background observations:
[3]:
spaceKLIP.mast.query_coron_datasets('MIRI', 'F1550C', kind='BKG')
[3]:
visit_id | start time | filter | coronmsk | targname | obslabel | duration | numdthpt | program | title | pi_name |
---|---|---|---|---|---|---|---|---|---|---|
str12 | str16 | str6 | str9 | str21 | str37 | float64 | int64 | int64 | str91 | str22 |
V01386030001 | 2022-07-18 02:42 | F1550C | 4QPM_1550 | N/A | MIRI 1550C - Target BG | 3609.341 | 1 | 1386 | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | Hinkley, Sasha |
V01386031001 | 2022-07-18 04:53 | F1550C | 4QPM_1550 | N/A | MIRI 1550C - REF BG | 459.706 | 1 | 1386 | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | Hinkley, Sasha |
V01386036001 | 2022-08-02 19:57 | F1550C | 4QPM_1550 | N/A | MIRI F1550C - Target BG | 3741.884 | 1 | 1386 | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | Hinkley, Sasha |
V01386037001 | 2022-08-02 22:29 | F1550C | 4QPM_1550 | N/A | MIRI F1550C - REF BG | 1726.894 | 1 | 1386 | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | Hinkley, Sasha |
V01193005001 | 2022-10-21 19:43 | F1550C | 4QPM_1550 | * 19 PsA | FomalhautPSF-1550C-background | 202.29 | 1 | 1193 | Coronagraphic Imaging of Young Planets and Debris Disk with NIRCam and MIRI | Beichman, Charles A. |
V01193010001 | 2022-10-21 22:42 | F1550C | 4QPM_1550 | FOMALHAUT-F1550C-BACK | Fomalhaut-F1550C-background | 914.379 | 1 | 1193 | Coronagraphic Imaging of Young Planets and Debris Disk with NIRCam and MIRI | Beichman, Charles A. |
V01194011001 | 2022-11-08 10:18 | F1550C | 4QPM_1550 | N/A | 1550C - Target Bkg | 4322.629 | 2 | 1194 | Characterization of the HR 8799 planetary system and planet search | Beichman, Charles A. |
V01194018001 | 2022-11-08 16:18 | F1550C | 4QPM_1550 | N/A | 1550C - REF Bkg | 239.92 | 2 | 1194 | Characterization of the HR 8799 planetary system and planet search | Beichman, Charles A. |
V01406030001 | 2022-11-29 05:12 | F1550C | 4QPM_1550 | HD 161617 | 1550-BGND | 508.122 | 2 | 1406 | Verification of the MIRI Coronagraphic Target Acquisition | Hines, Dean C. |
V01411001001 | 2022-12-13 00:10 | F1550C | 4QPM_1550 | N/A | Beta Pic Background - 1550 4QPM | 1331.183 | 2 | 1411 | Coronagraphy of the Debris Disk Archetype Beta Pictoris | Stark, Chris |
V01411009001 | 2022-12-13 10:17 | F1550C | 4QPM_1550 | N/A | Alpha Pic Background - 1550 4QPM PSF | 725.991 | 2 | 1411 | Coronagraphy of the Debris Disk Archetype Beta Pictoris | Stark, Chris |
V01241033001 | 2023-03-10 15:05 | F1550C | 4QPM_1550 | HR 2562 Background | HR 2562 Bckgr - F1550C | 1199.119 | 2 | 1241 | MIRI Coronagraphic Imaging of exoplanets | Ressler, Michael E. |
V01241044001 | 2023-03-10 20:22 | F1550C | 4QPM_1550 | HD 49518 Background | Ref HR 2562 Bckgr - F1550C | 357.123 | 2 | 1241 | MIRI Coronagraphic Imaging of exoplanets | Ressler, Michael E. |
V01277021001 | 2023-05-16 20:26 | F1550C | 4QPM_1550 | HD 106906 background | HD106906 Bkg 1500C | 960.398 | 2 | 1277 | Coronographic Observations of Young Exoplanets and Spectroscopic Observations of ROSS 458 C | Lagage, Pierre-Olivier |
V02243001001 | 2023-07-03 00:54 | F1550C | 4QPM_1550 | N/A | BG_dituc F1550C | 2724.443 | 2 | 2243 | A direct detection of the closest Jupiter analog with JWST/MIRI | Matthews, Elisabeth C |
V02243002001 | 2023-07-03 03:33 | F1550C | 4QPM_1550 | N/A | BG_epsindi F1550C | 3922.363 | 2 | 2243 | A direct detection of the closest Jupiter analog with JWST/MIRI | Matthews, Elisabeth C |
V01277016001 | 2023-07-04 12:41 | F1550C | 4QPM_1550 | GJ 504 background | GJ504 Bkg 1550C | 239.92 | 2 | 1277 | Coronographic Observations of Young Exoplanets and Spectroscopic Observations of ROSS 458 C | Lagage, Pierre-Olivier |
V01413004001 | 2023-07-15 18:41 | F1550C | 4QPM_1550 | GJ-758-Background | GJ 758 F1550 roll 1 BACKGROUND | 864.046 | 2 | 1413 | MIRI coronagraphy of the Cold Substellar Companion GJ 758 B | Pueyo, Laurent |
V01413010001 | 2023-07-15 23:49 | F1550C | 4QPM_1550 | HD-190360-BACKGROUND | HD 190360 F1550 (PSF star) BACKGROUND | 293.848 | 2 | 1413 | MIRI coronagraphy of the Cold Substellar Companion GJ 758 B | Pueyo, Laurent |
V01618002001 | 2023-07-26 08:51 | F1550C | 4QPM_1550 | N/A | eps Mus Position A BACKGROUND | 2971.792 | 2 | 1618 | Searching Our Closest Stellar Neighbor for Planets and Zodiacal Emission | Beichman, Charles A. |
V01618004001 | 2023-07-26 14:18 | F1550C | 4QPM_1550 | N/A | Alpha Cen A F1550 - BACKGROUND | 9287.36 | 2 | 1618 | Searching Our Closest Stellar Neighbor for Planets and Zodiacal Emission | Beichman, Charles A. |
V01618006001 | 2023-07-26 23:00 | F1550C | 4QPM_1550 | N/A | Alpha Cen A F1550 - BACKGROUND | 9287.36 | 2 | 1618 | Searching Our Closest Stellar Neighbor for Planets and Zodiacal Emission | Beichman, Charles A. |
V01618008001 | 2023-07-27 12:52 | F1550C | 4QPM_1550 | N/A | offset star for eps Mus. BACKGROUND | 2971.792 | 2 | 1618 | Searching Our Closest Stellar Neighbor for Planets and Zodiacal Emission | Beichman, Charles A. |
V01193025001 | 2023-08-18 22:39 | F1550C | 4QPM_1550 | HD 169305 | VegaPSF-1550C-background | 206.844 | 2 | 1193 | Coronagraphic Imaging of Young Planets and Debris Disk with NIRCam and MIRI | Beichman, Charles A. |
V01193030001 | 2023-08-19 02:01 | F1550C | 4QPM_1550 | VEGA-F1550C-BACK | Vega-1550C-background | 915.817 | 2 | 1193 | Coronagraphic Imaging of Young Planets and Debris Disk with NIRCam and MIRI | Beichman, Charles A. |
V01241013001 | 2023-09-19 10:25 | F1550C | 4QPM_1550 | kappa And Background | kappa And Bckgr - F1550C | 899.279 | 2 | 1241 | MIRI Coronagraphic Imaging of exoplanets | Ressler, Michael E. |
V01241024001 | 2023-09-19 15:22 | F1550C | 4QPM_1550 | HD 222389 Background | Ref kappa And Bckgr - F1550C | 199.653 | 2 | 1241 | MIRI Coronagraphic Imaging of exoplanets | Ressler, Michael E. |
Available search keywords
You can also query by program ID number, filter, coronagraph mask name, and for NIRCam also channel name SW/LW.
[4]:
spaceKLIP.mast.query_coron_datasets('NIRCam', program=1386, filt='F444W', kind='SCI')
[4]:
visit_id | start time | filter | coronmsk | targname | obslabel | duration | numdthpt | program | title | pi_name |
---|---|---|---|---|---|---|---|---|---|---|
str12 | str16 | str5 | str9 | str9 | str20 | float64 | int64 | int64 | str70 | str14 |
V01386002001 | 2022-07-30 01:13 | F444W | MASKA335R | HD 116434 | NIRCam 335R - Roll 1 | 617.946 | 1 | 1386 | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | Hinkley, Sasha |
V01386003001 | 2022-07-30 03:16 | F444W | MASKA335R | HD 116434 | NIRCam 335R - Roll 2 | 617.946 | 1 | 1386 | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | Hinkley, Sasha |
Retrieving filenames
Note that the above by default does not return filenames, nor indeed individual exposures. Each row summarizes one observation, even though there are often multiple dithered exposures per observation.
Set the return_filenames
option to return filenames. This will also return more exhaustive metadata in additional table columns as well, compared to the default shorter summary output.
[7]:
spaceKLIP.mast.query_coron_datasets('NIRCam', program=1386, filt='F444W', kind='SCI', return_filenames=True)
[7]:
filename | productLevel | kind | filter | coronmsk | targname | duration | effexptm | effinttm | exp_type | bkgdtarg | bstrtime | is_psf | nexposur | nframes | nints | numdthpt | obs_id | obslabel | pi_name | program | subarray | template | title | visit_id | visitsta | vststart_mjd | isRestricted |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
str47 | str2 | bytes3 | str5 | str9 | str9 | float64 | float64 | float64 | str9 | str1 | float64 | str1 | int64 | int64 | int64 | int64 | str26 | str20 | str14 | int64 | str11 | str28 | str70 | str12 | str10 | float64 | bool |
jw01386002001_0310a_00001_nrcalong_calints.fits | 2b | SCI | F444W | MASKA335R | HD 116434 | 617.946 | 615.767 | 307.88352 | NRC_CORON | f | 59790.1298299529 | f | 8 | 8 | 2 | 1 | V01386002001P000000000310A | NIRCam 335R - Roll 1 | Hinkley, Sasha | 1386 | SUB320A335R | NIRCam Coronagraphic Imaging | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | V01386002001 | SUCCESSFUL | 59790.05121913194 | False |
jw01386003001_0310a_00001_nrcalong_calints.fits | 2b | SCI | F444W | MASKA335R | HD 116434 | 617.946 | 615.767 | 307.88352 | NRC_CORON | f | 59790.21375087909 | f | 8 | 8 | 2 | 1 | V01386003001P000000000310A | NIRCam 335R - Roll 2 | Hinkley, Sasha | 1386 | SUB320A335R | NIRCam Coronagraphic Imaging | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | V01386003001 | SUCCESSFUL | 59790.13650497685 | False |
Set the level
option to uncal
or rate
if you want the filenames for those data products instead.
[8]:
spaceKLIP.mast.query_coron_datasets('NIRCam', program=1386, filt='F444W', kind='SCI', return_filenames=True,
level='uncal')
[8]:
filename | productLevel | kind | filter | coronmsk | targname | duration | effexptm | effinttm | exp_type | bkgdtarg | bstrtime | is_psf | nexposur | nframes | nints | numdthpt | obs_id | obslabel | pi_name | program | subarray | template | title | visit_id | visitsta | vststart_mjd | isRestricted |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
str45 | str2 | bytes3 | str5 | str9 | str9 | float64 | float64 | float64 | str9 | str1 | float64 | str1 | int64 | int64 | int64 | int64 | str26 | str20 | str14 | int64 | str11 | str28 | str70 | str12 | str10 | float64 | bool |
jw01386002001_0310a_00001_nrcalong_uncal.fits | 1b | SCI | F444W | MASKA335R | HD 116434 | 617.946 | 615.767 | 307.88352 | NRC_CORON | f | 59790.1298299529 | f | 8 | 8 | 2 | 1 | V01386002001P000000000310A | NIRCam 335R - Roll 1 | Hinkley, Sasha | 1386 | SUB320A335R | NIRCam Coronagraphic Imaging | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | V01386002001 | SUCCESSFUL | 59790.05121913194 | False |
jw01386003001_0310a_00001_nrcalong_uncal.fits | 1b | SCI | F444W | MASKA335R | HD 116434 | 617.946 | 615.767 | 307.88352 | NRC_CORON | f | 59790.21375087909 | f | 8 | 8 | 2 | 1 | V01386003001P000000000310A | NIRCam 335R - Roll 2 | Hinkley, Sasha | 1386 | SUB320A335R | NIRCam Coronagraphic Imaging | High Contrast Imaging of Exoplanets and Exoplanetary Systems with JWST | V01386003001 | SUCCESSFUL | 59790.13650497685 | False |
Downloading data
The download_files
function can be used to download from MAST the filenames in a given query results table.
[9]:
table = spaceKLIP.mast.query_coron_datasets('NIRCam', program=1386, filt='F444W', kind='SCI', return_filenames=True,
level='uncal')
spaceKLIP.mast.download_files(table)
DOWNLOAD SUCCESSFUL: ./jw01386002001_0310a_00001_nrcalong_uncal.fits
DOWNLOAD SUCCESSFUL: ./jw01386003001_0310a_00001_nrcalong_uncal.fits
A MAST API token can be provided by the environment variable $MAST_API_TOKEN to enable download of exclusive-access data.
Set the outputdir
parameter if you want the files downloaded somewhere other then the current working directory.
If the files already have been downloaded, they will by default be ignored. Set overwrite=True
to redownload, or exists_ok=False
to raise an exception if such files already exist.
[ ]: