telescope.checkClouds() telescope.getImageStacks(asteroid_main_observation, None, False) # do reference observations telescope.slackdebug("Performing reference observations...") telescope.slackdebug("Observing %s..." % (reference_observation.target.getName())) # check sun, clouds, slit, etc. telescope.checkSun() if telescope.is_cracked: telescope.checkSlit() telescope.checkAlt() telescope.checkClouds() # point the scope telescope.pinpointier(reference_observation) telescope.getImage(reference_observation) telescope.slackdebug("Reference observations complete.") # do reference observations telescope.slackdebug("Performing bracket observations...") telescope.slackdebug("Observing %s..." % (asteroid_bracket_observation.target.getName())) # check sun, clouds, slit, etc. telescope.checkSun() if telescope.is_cracked: telescope.checkSlit() telescope.checkAlt() telescope.checkClouds() # point the scope telescope.pinpointier(asteroid_bracket_observation) telescope.getImage(asteroid_bracket_observation)
telescope.checkSlit() telescope.checkAlt() telescope.checkClouds() if Time.now( ) >= next_observation.min_obs_time: # its time to look at this object count += 1 if not telescope.is_cracked: telescope.crackit() # perform observation telescope.slackdebug("Observations for %s are starting..." % (next_observation.target.getName())) # point the scope telescope.pinpointier(next_observation) # get the images telescope.getImage(next_observation) telescope.slackdebug("Observations for %s are complete." % (next_observation.target.getName())) scheduler.isDone(next_observation) # mark as complete else: wait_time_s = (next_observation.min_obs_time - Time.now()).sec telescope.slackdebug( 'The next observation (%s) will start in %d min (at %s)...' % (next_observation.target.getName(), wait_time_s / 60, next_observation.min_obs_time.iso[:-7])) time.sleep(delay_time) # if its been a while, check our target list again next_observation = scheduler.whatsNext() telescope.slackdebug('Asterizer complete. Performed %d observations.' % count)
telescope.checkSun() if telescope.is_cracked: telescope.checkSlit() telescope.checkAlt() telescope.checkClouds() if Time.now() >= next_observation.min_obs_time: #its time to look at this object count += 1 if not telescope.is_cracked: telescope.crackit() #perform observation telescope.slackdebug("Observations for %s are starting..."%(next_observation.target.getName())) #point the scope telescope.pinpoint(next_observation) #get the images telescope.getImage(next_observation) telescope.slackdebug("Observations for %s are complete."%(next_observation.target.getName())) scheduler.isDone(next_observation) #mark as complete else: wait_time_s = (next_observation.min_obs_time-Time.now()).sec telescope.slackdebug('The next observation (%s) will start in %d min (at %s)...'%(next_observation.target.getName(), wait_time_s/60, next_observation.min_obs_time.iso[:-7])) #should we do a background observation while we are waiting? if wait_time_s >= min_background_time: in_between_observation = scheduler.whatsInBetween() if in_between_observation != None: if not telescope.is_cracked: telescope.crackit() #perform observation telescope.slackdebug("Background observations for %s are starting..."%(in_between_observation.target.getName())) #point the scope telescope.pinpoint(in_between_observation)