sp_validation.survey

SURVEY.

Description:

This file contains methods to deal with the survey geometry. Some methods are UNIONS-/CFIS-specific.

Author:

Martin Kilbinger <martin.kilbinger@cea.fr>

get_area(dd, area_tile, verbose=False)[source]

Get area.

Return total survey area. This ignores masking as well as overlaps between tiles, and provides therefore an overestimation. of the actual observed area.

Parameters:
  • dd (numpy.ndarray) – galaxy catalog

  • area_tile (float) – area per tile in square degree

  • verbose (bool, optional) – verbose output if True, default is False

Returns:

  • float – area in square degrees

  • float – area in square arc minutes

  • list of float – tile IDs

missing_tiles(tile_IDs, path_tile_ID, path_found_ID, path_missing_ID, verbose=False)[source]

Missing tiles.

Compute completeness, and identify missing tiles.

Parameters:
  • tile_IDs (list of string) – input tile IDs in catalogue

  • path_tile_ID (string) – input tile ID path to match

  • path_found_ID (string) – output found tile ID path

  • path_missing_ID (string) – output missing tile ID path

  • verbose (bool) – verbose output if True

Returns:

  • int – number of tiles found, -1 if ID file path not found

  • int – number of tiles missing, -1 if ID file path not found

write_tile_id_gal_counts(detection_IDs, galaxy_IDs, shape_IDs, fname)[source]

Write Tile ID Galaxy Counts.

Write number of galaxies per tile ID to file.

Parameters:
  • detection_IDs (list) – input tile ID for each detected object

  • galaxy_IDs (list) – input tile ID for each selected galaxy

  • shape_IDs (list) – input tile ID for each galaxy with measured shape

  • fname (str) – output file name

get_footprint(patch, ra, dec)[source]

Get Footprint.

Return coordinates within footprint of patch.

Parameters:
  • patch (str) – patch name

  • ra (array of float) – R,A, coordintates

  • dec (array of float) – DEC coordinates

Returns:

list of coordinates withint footprint

Return type:

list of float