def do_rot(transfer=False): ngc6633 = OpenCluster(objectname='NGC 6633', uname='NGC 6633 rot', obsmode='rot') ngc6633.title = 'SOCS' ngc6633.abstract = 'Photometric monitoring of open stellar clusters' ngc6633_subframes = ngc6633.plan_wifsip(nfields=4) import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.set_aspect(1.) for sf in ngc6633_subframes: print sf.uname sf.plot(ax) sf.tycho() sf.tofile(config.projectpath + 'submit/') if transfer: sf.transfer() xmin, xmax = plt.xlim() plt.xlim(xmax, xmin) #plt.show() plt.savefig(config.plotpath + 'ngc6633submit.pdf') plt.close()
def do_cmd(transfer=False): m48 = OpenCluster(objectname='M 48', uname='M 48 BVR', obsmode='BVR') m48.title = 'SOCS' m48.abstract = 'Photometric monitoring of open stellar clusters' m48_subframes = m48.plan_wifsip(nfields=5) for sf in m48_subframes: print sf.uname sf.tofile(config.projectpath) if transfer: sf.transfer()
def do_phot(transfer=False): ngc2281phot = OpenCluster(objectname='NGC 2281', obsmode='UBVRI') ngc2281phot.title = 'SOCS' ngc2281phot.startdate = datetime.datetime(2017, 4, 26) ngc2281phot.enddate = datetime.datetime(2017, 5, 13) ngc2281phot.abstract = 'Photometric monitoring of open stellar clusters' ngc2281phot_subframes = ngc2281phot.plan_wifsip(nfields=5) for sf in ngc2281phot_subframes: print sf.uname, sf.duration sf.tofile(config.projectpath) if transfer: sf.transfer()
def do_cmd(self): obs_cmd = OpenCluster(self.objectname, obsmode='BVR') obs_cmd.title = 'SOCS' obs_cmd.abstract = 'Photometric monitoring of open stellar clusters' obs_cmd_subframes = obs_cmd.plan_wifsip(self.nfields) obs_cmd_group = ClusterGroup(obs_cmd) for sf in obs_cmd_subframes: print(sf.uname) sf.tofile(self.projectpath) obs_cmd_group.add_daughter(sf.uname) if self.transfer: sf.transfer() obs_cmd_group.tofile(self.projectpath) if self.transfer: obs_cmd_group.transfer(self.projectpath)
def do_cmd(transfer=False): m67cmd = OpenCluster(objectname='M 67', uname='M 67 BVR', obsmode='BVR') m67cmd.title = 'SOCS' m67cmd.abstract = 'Photometric monitoring of open stellar clusters' m67cmd_subframes = m67cmd.plan_wifsip(nfields=5) m67cmd_group = ClusterGroup(m67cmd) for sf in m67cmd_subframes: print(sf.uname) sf.tofile(config.projectpath) m67cmd_group.add_daughter(sf.uname) if transfer: sf.transfer() m67cmd_group.tofile(config.projectpath) if transfer: m67cmd_group.transfer()
def do_cmd(transfer=False): ngc2422cmd = OpenCluster(objectname='NGC 2422', uname='NGC 2422 BVR', obsmode='BVR') ngc2422cmd.title = 'SOCS' ngc2422cmd.abstract = 'Photometric monitoring of open stellar clusters' ngc2422cmd_subframes = ngc2422cmd.plan_wifsip(nfields=5) ngc2422cmd_group = ClusterGroup(ngc2422cmd) for sf in ngc2422cmd_subframes: print sf.uname sf.tofile(config.projectpath) ngc2422cmd_group.add_daughter(sf.uname) if transfer: sf.transfer() ngc2422cmd_group.tofile(config.projectpath) if transfer: ngc2422cmd_group.transfer(config.projectpath)
def do_frot(transfer=False): ngc6940frot = OpenCluster(objectname='NGC 6940', obsmode='frot') ngc6940frot.mode['pernight'] = 6 ngc6940frot.title = 'SOCS' ngc6940frot.abstract = 'Photometric monitoring of open stellar clusters' ngc6940frot_subframes = ngc6940frot.plan_wifsip(nfields=4) ngc6940frot_group = ClusterGroup(ngc6940frot) for sf in ngc6940frot_subframes: print(sf.uname, sf.duration) sf.tofile(config.projectpath) ngc6940frot_group.add_daughter(sf.uname) if transfer: sf.transfer() ngc6940frot_group.tofile(config.projectpath) if transfer: ngc6940frot_group.transfer()
def do_cmd(transfer=False): ngc1528cmd = OpenCluster(objectname='NGC 1528', obsmode='BVR') ngc1528cmd.title = 'SOCS' ngc1528cmd.abstract = 'Photometric monitoring of open stellar clusters' ngc1528cmd.startdate = datetime.datetime(2017, 9, 30) ngc1528cmd.enddate = datetime.datetime(2017, 10, 20) ngc1528cmd_subframes = ngc1528cmd.plan_wifsip(nfields=5) ngc1528cmd_group = ClusterGroup(ngc1528cmd) for sf in ngc1528cmd_subframes: print(sf.uname) sf.tofile(config.projectpath) ngc1528cmd_group.add_daughter(sf.uname) if transfer: sf.transfer() ngc1528cmd_group.tofile(config.projectpath) if transfer: ngc1528cmd_group.transfer()
def do_rot(self): obs_rot = OpenCluster(self.objectname, obsmode='rot') obs_rot.title = 'SOCS' obs_rot.abstract = 'Photometric monitoring of open stellar clusters' # we do not need a central field rotfields = self.nfields if self.nfields == 5: rotfields = 4 obs_rot_subframes = obs_rot.plan_wifsip(rotfields) obs_rot_group = ClusterGroup(obs_rot) for sf in obs_rot_subframes: print(sf.uname) sf.tofile(self.projectpath) obs_rot_group.add_daughter(sf.uname) if self.transfer: sf.transfer() obs_rot_group.tofile(self.projectpath) if self.transfer: obs_rot_group.transfer(self.projectpath)
def do_rot(transfer=False): ngc2281rot = OpenCluster(objectname='NGC 2281', uname='NGC 2281 rot', obsmode='rot') ngc2281rot.title = 'SOCS' ngc2281rot.abstract = 'Photometric monitoring of open stellar clusters' ngc2281rot_subframes = ngc2281rot.plan_wifsip(nfields=4) ngc2281rot_group = ClusterGroup(ngc2281rot) ngc2281rot_group.startdate = datetime.datetime(2016, 8, 20) ngc2281rot_group.enddate = datetime.datetime(2017, 5, 13) for sf in ngc2281rot_subframes: print sf.uname, sf.duration sf.tofile(config.projectpath) ngc2281rot_group.add_daughter(sf.uname) if transfer: sf.transfer() ngc2281rot_group.tofile(config.projectpath) if transfer: ngc2281rot_group.transfer()
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()
''' Created on Apr 12, 2013 @author: jwe <*****@*****.**> ''' if __name__ == '__main__': import matplotlib matplotlib.use('WXAgg') from opencluster import OpenCluster import time ngc6819 = OpenCluster(objectname='NGC 6819', uname='NGC6819 BV', obsmode='bvsl20') ngc6819.title = 'SOCS' ngc6819.abstract = 'Photometric monitoring of open stellar clusters' ngc6819_subframes = ngc6819.plan_wifsip(nfields=5) import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.set_aspect(1.) #ngc6819.mode['timeout'] = 5030000.0 # redoing two fields in BVI for sf in ngc6819_subframes: print sf.uname time.sleep(1) # otherwise submit.jnlp gets confused print sf.timeout sf.tofile('/work2/jwe/NGC6819') sf.transfer()