kammerje / spaceKLIP

Pipeline for reducing JWST high-contrast imaging data. Published in Kammerer et al. 2022 and Carter et al. 2022.
https://ui.adsabs.harvard.edu/abs/2022SPIE12180E..3NK/abstract
MIT License
16 stars 9 forks source link

enhance MAST query interface and add download capabilities #113

Closed mperrin closed 8 months ago

mperrin commented 8 months ago

This PR enhances the mast.query_coron_datasets function to allow querying on more parameters, and to optionally return a more detailed table including individual filenames (The prior behavior to return a shorter summary table remains the default).

In addition there is a new download_files function that retrieves from MAST based on the query results.

Example usage:

> 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
kammerje commented 8 months ago

I'm going to merge this with minimal review as discussed with @mperrin.