observation

class time_domain_astronomy_sandbox.observation.Observation(backend: time_domain_astronomy_sandbox.backend.Backend, length: int = 1, t0: float = 0.0)[source]

Observation class.

dedisperse(dm, window=[])[source]

Dedisperse an observation window for a given dispersion measure (DM).

Parameters:
  • dm (int) -- Dispersion measure to use for dedispersion
  • window ((list | Numpy.array)) -- An observation window (to clean a specific instance of window). If empty, cleans self.window
Returns:

dedispersed_window -- The dedispersed window.

Return type:

Numpy.array

frequency_cleaning(window=[], n_iter=1, bin_size=32, threshold=2.75, symetric=False, keep_state=False)[source]

RFI mitigation (cleaning) in frequency domain.

Parameters:
  • window ((list | Numpy.array)) -- An observation window (to clean a specific instance of window). If empty, cleans self.window
  • n_iter (int) -- Number of cleaning iteration
  • keep_state (bool) -- Save result of cleaning to self.window
Returns:

self.window -- The cleaned window.

Return type:

Numpy.array

time_cleaning(window=[], n_iter=1, threshold=3.25, symetric=False, keep_state=False)[source]

RFI mitigation (cleaning) in time domain.

Parameters:
  • window ((list | Numpy.array)) -- An observation window (to clean a specific instance of window). If empty, cleans self.window
  • n_iter (int) -- Number of cleaning iteration
  • keep_state (bool) -- Save result of cleaning to self.window
Returns:

self.window -- The cleaned window.

Return type:

Numpy.array