Key elements of MAST interfaces are summarized here, and include Portal tutorials for users new to MAST.
On this page...
Getting Started with MAST
Login
Certain operations require that you log into MAST. This includes access to most data from active JWST observing programs. See MAST Accounts for details.
If you have a MyST account and login to MAST you may subscribe to notifications about JWST program data availability, even for observations that have not yet executed.
Exclusive Access Data
All data from JWST will eventually become public, and anyone may conduct searches for JWST data. However, when data fall under an exclusive access period (EAP) the files may only be retrieved by authorized persons. To retrieve EAP data from MAST:
- You must have a MyST account. See this URL to create one: https://proper.stsci.edu/proper/authentication/auth
- Login to MAST at any point prior to retrieving data. See MAST Accounts for details.
- Those with MyST accounts must be authorized by the PI of the program to retrieve EAP data.
- PIs of observing programs may grant access to Co-Is (or anyone with a MyST account) by visiting MyST and selecting Registered Users→Update→Manage Access to Exclusive Access Science Data.
MAST Interfaces
Web Applications
MAST offers a multiple web-based tools to search for and retrieve science and engineering data, or for other information. Links to these tools appear in the table below.
Search Type | Select a collection... | URL |
---|---|---|
Observations of a target or field | MAST Observations by Object Name or RA/Dec | https://mast.stsci.edu/portal/Mashup/Clients/Mast/Portal.html |
Observations Matching a Program ID | Observations by Program ID | |
Files matching Instrument Keyword Values | JWST Instrument Keywords | |
Wavefront Sensing products | JWST WSS | |
DOI Portal | https://mast.stsci.edu/portal/Mashup/Clients/DOI/DOIPortal.html | |
Calibrated Engineering Data | https://mast.stsci.edu/portal/Mashup/Clients/jwstedb/jwstedb.html | |
Keyword Dictionary | https://mast.stsci.edu/portal/Mashup/Clients/jwkeywords/index.html |
Browser Issues
Note that the MAST Portal has incompatibilities with certain browsers and settings. In particular, pop-up blockers must grant an exception for the mast.stsci.edu domain. For details see Introduction to the MAST Portal in the Portal Guide.
API
Many users find scripted access to MAST searches and data retrievals to suit their needs better. The most popular interface offered is the Python package astroquery.mast. A brief tutorial is appears near the end of this article, and more extensive documentation is offered in the JWST Archive Manual in the Using MAST APIs chapter.
Portal Tutorials
The MAST Portal search panel is shown below. It is a starting point for your interactions with MAST.
Search results are displayed below the search panel, as shown in the example below.
Results consist of Filter dialogs (left); a table of matched results (center) showing rows for public (white background), Exclusive Access (yellow background, with the padlock icon), and planned but not yet executed observations (orange background); and the AstroView tool (right) which shows the spatial extent (colored footprints) of the exposures superimposed on an image of the sky. For details see Field Guide to the Portal.
Searches with the Portal
Many types of Portal search return Observations, which are really collections of all available data products, including uncalibrated, intermediate, fully calibrated, and combined science data. See Linkages in the Portal to learn more about how various kinds of data products are associated in the Portal. See Download Basket to learn how to select and download one or more of these types of products.
Target Name or Coordinates
A basic search will return Observations from all hosted MAST missions. This search will provide access to all levels of JWST data products.
An advanced search allows you to customize the query by additional attributes, and can return Observations for all hosted MAST missions. This search will provide access for access to all levels of JWST data products (unless you choose to restrict the calibration level).
Program ID
This type of search will return all Observations for a given observing program (a.k.a. proposal number). This is a quick way for Investigator Teams to search for all data related to their science program.
This search will match program IDs for both JWST and HST, even though the results for one mission are not scientifically related to the other. It is easy to filter the results table for the mission of interest.
JWST Instrument Keywords
This type of search for JWST data provides a much larger set of criteria, including important metadata that are not available in standard searches such as:
- the flag for time-series observations (
tsovisit
) - exposure type (
exp_type
, which could indicate, e.g., coronographic observations) - observation sequence identifier (
observtn
) - program category (
category
, e.g., COM and ERS where all data are instantly public)
Beware that this type of search matches data for only one selected JWST instrument, and only the highest-level calibrated science FITS files.
Highest-level products only!
This kind of search will not provide access to ancillary files, nor to uncalibrated (e.g., Level-1b) files if higher-level products exist. It will also not match calibrated files that are not in FITS format, such as source catalogs or light curves.
There is a way, using scripted queries, to search by values of instrument keywords and return Observations, that is, complete collections of all data products that match the query criteria. See API Tutorials for details.
Data Retrieval Options
There are multiple options for downloading data products from MAST. Each option has its strengths, as noted below.
Searches that return Observations to the results table contain links to all available JWST products associated with each Observation. Place one or more results in the Download Basket to view and select exactly which products (e.g., uncalibrated data) to download.
Direct Download
This is the simplest form of download, and works for individual entries in the results table. The download bundle is streamed to your machine through your browser.
MRP files only
Download Basket
This form of download is intended for retrieving multiple observations at once, and for retrieving all (or only selected) types of products. There are three options: immediate streaming download (which imposes a size limit), and retrieval by curl script or ftp staging (which do not).
Streaming Download
This example applies to results that contain Observations, rather than individual files (as you would have after an Instrument Keyword search).
Download via cURL Script
This type of retrieval is asynchronous and has no limits to the volume of data to download. It is more robust against internet interruptions, and can be resumed if interrupted.
Batch Download
Staging files for ftps retrieval is currently supported for a few MAST missions (including JWST and HST), but not all. It is highly recommended to instead retrieve large numbers of files via cURL scripts.
API Tutorial
The following tutorial introduces the basics of MAST queries with the astroquery.mast package. More extensive documentation is offered in the JWST Archive Manual in the Using MAST APIs chapter.
What's in the Box
All data products for all selected observations will be bundled together for delivery. When the Zip or tar file is unpacked, data for each observation/visit/exposure will appear in a separate sub-directory.
For each sub-directory, the data bundle includes by default the highest-level data products, plus all parent data. For example, if an observation/visit/exposure combination resulted in Level-2 data products, all Level-1 products would automatically be included unless the user explicitly chooses otherwise.
The Download Manifest
The zip (or tar) file will include a file called MANIFEST.HTML
which lists each file name, a short description, and whether access is restricted. It will also note any files that could not be downloaded and the reason why (e.g., if you do not have permission to retrieve them).
File Names and Content
The semantic content of science files may be inferred from the file suffix, and the filename signature. For example, files ending in _uncal.fits
are Level-1b uncalibrated science products. See the JWST Data Product Types documentation for details.
For Further Reading...
Reference Documents
- MAST Portal Guide
- JWST Archive Manual
- JWST User Documentation Home (JDox)
- JWST Pipeline Documentation (ReadTheDocs)
- astroquery.mast documentation
User Support
- Archive Help Desk: archive@stsci.edu
- JWST Help Desk