m10_to_completeness#
- gaiaunlimited.selectionfunctions.m10_to_completeness(G, m10)#
Predicts the completeness at magnitude G, given a value of M_10 read from a precomputed map.
- Parameters:
G (float or nd.array) – where to evaluate the function
m10 (float or nd.array) – the value of M_10 in a given region
- Returns:
sf(G) between 0 and 1. The shape of the output will match the input:
if given an array (i.e. an array of positions) the output is an array
if given an array of Gmag and either one position or a matching array of positions, the output is also an array
if only given scalars, the output is one number.