def do_rot(transfer=False): ngc2422rot = OpenCluster(objectname='NGC 2422', uname='NGC 2422 rot', obsmode='rot') ''' override priority, so it doesn't overrule ngc2323 ''' ngc2422rot.priority = 0.8 ngc2422rot.title = 'SOCS' ngc2422rot.abstract = 'Photometric monitoring of open stellar clusters' ngc2422rot_subframes = ngc2422rot.plan_wifsip(nfields=4) ngc2422rot_group = ClusterGroup(ngc2422rot) for sf in ngc2422rot_subframes: print sf.uname sf.tofile(config.projectpath) ngc2422rot_group.add_daughter(sf.uname) if transfer: sf.transfer() ngc2422rot_group.tofile(config.projectpath) if transfer: ngc2422rot_group.transfer()
def do_rot(transfer=False): import datetime ngc6940rot = OpenCluster(objectname='NGC 6940', obsmode='rot') ngc6940rot.priority = 0.5 ngc6940rot.mode['pernight'] = 6 ngc6940rot.title = 'SOCS' ngc6940rot.abstract = 'Photometric monitoring of open stellar clusters' ngc6940rot_subframes = ngc6940rot.plan_wifsip(nfields=4) ngc6940rot_group = ClusterGroup(ngc6940rot) ngc6940rot_group.startdate = datetime.datetime(2017, 4, 15) ngc6940rot_group.enddate = datetime.datetime(2017, 12, 29) for sf in ngc6940rot_subframes: print(sf.uname, sf.duration) sf.tofile(config.projectpath) ngc6940rot_group.add_daughter(sf.uname) if transfer: sf.transfer() ngc6940rot_group.tofile(config.projectpath) if transfer: ngc6940rot_group.transfer()