pygaia/errors/utils.py
def calcZAltStartGate(G):
  """
  Calculate the value of z in the formula for the parallax errors. In this case assume gating starts at
  G=13.3 (to simulate bright star worst performance)

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

  Returns
  -------
  
  Value of z.
  """
  gatefloor=power(10.0,0.4*(13.3-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 calcZAltStartGate(G):
  """
  Calculate the value of z in the formula for the parallax errors. In this case assume gating starts at
  G=13.3 (to simulate bright star worst performance)

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

  Returns
  -------
  
  Value of z.
  """
  gatefloor=power(10.0,0.4*(13.3-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 calcZAltStartGate ( G ) : gatefloor = power ( 10.0 , 0.4 * ( 13.3 - 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 of z in the formula for the parallax errors. In this case assume gating starts at
  G=13.3 (to simulate bright star worst performance)

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

  Returns
  -------
  
  Value of z.
Calculate the value of z in the formula for the parallax errors . In this case assume gating starts at G = 13 . 3 ( to simulate bright star worst performance )