Пример #1
0
    def test_CO_type1_j32():

        import os
        reload(pl)

        data_location = '/d/bip3/ezbc/planck/planck_raw_data/'
        output_dir = '/d/bip3/ezbc/planck/tests/'

        (data, header) = pl.get_data(data_location=data_location,
                data_type='CO-Type1', longitude_range = (longitude_range),
                latitude_range=(latitude_range), field = 8, resolution = 0.1,
                cut_last_pixel = False, verbose = True)

        # Write the data to FITS format
        pf.writeto(output_dir + 'co_type1_j32.fits', data, header = header,
                clobber = True, output_verify = 'fix')
Пример #2
0
    def test_ebv():

        import os
        reload(pl)

        data_location = '/d/bip3/ezbc/planck/planck_raw_data/'
        output_dir = '/d/bip3/ezbc/planck/tests/'

        (data, header) = pl.get_data(data_location = data_location,
                data_type = 'Dust Opacity', longitude_range = (145,150),
                latitude_range = (-10,-5), field = 2, resolution = 0.1,
                cut_last_pixel = False, verbose = True, dr_version = 2)

        # Write the data to FITS format
        pf.writeto(output_dir + 'ebv.fits', data, header = header, clobber
                = True, output_verify = 'fix')
Пример #3
0
    def test_CO_type3():

        import os
        reload(pl)

        data_location = '/d/bip3/ezbc/planck/planck_raw_data/'
        output_dir = '/d/bip3/ezbc/planck/tests/'

        (data, header) = pl.get_data(data_location=data_location,
                                     data_type='CO-Type3',
                                     longitude_range=(longitude_range),
                                     latitude_range=(latitude_range),
                                     field=0,
                                     resolution=0.1,
                                     cut_last_pixel=False,
                                     verbose=True)

        # Write the data to FITS format
        pf.writeto(output_dir + 'co_type3.fits',
                   data,
                   header=header,
                   clobber=True,
                   output_verify='fix')
Пример #4
0
    def test_ebv():

        import os
        reload(pl)

        data_location = '/d/bip3/ezbc/planck/planck_raw_data/'
        output_dir = '/d/bip3/ezbc/planck/tests/'

        (data, header) = pl.get_data(data_location=data_location,
                                     data_type='Dust Opacity',
                                     longitude_range=(145, 150),
                                     latitude_range=(-10, -5),
                                     field=2,
                                     resolution=0.1,
                                     cut_last_pixel=False,
                                     verbose=True,
                                     dr_version=2)

        # Write the data to FITS format
        pf.writeto(output_dir + 'ebv.fits',
                   data,
                   header=header,
                   clobber=True,
                   output_verify='fix')