plugins Package¶
background_removal Module¶
create_maps Module¶
Created on Feb 26, 2016
author: jakeret
find_nested_files Module¶
Created on Jul 27, 2015
author: jakeret
-
class
seek.plugins.find_nested_files.Plugin(ctx, **kwargs)[source]¶ Bases:
ivy.plugin.base_plugin.BasePluginTraverses the file system from the file_prefix and collects all data and coord paths within the scanning strategy start and end date
-
seek.plugins.find_nested_files.get_calibration_path(path, date)[source]¶ Get path for calibration file.
Parameters: - path – path for the data files
- date – date corresponding to the files
- prefix – file prefix
Returns: full path to calibration file
-
seek.plugins.find_nested_files.get_coords_path(path, date, prefix)[source]¶ Get path for coordinate file.
Parameters: - path – path for the data files
- date – date corresponding to the files
- prefix – file prefix
Returns: full path to coordinate file
initialize Module¶
load_data Module¶
Created on Jul 28, 2015
author: jakeret
-
class
seek.plugins.load_data.Plugin(ctx, **kwargs)[source]¶ Bases:
ivy.plugin.base_plugin.BasePluginLoads the data from files, applies cuts in frequency direction and also integrates the data in time and freq
-
class
seek.plugins.load_data.TimeOrderedData(strategy_start, frequencies, time_axis, vx, vy, ref_channel)¶ Bases:
tuple-
frequencies¶ Alias for field number 1
-
ref_channel¶ Alias for field number 5
-
strategy_start¶ Alias for field number 0
-
time_axis¶ Alias for field number 2
-
vx¶ Alias for field number 3
-
vy¶ Alias for field number 4
-
-
seek.plugins.load_data.convert_callisto(data)[source]¶ Converts the digits into kelvins
Parameters: - frequencies – the frequencies of the data
- data – array containing the data [freq, time]
Returns data: the converted data
-
seek.plugins.load_data.convert_to_radio_frequency(frequencies, spectrometer)[source]¶ Conversion between internal frequency and the actual physical frequency
Parameters: - IF – internal frequency array
- ctx – context object
Returns RF: converted frequency array
-
seek.plugins.load_data.get_observation_start(path, file_type)[source]¶ Extracts the observation date
Parameters: path – path to the file Returns observation_start: datetime object with the date
-
seek.plugins.load_data.get_observation_start_from_fits(path)[source]¶ Extracts the observation date
Parameters: path – path to the file Returns observation_start: datetime object with the date
load_preprocessed_data Module¶
Created on Jan 15, 2016
author: jakeret
-
class
seek.plugins.load_preprocessed_data.Plugin(ctx, **kwargs)[source]¶ Bases:
ivy.plugin.base_plugin.BasePluginLoads the data, mask and frequencies of the current iteration from disk. Can be used for closer analysis of the masking (sum threshold). The data is read from the current folder using the same filename as the first input filename.
map_file_paths Module¶
Created on Feb 3, 2015
author: jakeret
map_indicies Module¶
Created on Mar 7, 2016
author: jakeret
mask_artefacts Module¶
Created on Jun 6, 2016
author: jakeret
mask_objects Module¶
Created on Feb 6, 2015
author: jakeret
-
class
seek.plugins.mask_objects.Plugin(ctx, **kwargs)[source]¶ Bases:
ivy.plugin.base_plugin.BasePluginMasks the Sun and the Moon using ephem.
-
seek.plugins.mask_objects.get_object_separation(obs, start_date, time, ra, dec)[source]¶ Get separation between the Sun/Moon and the RA/DEC of a pixel.
Parameters: - obs – pyephem observer
- start_date – date
- time – time axis of TOD
- ra – RA for TOD
- dec – DEC for TOD
Returns: separation of the TOD positions with the Sun and the Moon
post_process_tod Module¶
Created on Feb 6, 2015
author: jakeret
-
class
seek.plugins.post_process_tod.Plugin(ctx, **kwargs)[source]¶ Bases:
ivy.plugin.base_plugin.BasePluginWrites the data, mask and frequencies of the current iteration to disk. Can be used for closer analysis of the masking (sum threshold). Output is written to the current folder using the same filename as the first input filename (may overwrite the original file if not being careful)
pre_process_tod Module¶
Created on Jan 20, 2016
author: jakeret
process_coords Module¶
Created on Jul 28, 2015
author: jakeret
-
class
seek.plugins.process_coords.Plugin(ctx, **kwargs)[source]¶ Bases:
ivy.plugin.base_plugin.BasePluginLoads the telescope coordinate file for the current observation date and converts AZ/EL to RA/DEC.
-
seek.plugins.process_coords.convert_coords(date, time_steps, azs, els, obs)[source]¶ Convert the time/az/ele coordinates to RA/DEC.
Parameters: - date – date
- time_steps – time interval between two TOD pixels
- azs – Azimuth coordinate
- els – Elevation coordinate
- obs – pyephem observer
Returns: RA/DEC array corresponding to TOD