Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion astroquery/alma/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def query_region_async(self, coordinate, radius, cache=True, public=True,
science=science, **kwargs)

def query_async(self, payload, cache=True, public=True, science=True,
view_format='raw', get_query_payload=False):
view_format='raw', get_query_payload=False, **kwargs):
"""
Perform a generic query with user-specified payload

Expand All @@ -125,6 +125,7 @@ def query_async(self, payload, cache=True, public=True, science=True,

url = urljoin(self._get_dataarchive_url(), 'aq/')

payload.update(kwargs)
payload.update({'result_view': view_format, 'format': 'VOTABLE',
'download': 'true'})
if public:
Expand Down
10 changes: 10 additions & 0 deletions docs/alma/alma.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@ Region queries are just like any other in astroquery:
>>> print(len(gc_data))
383

Querying by other parameters
============================

As of version 0.3.4, you can also query other fields by keyword. For example,
if you want to find all projects with a particular PI, you could do:

.. code-block:: python

>>> rslt = Alma.query_object('W51', pi_name='Ginsburg', public=False)

Downloading Data
================

Expand Down