Session¶
-
class
Data_Reduction.GAVRT.
Session
(parent, year, doy)¶ Bases:
Data_Reduction.Session
Class for an observing session on a given year and DOY
Public Attributes:
boresights - dict keyed on 'xpwr_cfg_id' with 2D arrays for scan metadata bs_channels - dict keyed on 'xpwr_cfg_id' with lists of active channels bs_data - dict keyed on 'xpwr_cfg_id' with 2D rrays for 'tlog' data db - database doy - day of year for session logger - logging.Logger object maps - maps in this session session_dir - path to results from this session xpwr_metadata - 2D array with data for each 'xpwr' configuration year - year for session
Notes on Data Arrays:
* 'boresights' 2D-arrays have a row for each scan of the boresight and columns for:: 0 - 'xscan_id', 1 - 'xpwr_cfg_id', and 2 - 'epoch'. * 'bs_data' 2D-arrays have a row for each 'tlog' row and columns for:: 0 - UNIX time, 1 - counts, 2 - integration time, 3 - azimuth, 4 - elevation, 5 - noise diode state, and 6 - channel [if argument chan=None; see get_boresight_data()] * 'xpwr_metadata' is a 2D-array with a row for each configuration and columns:: 0 - 'xpwr_cfg_id' 1 - UNIX time, 2 - rss_cfg_id, 3 - source_id, 4 - axis, and 5 - chan
Methods Summary
Returns boresights from the xpwr configurations
Retrieves data from ‘tlog’ table for boresights with a given channel
get_maps
([map_IDs])Returns maps from the raster configuration IDs for the specified date
list_maps
([save])make_bs_dir
([good_only, save])Notes
save_map_data
([mapkeys])create a dict with the map data from the designated images
summary
([save])Methods Documentation
-
get_boresights
()¶ Returns boresights from the xpwr configurations
-
get_good_boresights
()¶ Retrieves data from ‘tlog’ table for boresights with a given channel
- Returns a numpy array with columns containing::
0 - UNIX time 1 - counts 2 - integration time 3 - azimuth 4 - elevation 5 - noise diode state 6 - chan (if chan=None)
-
get_map_IDs
()¶
-
get_maps
(map_IDs=[])¶ Returns maps from the raster configuration IDs for the specified date
-
get_session_dir
()¶
-
list_maps
(save=False)¶
-
make_bs_dir
(good_only=False, save=False)¶ Notes
Each good boresight consists of two scans
-
save_map_data
(mapkeys=None)¶ create a dict with the map data from the designated images
This speeds up retrieval of images
:param mapkeys : numbers of the maps (default: all) :type mapkeys : list of int
-
summary
(save=False)¶
-