Exemplo n.º 1
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on Oct 17, 2017

@author: Joerg Weingrill <*****@*****.**>
'''
from opencluster import OpenCluster
from astropy.coordinates import SkyCoord  # @UnresolvedImport

if __name__ == '__main__':
    iriscoord = SkyCoord('02h05m4.4s', '+21d24m06.1s', frame='icrs')

    Iris = OpenCluster(objectname='Iris',
                       obsmode='uvby',
                       ra=iriscoord.ra.degree,
                       dec=iriscoord.dec.degree)
    Iris.startdate = '2017-10-30'
    Iris.enddate = '2017-10-31'
    Iris.tofile('/work2/jwe/SOCS/')
Exemplo n.º 2
0
def do_frot(cluster, transfer=False):
    ngc6709frot = OpenCluster(objectname=cluster, obsmode='frot')
    ngc6709frot.tofile(config.projectpath)
    if transfer:
        ngc6709frot.transfer()
Exemplo n.º 3
0
def do_bvr(cluster, transfer=False):

    ngc6709 = OpenCluster(objectname=cluster, obsmode='BVR')
    ngc6709.tofile(config.projectpath)
    if transfer:
        ngc6709.transfer()
Exemplo n.º 4
0
    matplotlib.use('WXAgg')
    import matplotlib.pyplot as plt
    from opencluster import OpenCluster
    import time

    ngc2422 = OpenCluster(objectname='NGC 2422',
                          uname='NGC 2422 BV',
                          obsmode='bvsl20')
    print ngc2422.object['RA'], ngc2422.object['Dec']
    ngc2422_subframes = ngc2422.plan_wifsip(nfields=5)

    fig = plt.figure()
    ax = fig.add_subplot(111)
    ax.set_aspect(1.)

    for sf in ngc2422_subframes:
        print sf.uname
        sf.plot(ax)
        sf.tycho()
        time.sleep(1)  # otherwise submit.jnlp gets confused
        sf.tofile('/work2/jwe/NGC2422')
        sf.transfer()
    ngc2422.plot(ax)
    ngc2422.tycho()
    time.sleep(1)  # otherwise submit.jnlp gets confused
    ngc2422.tofile('/work2/jwe/NGC2422')
    ngc2422.transfer()
    xmin, xmax = plt.xlim()
    plt.xlim(xmax, xmin)
    plt.show()