This module provides utilities for calculating detector responses. This was grabbed from https://github.com/gwastro/pycbc/blob/master/pycbc/detector.py
-
class
xpipeline.core.xdetector.
Detector
(detector_name)[source]¶ Bases:
object
A gravitaional wave detector
-
light_travel_time_to_detector
(self, det)[source]¶ Return the light travel time from this detector Parameters ———- detector: Detector
The other detector to determine the light travel time to.
- time: float
The light travel time in seconds
-
optimal_orientation
(self, t_gps)[source]¶ Return the optimal orientation in right ascension and declination for a given GPS time.
-
project_wave
(self, hp, hc, longitude, latitude, polarization)[source]¶ Return the strain of a wave with given amplitudes and angles as measured by the detector.
-
time_delay_from_detector
(self, other_detector, right_ascension, declination, t_gps)[source]¶ Return the time delay from the given to detector for a signal with the given sky location; i.e. return t1 - t2 where t1 is the arrival time in this detector and t2 is the arrival time in the other detector. Note that this would return the same value as time_delay_from_earth_center if other_detector was geocentric.
- Parameters
other_detector : detector.Detector
A detector instance.
right_ascension : float
The right ascension (in rad) of the signal.
declination : float
The declination (in rad) of the signal.
t_gps : float
The GPS time (in s) of the signal.
- Returns
float :
The arrival time difference between the detectors.
-
-
xpipeline.core.xdetector.
compute_antenna_patterns
(detectors, phi, theta, **kwargs)[source]¶ Compute the antenna patterns for a set of detectors and a sky location
- Parameters
detectors : list
A list of detector by there abbr i.e. H1, L1 etc.
- phifloat
Earth fixed coordinate of signal
- thetafloat
The earth fixed coordinate of signal.
- antenna_patternslist
list of antenna patterns to calculate and return
- Returns
dict :
key-wise dict were keys are antenna pattern name values are XFrequencyDicts