#build image (stack) sequence sequence = Sequence([stack], 1) #minimum altitude to observe this target min_obs_alt = 30.0 #add this observations to the list observations.append(Observation(observatory, target, sequence, min_obs_alt, user)) telescope.slackdebug('Starting nebulizer...') #start up the scheduler scheduler = Scheduler(observatory, observations) #loop through the observations next_observation = scheduler.whatsNext() in_between_observation = scheduler.whatsInBetween() #for obs in observations: # print obs.toString() if next_observation: print next_observation.toString() if in_between_observation: print in_between_observation.toString() #wait for sun to set telescope.checkSun(True) count = 0 while next_observation != None:
filter = filter.strip() # skip the darks for now if filter.lower() != 'dark': stacks.append( Stack(float(exposure), filter, int(binning), int(count))) observations.append( Observation(observatory, target, Sequence(stacks, repeat), min_obs_alt, user)) telescope.slackdebug('Starting curverizer...') # add observations scheduler.addObservations(observations) # loop through the observations asteroid_observation = scheduler.whatsInBetween() if asteroid_observation: logger.debug(asteroid_observation.toString()) else: logger.error('Target (%s) is not observable.' % asteroid_observation.target.getName()) sys.exit(1) # wait for sun to set telescope.checkSun(True) # wait for target to be available while Time.now() < asteroid_observation.min_obs_time: wait_time_s = (asteroid_observation.min_obs_time - Time.now()).sec telescope.slackdebug(