conesearch (class)

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._basesearch

The NED conesearch object

Key Arguments

  • log – logger

  • ra – ra

  • dec – dec

  • radiusArcsec – the search radius in arcsecs

  • nearestOnly – return only the nearest object from NED

  • unclassified – include the unclassified sources in the search results

  • quiet – don’t print to stdout

  • listOfCoordinates – a list of ra, dec, and radiusArcsec (multiple sources)

  • outputFilePath – path of file to print results to. Default False (don’t print to file)

  • verbose – return more metadata for matches

  • redshift – 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()

Methods

get()

return results of a NED conesearch

get_crossmatch_names([listOfCoordinates, …])

return a list of NED sources found within the conesearch radius

get()[source]

return results of a NED conesearch

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 conesearch

  • radiusArcsec – the search radius

Return

  • names – the names of the sources matched within the search radius

  • searchParams – the parameters of the search as read from the command-line/method call