Scorer¶
-
class
astroplan.Scorer(blocks, observer, schedule, global_constraints=[])[source]¶ Bases:
objectReturns scores and score arrays from the evaluation of constraints on observing blocks
Parameters: blocks : list of
ObservingBlockobjectslist of blocks that need to be scored
observer :
Observerthe observer
schedule :
ScheduleThe schedule inside which the blocks should fit
global_constraints : list of
Constraintobjectsany
Constraintthat applies to all the blocksMethods Summary
create_score_array([time_resolution])this makes a score array over the entire schedule for all of the from_start_end(blocks, observer, start_time, …)for if you don’t have a schedule/ aren’t inside a scheduler Methods Documentation
-
create_score_array(time_resolution=<Quantity 1.0 min>)[source]¶ this makes a score array over the entire schedule for all of the blocks and each
Constraintin the .constraints of each block and in self.global_constraints.Parameters: time_resolution :
Quantitythe time between each scored time
Returns: score_array :
ndarrayarray with dimensions (# of blocks, schedule length/
time_resolution
-