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

The worker class for the conesearch module

Key Arguments

  • log – logger

  • ra – ra

  • dec – dec

  • radiusArcsec – radiusArcsec

  • nearestOnly – return only the nearest object from NED

  • unclassified – include the unclassified sources in the return results

  • quiet – don’t print to stdout

  • listOfCoordinates – list of coordinates ra dec radiusArcsec

  • outputFilePath – path to output file

  • verbose – return more metadata for matches

    • redshift – redshift constraint

- @review: when complete, clean conesearch class
- @review: when complete add logging
- @review: when complete, decide whether to abstract class to another module
get()[source]

get the conesearch object

Return

  • conesearch

- @review: when complete, clean get method
- @review: when complete add logging
_get_ned_query_url(raDeg, decDeg, arcsec)[source]

single ned conesearch

Key Arguments

=

Return

  • None

- @review: when complete, clean _get_ned_query_url method
- @review: when complete add logging
get_crossmatch_names(listOfCoordinates=False, radiusArcsec=False)[source]

get corssmatch names

Key Arguments

  • listOfCoordinates – list of the coordinates to conesearch

  • radiusArcsec – the search radius

Return

  • None

- @review: when complete, clean get_crossmatch_names method
- @review: when complete add logging
_convert_coordinates_to_decimal_degrees()[source]

convert coordinates to decimal degrees

_convert_html_to_csv()[source]

contert html to csv

Key Arguments:

# -

Return:

- None
- @review: when complete, clean _convert_html_to_csv method
- @review: when complete add logging
_oversized_subqueries(coordinate, radiusArcsec)[source]

subdivide oversized query

Key Arguments

=

Return

  • None

- @review: when complete, clean _oversized_subqueries method
- @review: when complete add logging
_parse_the_ned_list_results()[source]

parse the ned results

Key Arguments:

# -

Return:

- None
- @review: when complete, clean _parse_the_ned_results method
- @review: when complete add logging
_parse_the_ned_object_results()[source]

parse the ned results

Key Arguments:

# -

Return:

- None
- @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 ned results

Key Arguments:
  • ra – the search ra

  • dec – the search dec

Return:
  • results – list of result dictionaries

_split_incoming_queries_into_batches(sources, searchParams=False)[source]

split incoming queries into batches

Key Arguments:
  • sources – sources to split into batches

  • searchParams – search params associated with batches

Return:
  • theseBatches – list of batches

  • theseBatchParams – params associated with batches