示例#1
0
    def __init__(self, ):
        # - Allow ourselves to use any Downloader methods
        Downloader.__init__(self, )

        # - Local directory for saving data
        self.refcat_dir = self._fetch_refcat_data_directory()

        # - Anticipated filepath for compiled refcat code
        self.refcat_codename = 'refcat'
        self.refcat_filepath = os.path.join(self.refcat_dir,
                                            self.refcat_codename)

        # - Set of refcat catalogues on mast
        self.downloadable_files = {
            '16':
            'https://archive.stsci.edu/hlsps/atlas-refcat2/orig/hlsp_atlas-refcat2_atlas_ccd_00-m-16_multi_v1_cat.tbz',
            '17':
            'https://archive.stsci.edu/hlsps/atlas-refcat2/orig/hlsp_atlas-refcat2_atlas_ccd_16-m-17_multi_v1_cat.tbz',
            '18':
            'https://archive.stsci.edu/hlsps/atlas-refcat2/orig/hlsp_atlas-refcat2_atlas_ccd_17-m-18_multi_v1_cat.tbz',
            '19':
            'https://archive.stsci.edu/hlsps/atlas-refcat2/orig/hlsp_atlas-refcat2_atlas_ccd_18-m-19_multi_v1_cat.tbz',
            '20':
            'https://archive.stsci.edu/hlsps/atlas-refcat2/orig/hlsp_atlas-refcat2_atlas_ccd_19-m-20_multi_v1_cat.tbz',
            'code': 'https://archive.stsci.edu/prepds/atlas-refcat2/refcat.c',
            'man': 'https://archive.stsci.edu/prepds/atlas-refcat2/refcat.man',
        }
 def __init__(self):
     Downloader.__init__(self)