Beispiel #1
0
 def __init__(self, dirname):
     super(Landsatscene, self).__init__(dirname)
     # Metadata change, see http://landsat.usgs.gov/Landsat_Metadata_Changes.php
     self.newmetaformat = True
     try:
         versionstr = self.meta['METADATA_FILE_INFO']['PROCESSING_SOFTWARE_VERSION']
     except KeyError:
         versionstr = self.meta['PRODUCT_METADATA']['PROCESSING_SOFTWARE']
         self.newmetaformat = False
     self.permissiblebandid = lu.get_bands(self.spacecraft)
     _validate_platformorigin('Landsat', self.spacecraft)
Beispiel #2
0
 def __init__(self, dirname):
     super(Landsatscene, self).__init__(dirname)
     # Metadata change, see http://landsat.usgs.gov/Landsat_Metadata_Changes.php
     self.newmetaformat = True
     try:
         versionstr = self.meta['METADATA_FILE_INFO'][
             'PROCESSING_SOFTWARE_VERSION']
     except KeyError:
         versionstr = self.meta['PRODUCT_METADATA']['PROCESSING_SOFTWARE']
         self.newmetaformat = False
     self.permissiblebandid = lu.get_bands(self.spacecraft)
     _validate_platformorigin('Landsat', self.spacecraft)
Beispiel #3
0
 def __init__(self, dirname):
     super(Hyperionscene, self).__init__(dirname)
     self._hyperiondata = hyp.gethyperionbands()
     self.band_is_calibrated = np.logical_not(
         self._hyperiondata.Not_Calibrated_X == 'X')
     self.bandselection = []
     self.hyperionbands = self._hyperiondata.Hyperion_Band
     self.calibratedbands = self.hyperionbands[self.band_is_calibrated]
     self.hyperionwavelength_nm = self._hyperiondata.Average_Wavelength_nm
     self.calibratedwavelength_nm = self._hyperiondata.Average_Wavelength_nm[
         self.band_is_calibrated]
     self.permissiblebandid = [str(num) for num in range(1, 243)]
     self.calibratedbandid = [
         str(num) for num in range(8, 58) + range(77, 225)]
     _validate_platformorigin('HYPERION', self.spacecraft, self.sensor)
Beispiel #4
0
 def __init__(self, dirname):
     super(Hyperionscene, self).__init__(dirname)
     self._hyperiondata = hyp.gethyperionbands()
     self.band_is_calibrated = np.logical_not(
         self._hyperiondata.Not_Calibrated_X == 'X')
     self.bandselection = []
     self.hyperionbands = self._hyperiondata.Hyperion_Band
     self.calibratedbands = self.hyperionbands[self.band_is_calibrated]
     self.hyperionwavelength_nm = self._hyperiondata.Average_Wavelength_nm
     self.calibratedwavelength_nm = self._hyperiondata.Average_Wavelength_nm[
         self.band_is_calibrated]
     self.permissiblebandid = [str(num) for num in range(1, 243)]
     self.calibratedbandid = [
         str(num) for num in itertools.chain(range(8, 58), range(77, 225))
     ]
     _validate_platformorigin('HYPERION', self.spacecraft, self.sensor)
Beispiel #5
0
 def __init__(self, filepath, band=None, scene=None):
     super(Landsatband, self).__init__(filepath, band=band, scene=scene)
     _validate_platformorigin('Landsat', self.spacecraft)
Beispiel #6
0
 def __init__(self, filepath, band=None, scene=None):
     super(Hyperionband, self).__init__(filepath, band=band, scene=scene)
     _validate_platformorigin('HYPERION', self.spacecraft, self.sensor)
Beispiel #7
0
 def __init__(self, filepath, band=None, scene=None):
     super(Hyperionband, self).__init__(filepath, band=band, scene=scene)
     _validate_platformorigin('HYPERION', self.spacecraft, self.sensor)
Beispiel #8
0
 def __init__(self, filepath, band=None, scene=None):
     super(Landsatband, self).__init__(filepath, band=band, scene=scene)
     _validate_platformorigin('Landsat', self.spacecraft)
Beispiel #9
0
 def __init__(self, filepath, band=None, scene=None):
     super(ALIband, self).__init__(filepath, band=band, scene=scene)
     _validate_platformorigin('ALI', self.spacecraft, self.sensor)
Beispiel #10
0
 def __init__(self, dirname):
     super(ALIscene, self).__init__(dirname)
     self.permissiblebandid = [str(num) for num in range(1, 11)]
     _validate_platformorigin('ALI', self.spacecraft, self.sensor)