Just letting anyone interested know that an astroquery tool to query MAST databases is in the works.
MastClass:
ObservationsClass(MastClass):
[x] query_criteria[_async](filters,objectname,coordinates,radius,pagesize,page): Astropy Table of observations
[x] query_object_count(objectname,radius): Number of observations
[x] query_criteria_count(filters,objectname,coordinates,radius): Number of observations
[x] get_product_list(obsidOrRow): Astropy Table of data products
[x] download_products(obsidsOrProductRows,downloadDir,mrpOnly,filters,curlFlag): Astropy Table manifest of downloaded files
[x] list_missions(): List of available missions
CatalogClass(MastClass):
Other planned features
Part 1 implemented in https://github.com/astropy/astroquery/pull/920
@ceb8 Could you add a checklist here for additional features? We'll keep this issue open until you're done.
Edit: See the checklist above.
@ceb8 - I've moved the checklist to the top comment, so that its summary is visible from the issue list, too.
@ceb8 - Would that be possible to have a (convenience)method that lists the available catalogs/projects? E.g. I see that with filtering it's possible to query for data from only a specified mission, but it would be great to have a few convenience methods on top of the more complex generic filtering.
@bsipocz I was already planning a method to list available catalogs for the catalog class. I can definitely do one that lists missions in the observations class.
I'm relaying a question I got yesterday after giving a talk about astroquery, namely whether we have PanSTARRS access via the mast module or if not whether it's planned?
(I told them MAST is a very new module and there are still some ongoing work, but couldn't give much details about panstarrs).
@bsipocz Yes there will be PanSTARRS access through the module, it allows access to anything in CAOM, i.e. anything that can be accessed through the Discovery Portal (mast.stsci.edu), so when PanSTARRS becomes available through that interface (which I believe will be in the next release) it will also be accessible through astroquery.mast.
Brilliant! Thanks for the clarification.
Hi all!
i came across this while going through the GSOC project ideas and found it interesting.
i went through the Mast web api documentation and as well as the astroquery.mast module to get a vague idea of how things are getting implemented. i am getting most of the things but did not get what does list_missions do??I tried looking for the Mast.Caom.All service but did not get anything.Can anyone please help me out?? And there is a small typo error in the function docstring of list_missions.
Hi @sushobhana .
list_missions lists all the missions that MAST holds Observations for (documentation ).
It is not included in the current stable release, you need the development version to access it.
Thanks for pointing out the typo, I'll fix it in my next MAST update.
Thanks for the clarification.! @ceb8
@ceb8 will the MAST module provide access to things like this cutout service? http://ps1images.stsci.edu/cgi-bin/ps1cutouts
If not, we might want a separate interface for that.
@keflavich The MAST module does not currently offer cutout functionality. We have plans for TESS cutout functionality, but I don't know if that will expand to include things like panstarrs. Going forwards we want to provide good APIs including astroquery components for new interfaces as we build them, but retrofitting APIs for old interfaces is more piecemeal, simply because we do not have infinite time/resources.
I do think it would makes sense to put an interface to that service under the mast module, perhaps mast.Cutouts.
Alright, cool, let's add that as a to-do item, either here or in its own issue. I understand the resource limitation issue, but perhaps this is the sort of relatively straightforward task a student (or someone just interested in getting access to the cutouts) might take on.
Thank you @ceb8 for working on this!
Looking at the list above, everything has been implemented, so I would close this issue. Any new enhancements could come as PRs or todo items can go into a new issue.