Exemple #1
0
#!/usr/bin/env python

# create an observation centered at the north ecliptic pole (midlatitude)

# noinspection PyUnresolvedReferences
from SPyFFI.Observation import Observation, default

# start from the default settings
inputs = default

inputs['camera']['label'] = 'newtest'
inputs['catalog']['name'] = 'sky'
inputs['expose']['jitterscale'] = 100.0
inputs['expose']['skipcosmics'] = True
inputs['observation']['cadencestodo'] = {1800: 9}  # , 120:16, 1800:16}
o = Observation(inputs)

# o.create()
# (this links closely to cadences to do)
# stamps should be a dictionary, with cadences as keys
# if a cadence's entry is:
#   None        -- a full-frame image will be produced
#   an integer  -- this number of postage stamps will be randomly places
#   a string    -- this will be interpreted as a filename pointing to a
#                   three-column ascii text file to define where the stamps
#                   should be placed. the columns should be:
#                       [1] RA (in degrees)
#                       [2] Dec (in degrees)
#                       [3] radius (in pixels) of postage stamp
inputs['camera']['stamps'] = {2:None, 120:20, 1800:None}

# a dictionary, like those above
# should exposures of a particular cadence be compressed?
inputs['expose']['compress'] = {2:True, 120:True, 1800:False}




'''
------------_--------------_--------------_--------------_--------------_-------
finally, create an observation object, using all these inputs, and make images!
------------_--------------_--------------_--------------_--------------_-------
'''
# generate the observation object
o = Observation(inputs)
# use that object to perform all the exposures
o.create()
Exemple #3
0
#!/usr/bin/env python

# create an observation centered at the north ecliptic pole (midlatitude)

# noinspection PyUnresolvedReferences
from SPyFFI.Observation import Observation, default

# start from the default settings
inputs = default

inputs['camera']['dirprefix'] = 'tests/'
inputs['camera']['label'] = 'compresstest'
inputs['catalog']['name'] = 'testpattern'
inputs['camera']['subarray'] = None
inputs['expose']['compress'][2] = True
inputs['expose']['compress'][120] = True
inputs['expose']['skipcosmics'] = True
inputs['observation']['cadencestodo'] = { 2:2, 120:2, 1800:2}
o = Observation(inputs)

o.create()