plugins Package

add_background Module

Created on Mar 23, 2016

author: seehars

class hide.plugins.add_background.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Adds a time-constant, elevation dependent background to the TOD.

add_point_sources Module

Created on Apr 22, 2016

author: seehars

class hide.plugins.add_point_sources.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

add_reference Module

Created on Dec 8, 2014

author: jakeret

class hide.plugins.add_reference.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

add_rfi Module

Created on Dec 8, 2014

author: jakeret

class hide.plugins.add_rfi.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Adds RFI to the time ordered data

hide.plugins.add_rfi.gaussian(height, center_x, center_y, width_x, width_y)[source]

Returns a gaussian function with the given parameters

add_rfi_phaseswitch Module

Created on Feb 17, 2016

author: seehars

class hide.plugins.add_rfi_phaseswitch.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Adds RFI to the time ordered data (phase switch).

getTime()[source]
hide.plugins.add_rfi_phaseswitch.calcRFI(background, amplitude, fraction, deltat, deltaf, exponent, enhance, nf, nt)[source]

Get time-frequency plane of RFI.

Parameters:
  • background – background level of data per channel
  • amplitude – maximal amplitude of RFI per channel
  • fraction – fraction of RFI dominated pixels per channel
  • deltat – time scale of rfi decay (in units of pixels)
  • deltaf – frequency scale of rfi decay (in units of pixels)
  • exponent – exponent of rfi model (either 1 or 2)
  • enhance – enhancement factor relative to fraction
  • nf – number of frequency channels
  • nt – number of time steps
Returns RFI:

time-frequency plane of RFI

hide.plugins.add_rfi_phaseswitch.getDayNightMask(rfiday, time)[source]
hide.plugins.add_rfi_phaseswitch.getRFI(background, amplitude, fraction, deltat, deltaf, exponent, enhance, frequencies, time, rfiday, damping)[source]

Get time-frequency plane of RFI.

Parameters:
  • background – background level of data per channel
  • amplitude – maximal amplitude of RFI per channel
  • fraction – fraction of RFI dominated pixels per channel
  • deltat – time scale of rfi decay (in units of pixels)
  • deltaf – frequency scale of rfi decay (in units of pixels)
  • exponent – exponent of rfi model (either 1 or 2)
  • enhance – enhancement factor relative to fraction
  • frequencies – frequencies of tod in MHz
  • time – time of day in hours of tod
  • rfiday – tuple of start and end of RFI day
  • damping – damping factor for RFI fraction during the RFI night
Returns RFI:

time-frequency plane of RFI

hide.plugins.add_rfi_phaseswitch.kernel(deltaf, deltat, nf, nt, N, exponent)[source]

Convolution kernel for FFT convolution

Parameters:
  • deltaf – spread of RFI model in frequency
  • deltat – spread of RFI model in time
  • nf – number of frequencies
  • nt – number of time steps
  • N – size of kernel relative to deltaf, deltat
  • exponent – exponent of RFI model (see logmodel)
Returns kernel:

convolution kernel

hide.plugins.add_rfi_phaseswitch.logmodel(x, dx, exponent)[source]
Model for the log of the RFI profile:
  • -abs(x)/dx for exponent 1
  • -(x/dx)^2 for exponent 2
Parameters:
  • x – grid on which to evaluate the profile
  • dx – width of exponential
  • exponent – exponent of (x/dx), either 1 or 2
Returns logmodel:
 

log of RFI profile

apply_gain Module

Created on Feb 27, 2015

author: jakeret

class hide.plugins.apply_gain.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Transform the temperature based (Kelvin) TOD into ADU by applying a spectrometer specific gain

astro_signal Module

Created on Dec 8, 2014

author: jakeret

class hide.plugins.astro_signal.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

background_noise Module

Created on Dec 8, 2014

author: jakeret

class hide.plugins.background_noise.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Adds background noise to the time ordered data

hide.plugins.background_noise.get_noise(scale, alpha, beta, size)[source]

clean_up Module

Created on Sep 14, 2015

author: jakeret

class hide.plugins.clean_up.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Cleans up the context to avoid a memory leak

combine_signals Module

Created on Dec 8, 2014

author: jakeret

class hide.plugins.combine_signals.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Combines the different signals by convolving the beam profile with the input signals

coord_transform Module

Created on Dec 8, 2014

author: jakeret

