Exemple #1
0
class PVGeoLandsatReader(LandsatReader):
    def __init__(self):
        LandsatReader.__init__(self)

    #### Seters and Geters ####

    @smproperty.xml(
        _helpers.get_file_reader_xml(
            LandsatReader.extensions,
            reader_description=LandsatReader.description))
    def AddFileName(self, filename):
        LandsatReader.AddFileName(self, filename)

    @smproperty.dataarrayselection(name="Available Bands")
    def GetDataSelection(self):
        return LandsatReader.GetDataSelection(self)

    @smproperty.xml(
        _helpers.get_property_xml(
            name='Cast Data Type',
            command='set_cast_data_type',
            default_values=True,
            help=
            'A boolean to set whether to cast the data arrays so invalid points are filled nans.',
            panel_visibility='advanced',
        ))
    def set_cast_data_type(self, flag):
        LandsatReader.set_cast_data_type(self, flag)

    @smproperty.xml(
        _helpers.get_drop_down_xml(
            name='Color Scheme',
            command='set_color_scheme',
            labels=LandsatReader.get_color_scheme_names(),
            help='Set a color scheme to use.',
        ))
    def set_color_scheme(self, scheme):
        LandsatReader.set_color_scheme(self, scheme)
Exemple #2
0
 def set_color_scheme(self, scheme):
     LandsatReader.set_color_scheme(self, scheme)
Exemple #3
0
 def set_cast_data_type(self, flag):
     LandsatReader.set_cast_data_type(self, flag)
Exemple #4
0
 def GetDataSelection(self):
     return LandsatReader.GetDataSelection(self)
Exemple #5
0
 def AddFileName(self, filename):
     LandsatReader.AddFileName(self, filename)
Exemple #6
0
 def __init__(self):
     LandsatReader.__init__(self)