strategy Package

strategy Package

class hide.strategy.CoordSpec(time, alt, az, ra, dec)

Bases: tuple

alt

Alias for field number 1

az

Alias for field number 2

dec

Alias for field number 4

ra

Alias for field number 3

time

Alias for field number 0

center Module

Created on Dec 9, 2014

author: jakeret

hide.strategy.center.load_strategy(ctx)[source]

Creates a dummy scanning strategy by always centering on RA/DEC 0/0

Parameters:ctx – The ctx instance with the paramterization
Returns strategy:
 A dummy scanning strategy

crosshair Module

Created on Jan 7, 2015

author: jakeret

hide.strategy.crosshair.load_strategy(ctx)[source]

Creates a crosshair in RA/DEC scanning strategy

Parameters:ctx – The ctx instance with the parameterization
Returns strategy:
 A crosshair scanning strategy

drift_scan Module

Created on Jan 15, 2015

author: jakeret

hide.strategy.drift_scan.load_strategy(ctx)[source]

Creates a scanning strategy that uses drift mode i.e. the telescope stares at the same position for 24 hours and then changes the altiude by a certain angle

Parameters:ctx – The ctx instance with the paramterization
Returns strategy:
 A list of CoordSpec with the scanning strategy

full_sky Module

Created on Jan 15, 2015

author: jakeret

hide.strategy.full_sky.load_strategy(ctx)[source]

Creates a scanning strategy that covers the full sky

Parameters:ctx – The ctx instance with the paramterization
Returns strategy:
 A list of CoordSpec with the scanning strategy for the full sky

scheduler Module

Created on Mar 24, 2016

author: seehars

class hide.strategy.scheduler.ScheduleEntry(date, az, el, mode)[source]

Bases: object

day()[source]
delta(other)[source]
is_survey()[source]
hide.strategy.scheduler.load_strategy(ctx)[source]

Creates a scanning strategy from a scheduler file.

Parameters:ctx – The ctx instance with the path to the scheduler file
Returns strategy:
 A list of CoordSpec with the scanning strategy
hide.strategy.scheduler.parse_schedule(path, strategy_start)[source]

Parses a scheduler file :param path: the path to the scheduler file :param strategy_start: start date of the strategy

Returns schedule_entries:
 list of ScheduleEntry
hide.strategy.scheduler.process_schedule(schedule, step_size, strategy_start, strategy_end, obs)[source]

Processes a list of schedule entries :param schedule: the list of schedule entries :param step_size: the step size to use :param strategy_start: start date of the strategy :param strategy_end: end date of the strategy :param obs: telescope position

Returns strategy, calibration_days:
 a list of CoordSpec and a dict for the calibration days

scheduler_virtual Module

Created on May 4, 2016

author: jakeret

hide.strategy.scheduler_virtual.load_strategy(ctx)[source]

Creates a scanning strategy from a scheduler file.

Parameters:ctx – The ctx instance with the path to the scheduler file
Returns strategy:
 A list of CoordSpec with the scanning strategy
hide.strategy.scheduler_virtual.replace_calibrations(schedule, obs)[source]