class hide.plugins.coord_transform.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Applies the coordination transformation to the beam profile by rotating the beam response on the sky sphere according to the defined scanning strategy

hide.plugins.coord_transform.plot_beam(beam_spec, coord_ra, coord_dec, rphis, rthetas, ras, decs)[source]

earth_signal Module

Created on Dec 8, 2014

author: jakeret

class hide.plugins.earth_signal.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

initialize Module

Created on Dec 8, 2014

author: jakeret

class hide.plugins.initialize.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Initialize ..,

load_beam_profile Module

Created on Dec 8, 2014

author: jakeret

class hide.plugins.load_beam_profile.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Delegates the loading process to the beam profile provider

map_frequency_plugin Module

Created on Dec 11, 2014

author: jakeret

class hide.plugins.map_frequency_plugin.Plugin(ctx)[source]

Bases: object

Maps the frequencies to the plugin collection.

getWorkload()[source]

map_strategy_plugin Module

Created on Dec 11, 2014

author: jakeret

class hide.plugins.map_strategy_plugin.Plugin(ctx)[source]

Bases: object

Maps the strategy coordinates to the plugin collection.

getWorkload()[source]

qu_opt_coord_transform Module

Created on Dec 8, 2014

author: jakeret

class hide.plugins.qu_opt_coord_transform.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Applies the coordination transformation to the beam profile by rotating the beam response on the sky sphere according to the defined scanning strategy

reduce_frequency_plugin Module

Created on Mar 18, 2014

author: jakeret

class hide.plugins.reduce_frequency_plugin.Plugin(ctx)[source]

Bases: object

Combines the time ordered data for all frequencies

reduce(ctxList)[source]

reduce_signals_plugin Module

Created on Mar 18, 2014

author: jakeret

class hide.plugins.reduce_signals_plugin.Plugin(ctx)[source]

Bases: object

Combines all signals to time ordered data

reduce(ctxList)[source]

scanning_strategy Module

Created on Dec 8, 2014

author: jakeret

class hide.plugins.scanning_strategy.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

write_calibration Module

Created on Mar 29, 2016

author: seehars

class hide.plugins.write_calibration.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Writes the sources of the calibration days to disk

hide.plugins.write_calibration.get_header()[source]

Get header for calibration day file

hide.plugins.write_calibration.get_path(path, date, name)[source]

Get path for calibration day

Parameters:
  • path – output_path
  • date – key of calibration day
  • name – name of calibration file
hide.plugins.write_calibration.write_day(date, entries, path, name, header)[source]

Write calibration day to file

Parameters:
  • date – key to calibration day
  • entries – list of sources
  • path – output_path
  • name – name of calibaration file
  • header – header information

write_coords Module

Created on Sep 4, 2015

author: jakeret

class hide.plugins.write_coords.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Writes the time ordered data to the file system

write_rfi Module

Created on Feb 25, 2016

author: seehars

class hide.plugins.write_rfi.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Writes the RFI contribution to the time ordered phase switch data to the file system. Works only after tod is written to disk.

hide.plugins.write_rfi.write_data(ctx, rfi_key, rfi_name)[source]

write_tod Module

Created on Dec 8, 2014

author: jakeret

class hide.plugins.write_tod.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

DEPRECATED: Writes the time ordered data to the file system

write_tod_fits Module

Created on Sep 4, 2015

author: jakeret

class hide.plugins.write_tod_fits.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Writes the time ordered data to the file system in a fits file

write_tod_phaseswitch Module

Created on Dec 16, 2015

author: seehars

class hide.plugins.write_tod_phaseswitch.Plugin(ctx, **kwargs)[source]

Bases: ivy.plugin.base_plugin.BasePlugin

Writes the time ordered phase switch data to the file system

hide.plugins.write_tod_phaseswitch.add_dataset(grp, name, data)[source]

Adds a dataset to the group applying moderate compression

Parameters:
  • grp – The group
  • name – Name of the dataset
  • data – the actual data to be added
hide.plugins.write_tod_phaseswitch.get_path(ctx, pol)[source]

Get path for output :param ctx: instance of ivy context :param pol: identifier for polarization

hide.plugins.write_tod_phaseswitch.write_data(ctx, tod_key, Pname, P2name=None)[source]

Write the phase switch data to disk.

Parameters:
  • ctx – instance of ivy context
  • tod_key – key for the data to write
  • Pname – group name for TOD
  • P2name – group name for kurtosis data (None at the moment)