Bases: astroquery.query.BaseQuery
Attributes Summary
ALL_SKY_URL | str(object=’‘) -> string |
BASE_URL | str(object=’‘) -> string |
DATA_SEARCH_URL | str(object=’‘) -> string |
IMG_DATA_URL | str(object=’‘) -> string |
OBJ_SEARCH_URL | str(object=’‘) -> string |
PHOTOMETRY_OUT | |
SPECTRA_URL | str(object=’‘) -> string |
TIMEOUT | int(x=0) -> int or long |
Methods Summary
extract_image_urls(*args, **kwds) | Helper function that uses reges to extract the image urls from the given HTML. |
get_image_list(*args, **kwds) | Helper function that returns a list of urls from which to download the FITS images. |
get_images(*args, **kwds) | Query function to fetch FITS images for a given identifier. |
get_images_async(*args, **kwds) | Serves the same purpose as Ned.get_images but returns file-handlers to the remote files rather than downloading them. |
get_spectra(*args, **kwds) | Query function to fetch FITS files of spectra for a given identifier. |
get_spectra_async(*args, **kwds) | Serves the same purpose as Ned.get_spectra but returns file-handlers to the remote files rather than downloading them. |
get_table(*args, **kwds) | Fetches the specified data table for the object from NED and returns it as an astropy.table.Table. |
get_table_async(*args, **kwds) | Serves the same purpose as Ned.query_region but returns the raw HTTP response rather than the astropy.table.Table object. |
query_object(*args, **kwds) | Queries objects by name from the NED Service and returns the Main Source Table. |
query_object_async(*args, **kwds) | Serves the same purpose as Ned.query_object but returns the raw HTTP response rather than the astropy.table.Table object. |
query_refcode(*args, **kwds) | Used to retrieve all objects contained in a particular reference. |
query_refcode_async(*args, **kwds) | Serves the same purpose as Ned.query_region but returns the raw HTTP response rather than the astropy.table.Table object. |
query_region(*args, **kwds) | Used to query a region around a known identifier or given coordinates. |
query_region_async(*args, **kwds) | Serves the same purpose as Ned.query_region but returns the raw HTTP response rather than the astropy.table.Table object. |
query_region_iau(*args, **kwds) | Used to query the Ned service via the IAU name. |
query_region_iau_async(*args, **kwds) | Serves the same purpose as Ned.query_region_iau but returns the raw HTTP response rather than the astropy.table.Table object. |
Attributes Documentation
Methods Documentation
Helper function that uses reges to extract the image urls from the given HTML.
Parameters : | html_in : str
|
---|
Helper function that returns a list of urls from which to download the FITS images.
Parameters : | object_name : str
get_query_payload : bool, optional item : str, optional
|
---|---|
Returns : | list of image urls : |
Query function to fetch FITS images for a given identifier.
Parameters : | object_name : str
get_query_payload : bool, optional |
---|---|
Returns : | A list of `astropy.fits.HDUList` objects : |
Serves the same purpose as Ned.get_images but returns file-handlers to the remote files rather than downloading them.
Parameters : | object_name : str
get_query_payload : bool, optional |
---|---|
Returns : | A list of context-managers that yield readable file-like objects : |
Query function to fetch FITS files of spectra for a given identifier.
Parameters : | object_name : str
get_query_payload : bool, optional |
---|---|
Returns : | A list of `astropy.fits.HDUList` objects : |
Serves the same purpose as Ned.get_spectra but returns file-handlers to the remote files rather than downloading them.
Parameters : | object_name : str
get_query_payload : bool, optional |
---|---|
Returns : | A list of context-managers that yield readable file-like objects : |
Fetches the specified data table for the object from NED and returns it as an astropy.table.Table.
Parameters : | object_name : str
table : str, optional
output_table_format : int, [optional for photometry]
from_year : int, [optional for references]
to_year : int, [optional for references]
extended_search : bool, [optional for references] get_query_payload : bool, optional verbose : bool, optional. |
---|---|
Returns : | result : astropy.table.Table
|
Notes
Warning
table=references does not work correctly astroquery issue #141
Serves the same purpose as Ned.query_region but returns the raw HTTP response rather than the astropy.table.Table object.
Parameters : | object_name : str
table : str, optional
from_year : int, [optional for references]
to_year : int, [optional for references]
extended_search : bool, [optional for references] get_query_payload : bool, optional |
---|---|
Returns : | response : requests.Response
|
Queries objects by name from the NED Service and returns the Main Source Table.
Parameters : | object_name : str
get_query_payload : bool, optional verbose : bool, optional. |
---|---|
Returns : | result : astropy.table.Table
|
Serves the same purpose as Ned.query_object but returns the raw HTTP response rather than the astropy.table.Table object.
Parameters : | object_name : str
get_query_payload : bool, optional |
---|---|
Returns : | response : requests.Response
|
Used to retrieve all objects contained in a particular reference. Equivalent to by refcode queries of the web interface.
Parameters : | refcode : str
get_query_payload : bool, optional verbose : bool, optional. |
---|---|
Returns : | result : astropy.table.Table
|
Serves the same purpose as Ned.query_region but returns the raw HTTP response rather than the astropy.table.Table object.
Parameters : | refcode : str
get_query_payload : bool, optional |
---|---|
Returns : | response : requests.Response
|
Used to query a region around a known identifier or given coordinates. Equivalent to the near position and near name queries from the Ned web interface.
Parameters : | coordinates : str or astropy.coordinates object
radius : str or astropy.units.Quantity object, optional
equinox : str, optional
get_query_payload : bool, optional verbose : bool, optional. |
---|---|
Returns : | result : astropy.table.Table
|
Serves the same purpose as Ned.query_region but returns the raw HTTP response rather than the astropy.table.Table object.
Parameters : | coordinates : str or astropy.coordinates object
radius : str or astropy.units.Quantity object, optional
equinox : str, optional
get_query_payload : bool, optional |
---|---|
Returns : | response : requests.Response
|
Used to query the Ned service via the IAU name. Equivalent to the IAU format queries of the Web interface.
Parameters : | iau_name : str
frame : str, optional
equinox : str, optional
get_query_payload : bool, optional verbose : bool, optional. |
---|---|
Returns : | result : astropy.table.Table
|
Serves the same purpose as Ned.query_region_iau but returns the raw HTTP response rather than the astropy.table.Table object.
Parameters : | iau_name : str
frame : str, optional
equinox : str, optional
get_query_payload : bool, optional |
---|---|
Returns : | response : requests.Response
|