Package pylal :: Module sky
[hide private]
[frames] | no frames]

Module sky

source code


Author: Duncan M. Macleod <duncan.macleod@astro.cf.ac.uk>

Classes [hide private]
  SkyPositionTable
glue.ligolw.table.Table holding SkyPosition objects.
  SkyPosition
Functions [hide private]
 
ConvertSkyPosition(skyPoint, system, zenith=None, gpstime=None)
Convert the SkyPosition object skyPoint from it's current system to the new system.
source code
 
HorizonToSystem(input, zenith)
Convert the SkyPosition object input from 'horizon' to the inherited system using the SkyPosition zenith
source code
 
SystemToHorizon(input, zenith)
Convert the SkyPosition object input from the inherited system to 'horizon' using the SkyPosition zenith
source code
 
GeographicToEquatorial(input, gpstime)
Convert the SkyPosition object input from the inherited 'geographical' system to to 'equatorial'.
source code
 
EquatorialToEcliptic(input)
Convert the SkyPosition object input from the inherited 'equatorial' system to to 'ecliptic'.
source code
 
EquatorialToGalactic(input)
Convert the SkyPosition object input from the inherited 'equatorial' system to to 'galactic'.
source code
 
EquatorialToGeographic(input, gpstime)
Convert the SkyPosition object input from the inherited 'equatorial' system to to 'geographic'.
source code
 
EclipticToEquatorial(input)
Convert the SkyPosition object input from the inherited 'eliptic' system to to 'equatorial'.
source code
 
fromfile(fobj, loncol=0, latcol=1, probcol=None, angcol=None, system=None, degrees=False)
Returns a SkyPositionTable as read from the file object fobj.
source code
 
tofile(fobj, grid, delimiter=" ", degrees=False)
Writes the SkyPositionTable object grid to the file object fobj
source code
 
SkyPatch(ifos, ra, dec, radius, gpstime, dt=0.0005, sigma=1.65, grid='circular')
Returns a SkyPositionTable of circular rings emanating from a given central ra and dec.
source code
 
CircularGrid(resolution, radius)
Generates a SkyPositionTable of circular grids around the North Pole with given angular resolution and a maximal radius.
source code
 
TwoSiteSkyGrid(ifos, gpstime, dt=0.0005, sky='half', point=None)
Generates a SkyPositionTable for a two-site all-sky grid, covering either a hemisphere (sky='half') or full sphere (sky='full').
source code
 
ThreeSiteSkyGrid(ifos, gpstime, dt=0.0005, tiling='square', sky='half')
Generates a SkyPositionTable for a three-site all-sky grid, covering either a hemisphere (sky='half') or full sphere (sky='full'), using either 'square' or 'hexagonal tiling.
source code
 
ISOTimeDelayLine(ifos, ra, dec, gpstime=None, n=3)
Returns the n-point SkyPositionTable describing a line of constant time delay through the given ra and dec.
source code
 
MaxTimeDelayLine(ifos, ra, dec, gpstime=None, n=3)
Return the n-point SkyPositionTable describing the line perpendicular to the line of constant time delay through the given ra and dec for the 2-tuple ifos.
source code
 
MaxTimeDelayLine3(ifo1, ifo2, ra, dec, gpstime=None, n=3)
Alternative implementation of MaxTimeDelayLine.
source code
 
SphericalToCartesian(skyPoint)
Convert SkyPosition object into Cartesian 3-vector
source code
 
CartesianToSpherical(x, system='equatorial')
Convert 3-tuple Cartesian sky position x to SkyPosition object in the given system
source code
 
_rotation(axis, angle)
Form 3x3 rotation matrix to rotate about a given 3-tuple axis by a given angle
source code
 
_rotation_euler(alpha, beta, gamma)
Form rotation matrix from Euler angles.
source code
 
parse_sites(ifos)
Returns a new list of interferometers containing one only per site.
source code
Variables [hide private]
  _comment_regex = re.compile(r"\s*([#;].*)?\Z", re.DOTALL)
  _delim_regex = re.compile('[,\s]')
Function Details [hide private]

ConvertSkyPosition(skyPoint, system, zenith=None, gpstime=None)

source code 

Convert the SkyPosition object skyPoint from it's current system to the new system.

Valid systems are : 'horizon', 'geographic', 'equatorial', 'ecliptic', 'galactic'

SkyPosition zenith and gpstime should be given as appropriate for 'horizon' and 'geographic' conversions respectively.

SkyPatch(ifos, ra, dec, radius, gpstime, dt=0.0005, sigma=1.65, grid='circular')

source code 

Returns a SkyPositionTable of circular rings emanating from a given central ra and dec. out to the maximal radius.

TwoSiteSkyGrid(ifos, gpstime, dt=0.0005, sky='half', point=None)

source code 

Generates a SkyPositionTable for a two-site all-sky grid, covering either a hemisphere (sky='half') or full sphere (sky='full').

The grid can be forced to pass through the given SkyPosition point if required.

ISOTimeDelayLine(ifos, ra, dec, gpstime=None, n=3)

source code 

Returns the n-point SkyPositionTable describing a line of constant time delay through the given ra and dec. for the given 2-tuple ifos.

parse_sites(ifos)

source code 

Returns a new list of interferometers containing one only per site. I.e. this removes H2 if included.