CasdaClass¶
- class astroquery.casda.CasdaClass(user=None, password=None)[source]¶
Bases:
astroquery.query.BaseQuery
Class for accessing ASKAP data through the CSIRO ASKAP Science Data Archive (CASDA). Typical usage:
result = Casda.query_region(‘22h15m38.2s -45d50m30.5s’, radius=0.5 * u.deg)
Attributes Summary
Methods Summary
download_files
(urls[, savedir])Download a series of files
filter_out_unreleased
(table)Return a subset of the table which only includes released (public) data.
query_region
(*args, **kwargs)Queries the service and returns a table object.
query_region_async
(coordinates[, radius, ...])Queries a region around the specified coordinates.
stage_data
(table[, verbose])Request access to a set of data files.
Attributes Documentation
- POLL_INTERVAL = 20¶
- TIMEOUT = 30¶
- URL = 'https://casda.csiro.au/casda_vo_tools/sia2/query'¶
Methods Documentation
- download_files(urls, savedir='')[source]¶
Download a series of files
- Parameters
- urls: list of strings
The list of URLs of the files to be downloaded.
- savedir: str, optional
The directory in which to save the files.
- Returns
- A list of the full filenames of the downloaded files.
- filter_out_unreleased(table)[source]¶
Return a subset of the table which only includes released (public) data.
- Parameters
- table: `astropy.table.Table`
A table of results as returned by query_region. Must include an obs_release_date column.
- Returns
- table
astropy.table.Table
The table with all unreleased (non public) data products filtered out.
- table
- query_region(*args, **kwargs)¶
Queries the service and returns a table object.
Queries a region around the specified coordinates. Either a radius or both a height and a width must be provided.
- Parameters
- coordinatesstr or
astropy.coordinates
. coordinates around which to query
- radiusstr or
astropy.units.Quantity
. the radius of the cone search
- widthstr or
astropy.units.Quantity
the width for a box region
- heightstr or
astropy.units.Quantity
the height for a box region
- get_query_payloadbool, optional
Just return the dict of HTTP request parameters.
- cache: bool, optional
Use the astroquery internal query result cache
- coordinatesstr or
- Returns
- tableA
Table
object.
- tableA
- query_region_async(coordinates, radius=None, height=None, width=None, get_query_payload=False, cache=True)[source]¶
Queries a region around the specified coordinates. Either a radius or both a height and a width must be provided.
- Parameters
- coordinatesstr or
astropy.coordinates
. coordinates around which to query
- radiusstr or
astropy.units.Quantity
. the radius of the cone search
- widthstr or
astropy.units.Quantity
the width for a box region
- heightstr or
astropy.units.Quantity
the height for a box region
- get_query_payloadbool, optional
Just return the dict of HTTP request parameters.
- cache: bool, optional
Use the astroquery internal query result cache
- coordinatesstr or
- Returns
- response
requests.Response
The HTTP response returned from the service. All async methods should return the raw HTTP response.
- response
- stage_data(table, verbose=False)[source]¶
Request access to a set of data files. All requests for data must use authentication. If you have access to the data, the requested files will be brought online and a set of URLs to download the files will be returned.
- Parameters
- table: `astropy.table.Table`
A table describing the files to be staged, such as produced by query_region. It must include an access_url column.
- verbose: bool, optional
Should status message be logged periodically, defaults to False
- Returns
- A list of urls of both the requested files and the checksums for the files