Пример #1
0
    frequency_range  = band,
    start_date       = ephem.Date(current_date).tuple(),
    duration_seconds = target_duration_s,
    stations         = stations,
    clock_mhz        = 200,
    bit_mode         = 8,
    backend          = backend))

        
        
current_date += target_duration_s*ephem.second + 61*ephem.second

        
observations.append(momxml.Observation(
    beam_list        = [momxml.Beam(post_cal, target_subbands)],
    antenna_set      = antenna_set,
    frequency_range  = band,
    start_date       = ephem.Date(current_date).tuple(),
    duration_seconds = cal_duration_s,
    stations         = stations,
    clock_mhz        = 200,
    bit_mode         = 8,
    backend          = backend))


date_folder = momxml.Folder(children=observations, name='EoR-%s' % target.name,
                            description = 'EoR-%s' % target.name,
                            grouping_parent = True)
main_folder = momxml.Folder(children=[date_folder], name='EoR-NCP', description='EoR NCP observations', mom_id=425513)
print momxml.xml([main_folder], 'LC2_019')
Пример #2
0
                                           integration_time_seconds = int_s)

        return momxml.Observation(
            beam_list        = [momxml.Beam(target, subbands_main, storage_cluster='CEP4'),
                                momxml.Beam(auxiliary, subbands_aux, storage_cluster='CEP4')],
                                antenna_set      = antenna_set,
                                frequency_range  = band,
                                start_date       = ephem.Date(current_date).tuple(),
                                duration_seconds = target_duration_s,
                                stations         = stations,
                                clock_mhz        = 200,
                                backend = backend,
                                bit_mode         = 8,
                                initial_status   = 'approved')

observations = []
if len(sys.argv) == 1:
    for start_search_0ut in open('schedule-eor-3c196.txt').readlines():
        observations.append(single_observation(start_search_0ut))
else:
    for start_search_0ut in sys.argv[1:]:
        observations.append(single_observation(start_search_0ut))
    
obs_folder = momxml.Folder(name        = 'EoR-3C196',
                           description = 'EoR 3C 196 observations',
                           children    = observations,
                           grouping_parent = True)

with open('eor-3c196-lc7_022-20170127.xml', 'w') as output:
    output.write(momxml.xml([obs_folder], 'LC7_022', description='The LOFAR EoR project'))
Пример #3
0
        frequency_range=band,
        start_date=ephem.Date(current_date).tuple(),
        duration_seconds=target_duration_s,
        stations=stations,
        clock_mhz=200,
        bit_mode=8,
        backend=backend))

current_date += target_duration_s * ephem.second + 61 * ephem.second

observations.append(
    momxml.Observation(beam_list=[momxml.Beam(post_cal, target_subbands)],
                       antenna_set=antenna_set,
                       frequency_range=band,
                       start_date=ephem.Date(current_date).tuple(),
                       duration_seconds=cal_duration_s,
                       stations=stations,
                       clock_mhz=200,
                       bit_mode=8,
                       backend=backend))

date_folder = momxml.Folder(children=observations,
                            name='EoR-%s' % target.name,
                            description='EoR-%s' % target.name,
                            grouping_parent=True)
main_folder = momxml.Folder(children=[date_folder],
                            name='EoR-NCP',
                            description='EoR NCP commissioning observations',
                            mom_id=182243)
print momxml.xml([main_folder], 'LC0_019')
Пример #4
0
sys.stderr.write('MAIN: '+str(target) + '\n')
for cal in cal_fields:
    sys.stderr.write(' CAL: '+str(cal)+ '\n')


observations = []
current_date = transit_date - 0.5*target_duration_s*ephem.second

backend = momxml.BackendProcessing(channels_per_subband     = chan,
                                   integration_time_seconds = int_s)

observations.append(momxml.Observation(
        beam_list        = [momxml.Beam(target, target_subbands)] + [momxml.Beam(field, cal_subbands) for field in cal_fields],
        antenna_set      = antenna_set,
        frequency_range  = band,
        start_date       = ephem.Date(current_date).tuple(),
        duration_seconds = target_duration_s,
        stations         = stations,
        clock_mhz        = 200,
        backend = backend,
        bit_mode         = 8))

