neddy.conesearch module ∞
Perform a conesearch on NED
- Author
David Young
-
class
conesearch(log, ra=False, dec=False, radiusArcsec=False, nearestOnly=False, unclassified=False, quiet=False, listOfCoordinates=False, outputFilePath=False, verbose=False, redshift=False)[source] ∞ Bases:
neddy._basesearch._basesearchThe NED conesearch object
Key Arguments
log– loggerra– radec– decradiusArcsec– the search radius in arcsecsnearestOnly– return only the nearest object from NEDunclassified– include the unclassified sources in the search resultsquiet– don’t print to stdoutlistOfCoordinates– a list ofra,dec, andradiusArcsec(multiple sources)outputFilePath– path of file to print results to. Default False (don’t print to file)verbose– return more metadata for matchesredshift– require a redshift for a source to appear in search results
Usage
from neddy import conesearch search = conesearch( log=log, ra=0.000, dec=0.000, radiusArcsec=5.0, nearestOnly=False, unclassified=True, outputFilePath=False, verbose=True, redshift=False ) results = search.get()
-
_get_ned_query_url(raDeg, decDeg, arcsec)[source] ∞ build and return the NED conesearch URL for a single coordinate
Key Arguments
raDeg– conesearch centre RAdecDeg– conesearch centre DECarcsec– conesearch radius in arcsec
Return
url– the conesearch URL
-
get_crossmatch_names(listOfCoordinates=False, radiusArcsec=False)[source] ∞ return a list of NED sources found within the conesearch radius
Key Arguments
listOfCoordinates– list of the coordinates to conesearchradiusArcsec– the search radius
Return
names– the names of the sources matched within the search radiussearchParams– the parameters of the search as read from the command-line/method call
-
_oversized_subqueries(coordinate, radiusArcsec)[source] ∞ subdivide an oversized query (> 50,000 matches in NED get truncated to 50000) into finer search areas
Key Arguments
coordinate– the crowd-field RA and DEC.radiusArcsec– the original search radius
Return
names– the matched namessearchParams– the new search parameters
-
_parse_the_ned_list_results()[source] ∞ parse the NED results
- Return:
results–headers– description. Default **. [opt1|opt2]
- @review: when complete, clean _parse_the_ned_results method - @review: when complete add logging
-
_parse_the_ned_position_results(ra, dec, nedResults)[source] ∞ parse the results of a NED conesearch and return as python dicts
- Key Arguments:
ra– the search radec– the search dec
- Return:
results– list of result dictionariesresultLen– the number of matches returned
-
_split_incoming_queries_into_batches(sources, searchParams=False)[source] ∞ split incoming queries into batches
- Key Arguments:
sources– sources to split into batchessearchParams– search params associated with batches
- Return:
theseBatches– list of batchestheseBatchParams– params associated with batches