DR2SelectionFunction#

class gaiaunlimited.selectionfunctions.DR2SelectionFunction#

Bases: DownloadMixin

DR2 selection function developed by the Gaiaverse team.

Attributes Summary

datafiles

nside_crowding

nside_n_field

Methods Summary

query(coords, gmag[, use_modelT])

Query the selection function.

Attributes Documentation

datafiles = {'cog_ii_dr2.h5': 'https://zenodo.org/record/8300616/files/cog_ii_dr2.h5'}#
nside_crowding = 1024#
nside_n_field = 4096#

Methods Documentation

query(coords, gmag, use_modelT=False)#

Query the selection function.

Parameters:
  • coords – sky coordinates as an astropy coordinates instance.

  • gmag (float or array) – Gaia G magnitudes. Should have the same size as coords.

Returns:

array of selection probabilities.

Return type:

np.array