obs_folder = momxml.Folder(name        = 'EoR-3C196',
                           description = 'EoR 3C 196 observations',
                           children    = observations,
                           grouping_parent = True,
                           mom_id      = 449283)

with open('eor-3c196-%d%02d%02d.xml' % (start_search_date.tuple()[0:3]), 'w') as output:
    output.write(momxml.xml([obs_folder], 'LC3_028'))
Пример #5
0
                                          dec_angle = dec_angle))

sys.stderr.write('MAIN: '+str(target) + '\n')
for cal in cal_fields:
    sys.stderr.write(' CAL: '+str(cal)+ '\n')


observations = []
current_date = transit_date - 0.5*target_duration_s*ephem.second

backend = momxml.BackendProcessing(channels_per_subband     = chan,
                                   integration_time_seconds = int_s)

observations.append(momxml.Observation(
        beam_list        = [momxml.Beam(target, target_subbands)] + [momxml.Beam(field, cal_subbands) for field in cal_fields],
        antenna_set      = antenna_set,
        frequency_range  = band,
        start_date       = ephem.Date(current_date).tuple(),
        duration_seconds = target_duration_s,
        stations         = stations,
        clock_mhz        = 200,
        backend = backend,
        bit_mode         = 8))

obs_folder = momxml.Folder(name        = 'EoR-3C196',
                           description = 'EoR 3C 196 observations',
                           children    = observations,
                           mom_id      = 322103)

print momxml.xml([obs_folder], 'LC1_039')
    frequency_range  = band,
    start_date       = ephem.Date(current_date).tuple(),
    duration_seconds = target_duration_s,
    stations         = stations,
    clock_mhz        = 200,
    bit_mode         = 8,
    backend          = backend))

        
        
current_date += target_duration_s*ephem.second + 61*ephem.second

        
observations.append(momxml.Observation(
    beam_list        = [momxml.Beam(post_cal, target_subbands)],
    antenna_set      = antenna_set,
    frequency_range  = band,
    start_date       = ephem.Date(current_date).tuple(),
    duration_seconds = cal_duration_s,
    stations         = stations,
    clock_mhz        = 200,
    bit_mode         = 8,
    backend          = backend))


date_folder = momxml.Folder(children=observations, name='EoR-%s' % target.name,
                            description = 'EoR-EU-%s' % target.name,
                            grouping_parent = True)
main_folder = momxml.Folder(children=[date_folder], name='EoR-NCP', description='EoR NCP observations', mom_id=322102)
print momxml.xml([main_folder], 'LC1_039')
Пример #7
0
        
        
current_date += target_duration_s*ephem.second + 61*ephem.second

        
observations.append(momxml.Observation(
    beam_list        = [momxml.Beam(post_cal, target_subbands)],
    antenna_set      = antenna_set,
    frequency_range  = band,
    start_date       = ephem.Date(current_date).tuple(),
    duration_seconds = cal_duration_s,
    stations         = stations,
    clock_mhz        = 200,
    bit_mode         = 8,
    backend          = backend))


date_folder = momxml.Folder(children=observations,
                            name='EoR-%s' % target.name,
                            description = 'EoR-%s' % target.name,
                            grouping_parent = True,
                            label = '0')

obs_folder = momxml.Folder(name        = 'EoR-ELAIS-N1',
                           description = 'ELAIS N1 observations for the EoR',
                           children    = [date_folder],
                           mom_id      = 260476)

print momxml.xml([obs_folder], 'LC0_019')
sys.stderr.write('MAIN: '+str(target) + '\n')
for field in aux_pointings:
    sys.stderr.write(' GRID: '+str(field)+ '\n')

all_fields = [target] + aux_pointings

observations = []
current_date = transit_date - 0.5*target_duration_s*ephem.second

backend = momxml.BackendProcessing(channels_per_subband     = chan,
                                   integration_time_seconds = int_s)

