pygaia/errors/utils.py
def calcZ(G):
  """
  Calculate the value for the parameter z in the formula for parallax and G magnitude errors as a
  function of G and (V-I).

  Parameters
  ----------
  
  G - Value of G-band magnitude.

  Returns
  -------
  
  Value of z.
  """
  gatefloor=power(10.0,0.4*(12.0-15.0))
  if isscalar(G):
   result=amax((gatefloor,power(10.0,0.4*(G-15.0))))
  else :
    result=power(10.0,0.4*(G-15.0))
    indices=(result<gatefloor)
    result[indices]=gatefloor
  return result
def calcZ(G):
  """
  Calculate the value for the parameter z in the formula for parallax and G magnitude errors as a
  function of G and (V-I).

  Parameters
  ----------
  
  G - Value of G-band magnitude.

  Returns
  -------
  
  Value of z.
  """
  gatefloor=power(10.0,0.4*(12.0-15.0))
  if isscalar(G):
   result=amax((gatefloor,power(10.0,0.4*(G-15.0))))
  else :
    result=power(10.0,0.4*(G-15.0))
    indices=(result<gatefloor)
    result[indices]=gatefloor
  return result
Calculate the value for the parameter z in the formula for parallax and G magnitude errors as a
  function of G and (V-I).

  Parameters
  ----------
  
  G - Value of G-band magnitude.

  Returns
  -------
  
  Value of z.