예제 #1
0
파일: asterizer.py 프로젝트: tomsachen/seo
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:
    inputs = f.readlines()
inputs = [x.strip() for x in inputs if not x.startswith('#')]

# user,object,exp,bin,filter,count
num_targets = 0
for input in inputs:
    input = input.split(',')
    user = input[0]
    name = input[1]
    exposure = input[2]
    binning = input[3]
    filters = input[4].split(' ')
예제 #2
0
target = Target('sophiavlahakis.M83', '13 37 00', '-29 52 02')
sequence = Sequence([Stack(40, 'clear', 2, 5), Stack(40, 'r-band', 2, 5), Stack(40, 'h-alpha', 2, 5)], 1)
observations.append(Observation(observatory, target, sequence, min_obs_alt, user))

target = Target('mroussi.M42', '05 35 17', '-05 23 25')
sequence = Sequence([Stack(30, 'g-band', 2, 1), Stack(30, 'r-band', 2, 1), Stack(30, 'i-band', 2, 1)], 1)
observations.append(Observation(observatory, target, sequence, min_obs_alt, user))

target = Target('oliviapalid.Neptune', '23 10 31', '-06 21 03')
sequence = Sequence([Stack(300, 'g-band', 2, 2), Stack(300, 'i-band', 2, 2)], 1)
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() 

#for obs in observations:
#    print obs.toString()

if next_observation:
    print next_observation.toString()

#wait for sun to set
telescope.checkSun(True)

count = 0 
while next_observation != None:
예제 #3
0
#PN M 1-8
#define the target
target = Target('PN M 1-8', '6:53:33.7949', '3:08:26.9592')
#build image stack
stack = Stack(120, 'r-band', 2, 5)
#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()
예제 #4
0
파일: hocusfocus.py 프로젝트: tomsachen/seo
    name = ref_star_data[0]
    ra = ref_star_data[1]
    dec = ref_star_data[2]
    target = Target(name, ra, dec)
    observations.append(
        Observation(observatory, target, sequence, min_obs_alt, user))

telescope.slackdebug('Starting hocusfocus...')

# wait for sun to set
telescope.checkSun(True)

# find the best target (currently highest in the sky)
# this is overly complicated, but I know it works ;)
# start up the scheduler
scheduler = Scheduler(observatory, observations)
telescope.slackdebug('Identifying calibration star...')
target_observation = scheduler.whatsHighest()

if target_observation:
    logger.debug(target_observation.toString())
else:
    logger.error('No target found. Aborted.')
    sys.exit(1)

telescope.slackdebug('Calibration star is %s.' %
                     target_observation.target.getName())

# check clouds
telescope.checkClouds()
예제 #5
0
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:
    inputs = f.readlines()
inputs = [x.strip() for x in inputs if not x.startswith('#')]

# [email protected]	General	NGC 3941	240	1	clear, dark, u-band, g-band, r-band, i-band	2	No
num_targets = 0
for input in inputs:
    input = input.split('\t')
    user = input[0].replace('@', '.')
    name = input[2]
    exposure = input[3]
    count = input[4]
    filters = input[5].split(',')
예제 #6
0
파일: curverizer.py 프로젝트: tomsachen/seo
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)

input = [
    'mcnowinski', 'Solar System', '3982', 120, 1, 'clear', 2,
    Sequence.CONTINUOUS
]

user = input[0].replace('@', '.')
obstype = input[1]
name = input[2]
exposure = input[3]
count = input[4]
filters = input[5].split(',')
binning = input[6]
repeat = input[7]
if obstype == "Solar System":