observations.append(momxml.Observation(
    beam_list        = [momxml.Beam(field, subbands) for field in all_fields],
    antenna_set      = antenna_set,
    frequency_range  = band,
    start_date       = ephem.Date(current_date).tuple(),
    duration_seconds = target_duration_s,
    stations         = stations,
    clock_mhz        = 200,
    backend          = backend,
    bit_mode         = 8))

obs_folder = momxml.Folder(name        = 'EoR-3C196',
                           description = 'EoR 3C 196 observations',
                           children    = observations,
                           mom_id      = 322103)

print momxml.xml([obs_folder], 'LC1_039')
Пример #9
0
current_date = transit_date - 0.5 * target_duration_s * ephem.second

backend = momxml.BackendProcessing(channels_per_subband=chan,
                                   integration_time_seconds=int_s)

observations.append(
    momxml.Observation(
        beam_list=[momxml.Beam(target, target_subbands)] +
        [momxml.Beam(field, aux_subbands) for field in cal_fields[1:]],
        antenna_set=antenna_set,
        frequency_range=band,
        start_date=ephem.Date(current_date).tuple(),
        duration_seconds=target_duration_s,
        stations=stations,
        clock_mhz=200,
        backend=backend,
        bit_mode=8,
        initial_status='approved'))

obs_folder = momxml.Folder(name='EoR-3C196',
                           description='EoR 3C 196 observations',
                           children=observations,
                           grouping_parent=True)

with open('eor-3c196-vlbi-%d%02d%02d.xml' % (start_search_date.tuple()[0:3]),
          'w') as output:
    output.write(
        momxml.xml([obs_folder],
                   'LT5_009',
                   description='The LOFAR EoR project'))
Пример #10
0
for cal in cal_fields:
    sys.stderr.write(' CAL: '+str(cal)+ '\n')


observations = []
current_date = transit_date - 0.5*target_duration_s*ephem.second

backend = momxml.BackendProcessing(channels_per_subband     = chan,
                                   integration_time_seconds = int_s)

observations.append(momxml.Observation(
        beam_list        = [momxml.Beam(target, target_subbands)] + [momxml.Beam(field, cal_subbands) for field in cal_fields],
        antenna_set      = antenna_set,
        frequency_range  = band,
        start_date       = ephem.Date(current_date).tuple(),
        duration_seconds = target_duration_s,
        stations         = stations,
        clock_mhz        = 200,
        backend = backend,
        bit_mode         = 8))

start_tuple = ephem.Date(current_date).tuple()

folder=momxml.Folder(name='3C196:11h%04d%02d%02d-%02d%02d' % start_tuple[:5],
                     children=observations,
                     grouping_parent=True)

with open('cobalt-3c196-%04d%02d%02d-%02d%02d.xml' % start_tuple[:5], mode='w') as out:
    out.write(momxml.xml([folder],
                         project='COBALT'))
Пример #11
0
    bit_mode         = 8,
    backend          = backend,
    initial_status   = 'approved'))

        
        
current_date += target_duration_s*ephem.second + 61*ephem.second

        
observations.append(momxml.Observation(
    beam_list        = [momxml.Beam(post_cal, target_subbands)],
    antenna_set      = antenna_set,
    frequency_range  = band,
    start_date       = ephem.Date(current_date).tuple(),
    duration_seconds = cal_duration_s,
    stations         = stations,
    clock_mhz        = 200,
    bit_mode         = 8,
    backend          = backend,
    initial_status   = 'approved'))


date_folder = momxml.Folder(children=observations, name='EoR-%s' % target.name,
                            description = 'EoR-%s' % target.name,
                            grouping_parent = True)
main_folder = momxml.Folder(children=[date_folder], name='EoR-NCP', description='EoR NCP observations')


with open('eor-ncp-%d%02d%02d.xml' % (start_date.tuple()[0:3]), 'w') as output:
    output.write(momxml.xml([main_folder], 'LT5_009', description='The LOFAR EoR project'))
