usgsdownload/usgs.py
def verify_type_product(self, satellite):
        """Gets satellite id """
        if satellite == 'L5':
            id_satellite = '3119'
            stations = ['GLC', 'ASA', 'KIR', 'MOR', 'KHC', 'PAC', 'KIS', 'CHM', 'LGS', 'MGR', 'COA', 'MPS']
        elif satellite == 'L7':
            id_satellite = '3373'
            stations = ['EDC', 'SGS', 'AGS', 'ASN', 'SG1']
        elif satellite == 'L8':
            id_satellite = '4923'
            stations = ['LGN']
        else:
            raise ProductInvalidError('Type product invalid. the permitted types are: L5, L7, L8. ')
        typ_product = dict(id_satelite=id_satellite, stations=stations)
        return typ_product
def verify_type_product(self, satellite):
        """Gets satellite id """
        if satellite == 'L5':
            id_satellite = '3119'
            stations = ['GLC', 'ASA', 'KIR', 'MOR', 'KHC', 'PAC', 'KIS', 'CHM', 'LGS', 'MGR', 'COA', 'MPS']
        elif satellite == 'L7':
            id_satellite = '3373'
            stations = ['EDC', 'SGS', 'AGS', 'ASN', 'SG1']
        elif satellite == 'L8':
            id_satellite = '4923'
            stations = ['LGN']
        else:
            raise ProductInvalidError('Type product invalid. the permitted types are: L5, L7, L8. ')
        typ_product = dict(id_satelite=id_satellite, stations=stations)
        return typ_product
def verify_type_product ( self , satellite ) : if satellite == 'L5' : id_satellite = '3119' stations = [ 'GLC' , 'ASA' , 'KIR' , 'MOR' , 'KHC' , 'PAC' , 'KIS' , 'CHM' , 'LGS' , 'MGR' , 'COA' , 'MPS' ] elif satellite == 'L7' : id_satellite = '3373' stations = [ 'EDC' , 'SGS' , 'AGS' , 'ASN' , 'SG1' ] elif satellite == 'L8' : id_satellite = '4923' stations = [ 'LGN' ] else : raise ProductInvalidError ( 'Type product invalid. the permitted types are: L5, L7, L8. ' ) typ_product = dict ( id_satelite = id_satellite , stations = stations ) return typ_product
Gets satellite id
Gets satellite id