Bases: astroquery.query.QueryWithLogin
The UKIDSSQuery class. Must instantiate this class in order to make any queries. Allows registered users to login, but defaults to using the public UKIDSS data sets.
Attributes Summary
ARCHIVE_URL | str(object=’‘) -> string |
BASE_URL | str(object=’‘) -> string |
IMAGE_URL | str(object=’‘) -> string |
LOGIN_URL | str(object=’‘) -> string |
REGION_URL | str(object=’‘) -> string |
TIMEOUT | int(x=0) -> int or long |
databases | tuple() -> empty tuple |
filters | |
frame_types | |
ukidss_programmes_long | |
ukidss_programmes_short |
Methods Summary
extract_urls(*args, **kwds) | Helper function that uses reges to extract the image urls from the given HTML. |
get_image_list(*args, **kwds) | |
get_images(*args, **kwds) | Get an image around a target/ coordinates from UKIDSS catalog. |
get_images_async(*args, **kwds) | Serves the same purpose as get_images() but returns a list of file handlers to remote files :Parameters: coordinates : str or astropy.coordinates object The target around which to search. |
list_catalogs(*args, **kwds) | Returns a lsit of available catalogs in UKIDSS. |
list_databases(*args, **kwds) | List the databases available from the UKIDSS WFCAM archive |
logged_in() | Determine whether currently logged in. |
login(username, password, community) | Login to non-public data as a known user |
query_region(*args, **kwds) | Used to query a region around a known identifier or given coordinates from the catalog. |
query_region_async(*args, **kwds) | Serves the same purpose as query_region(). |
Attributes Documentation
Methods Documentation
Helper function that uses reges to extract the image urls from the given HTML.
Parameters : | html_in : str
|
---|---|
Returns : | links : list
|
Get an image around a target/ coordinates from UKIDSS catalog.
Parameters : | coordinates : str or astropy.coordinates object
waveband : str
frame_type : str
image_width : str or astropy.units.Quantity object, optional
image_height : str or astropy.units.Quantity object, optional
radius : str or astropy.units.Quantity object, optional
programme_id : str
database : str
verbose : bool get_query_payload : bool, optional |
---|---|
Returns : | A list of `astropy.fits.HDUList` objects : |
Serves the same purpose as get_images() but returns a list of file handlers to remote files
Parameters : | coordinates : str or astropy.coordinates object
waveband : str
frame_type : str
image_width : str or astropy.units.Quantity object, optional
image_height : str or astropy.units.Quantity object, optional
radius : str or astropy.units.Quantity object, optional
programme_id : str
database : str
verbose : bool get_query_payload : bool, optional |
---|---|
Returns : | A list of context-managers that yield readable file-like objects : |
Returns a lsit of available catalogs in UKIDSS. These can be used as programme_id in queries
Parameters : | style : str, optional
|
---|---|
Returns : | list :
|
List the databases available from the UKIDSS WFCAM archive
Determine whether currently logged in.
Login to non-public data as a known user
Parameters : | username : string password : string community : string |
---|
Used to query a region around a known identifier or given coordinates from the catalog.
Parameters : | coordinates : str or astropy.coordinates object
radius : str or astropy.units.Quantity object, optional
programme_id : str
database : str
verbose : bool, optional. get_query_payload : bool, optional system : ‘J2000’ or ‘Galactic’
|
---|---|
Returns : | result : astropy.table.Table
|
Serves the same purpose as query_region(). But returns the raw HTTP response rather than the parsed result.
Parameters : | coordinates : str or astropy.coordinates object
radius : str or astropy.units.Quantity object, optional
programme_id : str
database : str
get_query_payload : bool, optional |
---|---|
Returns : | response : requests.Response
|