Пример #12
0
    ],
                              antenna_set=antenna_set,
                              frequency_range=band,
                              start_date=ephem.Date(current_date).tuple(),
                              duration_seconds=target_duration_s,
                              stations=stations,
                              clock_mhz=200,
                              backend=backend,
                              bit_mode=8,
                              initial_status='approved')


observations = []
if len(sys.argv) == 1:
    for start_search_0ut in open('schedule-eor-3c196.txt').readlines():
        observations.append(single_observation(start_search_0ut))
else:
    for start_search_0ut in sys.argv[1:]:
        observations.append(single_observation(start_search_0ut))

obs_folder = momxml.Folder(name='EoR-3C196',
                           description='EoR 3C 196 observations',
                           children=observations,
                           grouping_parent=True)

with open('eor-3c196-lc7_022-20170127.xml', 'w') as output:
    output.write(
        momxml.xml([obs_folder],
                   'LC7_022',
                   description='The LOFAR EoR project'))
Пример #13
0
        frequency_range=band,
        start_date=ephem.Date(current_date).tuple(),
        duration_seconds=target_duration_s,
        stations=stations,
        clock_mhz=200,
        bit_mode=8,
        backend=backend))

current_date += target_duration_s * ephem.second + 61 * ephem.second

observations.append(
    momxml.Observation(beam_list=[momxml.Beam(post_cal, target_subbands)],
                       antenna_set=antenna_set,
                       frequency_range=band,
                       start_date=ephem.Date(current_date).tuple(),
                       duration_seconds=cal_duration_s,
                       stations=stations,
                       clock_mhz=200,
                       bit_mode=8,
                       backend=backend))

date_folder = momxml.Folder(children=observations,
                            name='EoR-%s' % target.name,
                            description='EoR-%s' % target.name,
                            grouping_parent=True)
main_folder = momxml.Folder(children=[date_folder],
                            name='EoR-NCP',
                            description='EoR NCP observations',
                            mom_id=322102)
print momxml.xml([main_folder], 'LC1_039')
Пример #14
0
    sys.stderr.write(' CAL: ' + str(cal) + '\n')

observations = []
current_date = transit_date - 0.5 * target_duration_s * ephem.second

backend = momxml.BackendProcessing(channels_per_subband=chan,
                                   integration_time_seconds=int_s)

observations.append(
    momxml.Observation(
        beam_list=[momxml.Beam(target, target_subbands)] +
        [momxml.Beam(field, cal_subbands) for field in cal_fields],
        antenna_set=antenna_set,
        frequency_range=band,
        start_date=ephem.Date(current_date).tuple(),
        duration_seconds=target_duration_s,
        stations=stations,
        clock_mhz=200,
        backend=backend,
        bit_mode=8))

start_tuple = ephem.Date(current_date).tuple()

folder = momxml.Folder(name='3C196:11h%04d%02d%02d-%02d%02d' % start_tuple[:5],
                       children=observations,
                       grouping_parent=True)

with open('cobalt-3c196-%04d%02d%02d-%02d%02d.xml' % start_tuple[:5],
          mode='w') as out:
    out.write(momxml.xml([folder], project='COBALT'))
Пример #15
0
    stations         = stations,
    clock_mhz        = 200,
    bit_mode         = 8,
    backend          = backend))

        
        
current_date += target_duration_s*ephem.second + 61*ephem.second

        
observations.append(momxml.Observation(
    beam_list        = [momxml.Beam(post_cal, target_subbands)],
    antenna_set      = antenna_set,
    frequency_range  = band,
    start_date       = ephem.Date(current_date).tuple(),
    duration_seconds = cal_duration_s,
    stations         = stations,
    clock_mhz        = 200,
    bit_mode         = 8,
    backend          = backend))


date_folder = momxml.Folder(children=observations, name='EoR-%s' % target.name,
                            description = 'EoR-%s' % target.name,
                            grouping_parent = True)
main_folder = momxml.Folder(children=[date_folder], name='EoR-NCP', description='EoR NCP observations', mom_id=449282)


with open('eor-ncp-%d%02d%02d.xml' % (start_date.tuple()[0:3]), 'w') as output:
    output.write(momxml.xml([main_folder], 'LC3_028'))