Beispiel #1
0
def update_eph_l1():
    """
    update eph L1 related data
    input: none
    output: <out_dir>/<msid>_full_data_<year>.fits
    """
    t_file = 'sce1300_full_data_*.fits*'
    out_dir = deposit_dir + 'Comp_save/Compephkey/'

    ifile = house_keeping + 'msid_list_ephkey'
    data = mcf.read_data_file(ifile)
    msid_list = []
    for ent in data:
        atemp = re.split('\s+', ent)
        msid_list.append(atemp[0])

    [tstart, tstop, year] = ecf.find_data_collecting_period(out_dir, t_file)
    #
    #--- update the data
    #
    get_data(tstart, tstop, year, msid_list, out_dir)
    #
    #--- zip the fits file from the last year at the beginning of the year
    #
    ecf.check_zip_possible(out_dir)
Beispiel #2
0
def update_acis_ctemp():
    """
    update acis temp data in C
    input: none
    output: <out_dir>/<msid>_full_data_<year>fits
    """

    t_file  = '1cbat_full_data_*.fits*'
    out_dir = deposit_dir + '/Comp_save/Compaciscent/'

    ifile = house_keeping + 'msid_list_compaciscent'
    data  = ecf.read_file_data(ifile)
    acis_list = []
    for ent in data:
        atemp = re.split('\s+', ent)
        acis_list.append(atemp[0])



    [tstart, tstop, year] = ecf.find_data_collecting_period(out_dir, t_file)

    get_data(tstart, tstop, year, acis_list, out_dir)
#
#--- zip the fits file from the last year at the beginning of the year
#
    ecf.check_zip_possible(out_dir)
def update_grad_data():
    """
    update grad related data in full resolution
    input:  none
    output: <out_dir>/<msid>_full_data_<year>.fits
    """
    t_file = 'hcapgrd1_full_data_*.fits*'
    out_dir = deposit_dir + '/Grad_save/'
    tdir = out_dir + 'Gradcap/'
    #
    #--- read grad group name
    #
    gfile = house_keeping + 'grad_list'
    grad_list = mcf.read_data_file(gfile)

    [tstart, tstop, year] = ecf.find_data_collecting_period(tdir, t_file)

    get_data(tstart, tstop, year, grad_list, out_dir)
Beispiel #4
0
def update_acis_power():
    """
    update acis electric pwer data
    input:  none
    output: <out_dir>/1dppwra_full_data_<year>.fits, <out_dir>/1dppwrb_full_data_<year>fits
    """
    t_file = '1dppwra_full_data_*.fits*'
    out_dir = deposit_dir + 'Comp_save/Compacispwr/'

    [tstart, tstop, year] = ecf.find_data_collecting_period(out_dir, t_file)
    #
    #--- update the data
    #
    get_data(tstart, tstop, year, out_dir)
    #
    #--- zip the fits file from the last year at the beginning of the year
    #
    ecf.check_zip_possible(out_dir)
Beispiel #5
0
def update_sim_offset():
    """
    update sim offset data
    input:  none
    output: <out_dir>/Comp_save/Compsimoffset/<msid>_full_data_<year>.fits
    """
    t_file  = 'flexadif_full_data_*.fits*'
    out_dir = deposit_dir + 'Comp_save/Compsimoffset/'

    [tstart, tstop, year] = ecf.find_data_collecting_period(out_dir, t_file)
#
#--- update the data
#
    get_data(tstart, tstop, year, out_dir)
#
#--- zip the fits file from the last year at the beginning of the year
#
    ecf.check_zip_possible(out_dir)
Beispiel #6
0
def update_compgradkodak():
    """
    update compgradkodak related data sets
    input: none
    output: <out_dir>/<msid>_fill_data_<year>.fits
    """
    t_file = 'obaavg_full_data_*.fits*'
    out_dir = deposit_dir + '/Comp_save/Compgradkodak/'

    [tstart, tstop, year] = ecf.find_data_collecting_period(out_dir, t_file)

    print "Period: " + str(tstart) + '<-->' + str(tstop) + ' in Year: ' + str(
        year)

    get_data(tstart, tstop, year, out_dir)
    #
    #--- zip the fits file from the last year at the beginning of the year
    #
    ecf.check_zip_possible(out_dir)