plugins Package¶
add_rfi Module¶
Created on Dec 8, 2014
author: jakeret
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.BasePluginAdds RFI to the time ordered data (phase switch).
-
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.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
background_noise Module¶
Created on Dec 8, 2014
author: jakeret
coord_transform Module¶
Created on Dec 8, 2014
author: jakeret
write_calibration Module¶
Created on Mar 29, 2016
author: seehars
-
class
hide.plugins.write_calibration.Plugin(ctx, **kwargs)[source]¶ Bases:
ivy.plugin.base_plugin.BasePluginWrites the sources of the calibration days to disk
write_rfi Module¶
Created on Feb 25, 2016
author: seehars
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.BasePluginWrites 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