# set up logger logger = log.get_logger('amanda') # load target and comparison observations with open(cfg_path) as f: cfg = json.load(f) # user, hardcode for now user = cfg['user'] # min obs altitude min_obs_alt = float(cfg['min_obs_alt']) # seo observatory = Observatory(cfg['observatory']['code'], cfg['observatory']['latitude'], cfg['observatory'] ['longitude'], cfg['observatory']['altitude'], cfg['observatory']['timezone']) # init seo telescope telescope = Telescope(cfg['simulate']) # pause time while waiting for object to become available delay_time = cfg['delay_time'] # build main asteroid observation observation_json = cfg['observations'] target_json = observation_json['target'] sequence_json = observation_json['sequences']['main'] stacks_json = sequence_json['stacks'] # build target target = Target.from_name( target_json['name'], observatory, target_json['type'], target_json.get('ra_offset'), target_json.get('dec_offset'))
logger = log.setup_custom_logger('asterizer') # list of observations input_fname = '/home/mcnowinski/seo/nebulizer/asteroids.txt' # simulate? set to True simulate = False # time between checks for object observability in seconds delay_time = 30 # min time available for background observations in seconds min_background_time = 10 * 60 # 10 minutes # seo observatory = Observatory('G52', 38.2886, -122.50400, 8, 'US/Pacific') # seo telescope telescope = Telescope(simulate) # default min observation alt in degrees min_obs_alt = 30.0 # list of observations observations = [] # init the scheduler scheduler = Scheduler(observatory) # read in observations from file with open(input_fname) as f: