Пример #1
0
	def __init__(self,parent, id=-1, title='Import HDF into LatLong (+default to GeoTiff)',
			pos=(0,0),
			size=(450,500),
			style=wx.DEFAULT_FRAME_STYLE):
		wx.Frame.__init__(self, parent, id, title, pos, size, style)
		ico = images.getPngGipeIcon()
		self.SetIcon(ico)
		self.lognull = wx.LogNull()
		self.metadata = metadata
		# Input Filenames
		self.inputFile = inputFile
		self.output = output
		self.gdal_in_format = gdal_in_format
		self.out_format = out_format
		# Construct Interface
		self.make_text()
		self.make_buttons()
		self.make_radiobuttons()
		self.make_fb()
		self.mbox = wx.BoxSizer(wx.VERTICAL)
		self.mbox.Add((10,10))
		self.mbox.Add(self.text, 1, wx.EXPAND|wx.CENTER, 10)
		self.mbox.Add((10,10))
		self.mbox.Add(self.cc0, 1, wx.EXPAND, 10)
		self.mbox.Add(self.cc1, 1, wx.EXPAND, 10)
		self.mbox.Add((10,10))
		self.mbox.Add(self.rbox, 1, wx.EXPAND, 0)
		self.mbox.Add((10,200))
		self.mbox.Add(self.bbox, 1, wx.CENTER, 0)
		self.mbox.Add((10,10))
		self.SetSizer(self.mbox)
		self.bindEvents()
Пример #2
0
	def __init__(self, parent, id, title, pos=wx.DefaultPosition,
	    size=(300,200), style=wx.DEFAULT_FRAME_STYLE):

		wx.Frame.__init__(self, parent, id, title, pos, size)
		ico = images.getPngGipeIcon()
		self.SetIcon(ico)
		self.lognull = wx.LogNull()
Пример #3
0
	def __init__(self,parent, id=-1, title='MODIS09A State Quality Bits Extractor',
			pos=(0,0),
			size=(500,650),
			style=wx.DEFAULT_FRAME_STYLE):
		wx.Frame.__init__(self, parent, id, title, pos, size, style)
		ico = images.getPngGipeIcon()
		self.SetIcon(ico)
		self.lognull = wx.LogNull()
		# Input Filenames
		self.qc = qc
		self.qc_type = 'cloud_state'
		self.NameQC = NameQC
		self.output = output
		# Construct Interface
		self.make_text()
		self.make_buttons()
		self.make_radiobuttons3()
		self.make_fb()
		self.mbox = wx.BoxSizer(wx.VERTICAL)
		self.mbox.Add(self.text, 1, wx.EXPAND|wx.CENTER, 0)
		self.mbox.Add(self.cc2, 1, wx.EXPAND, 0)
		self.mbox.Add(self.cc6, 1, wx.EXPAND, 0)
		self.mbox.Add(self.rbox3, 1, wx.EXPAND, 0)
		self.mbox.Add(self.bbox, 1, wx.CENTER|wx.BOTTOM, -50)
		self.SetSizer(self.mbox)
		self.bindEvents()
Пример #4
0
	def __init__(self,parent, id=-1, title='Water Mapping',
			pos=(0,0),
			size=(400,500),
			style=wx.DEFAULT_FRAME_STYLE):
		wx.Frame.__init__(self, parent, id, title, pos, size, style)
		ico = images.getPngGipeIcon()
		self.SetIcon(ico)
		self.lognull = wx.LogNull()
		# Input Filenames
		self.ndvi = ndvi
		self.band7 = band7
		self.output = output
		# Construct Interface
		self.make_text()
		self.make_buttons()
		self.make_fb()
		self.mbox = wx.BoxSizer(wx.VERTICAL)
		self.mbox.Add((10,10))
		self.mbox.Add(self.text, 1, wx.EXPAND|wx.CENTER, 10)
		self.mbox.Add((10,10))
		self.mbox.Add((10,10))
		self.mbox.Add(self.cc2, 1, wx.EXPAND, 10)
		self.mbox.Add(self.cc3, 1, wx.EXPAND, 10)
		self.mbox.Add(self.cc6, 1, wx.EXPAND, 10)
		self.mbox.Add((10,10))
		self.mbox.Add(self.bbox, 1, wx.CENTER, 10)
		self.mbox.Add((10,10))
		self.SetSizer(self.mbox)
		self.bindEvents()
Пример #5
0
	def __init__(self,parent, id=-1, title='Pre-Processing Landsat image from .met metadata file',
			pos=(0,0),
			size=(300,300),
			style=wx.DEFAULT_FRAME_STYLE):
		wx.Frame.__init__(self, parent, id, title, pos, size, style)
		ico = images.getPngGipeIcon()
		self.SetIcon(ico)
		self.lognull = wx.LogNull()
		self.metadata = metadata
		# Input Filenames
		self.inputFile = inputFile
		self.output = output
		# Pre-Processing types
		self.proc_type = proc_type
		self.proc_selected = proc_selected
		# Construct Interface
		self.make_text()
		self.make_buttons()
		self.make_radiobuttons()
		self.make_fb()
		self.mbox = wx.BoxSizer(wx.VERTICAL)
		self.mbox.Add((10,20))
		self.mbox.Add(self.text, 1, wx.EXPAND|wx.CENTER, 10)
		self.mbox.Add((10,20))
		self.mbox.Add((10,10))
		self.mbox.Add(self.cc0, 1, wx.EXPAND, 10)
		self.mbox.Add(self.cc1, 1, wx.EXPAND, 10)
		self.mbox.Add((10,10))
		self.mbox.Add(self.rbox, 1, wx.EXPAND, 0)
		self.mbox.Add((10,20))
		self.mbox.Add((10,10))
		self.mbox.Add(self.bbox, 1, wx.CENTER, 10)
		self.mbox.Add((10,10))
		self.SetSizer(self.mbox)
		self.bindEvents()
Пример #6
0
	def __init__(self,parent, id=-1, title='Convert Image Format with GDAL', pos=(0,0),
			size=(450,500),
			style=wx.DEFAULT_FRAME_STYLE):
		wx.Frame.__init__(self, parent, id, title, pos, size, style)
		ico = images.getPngGipeIcon()
		self.SetIcon(ico)
		self.lognull = wx.LogNull()
		self.infile = infile
		self.output = output
		self.gdal_in_format = gdal_in_format
		self.out_format = out_format
		self.make_text()
		self.make_buttons()
		self.make_radiobuttons()
		self.make_fb()
		self.mbox = wx.BoxSizer(wx.VERTICAL)
		self.mbox.Add((10,10))
		self.mbox.Add(self.text, 1, wx.EXPAND|wx.CENTER, 10)
		self.mbox.Add((10,10))
		self.mbox.Add(self.cc0, 1, wx.EXPAND, 10)
		self.mbox.Add(self.cc1, 1, wx.EXPAND, 10)
		self.mbox.Add((10,10))
		self.mbox.Add(self.rbox, 1, wx.EXPAND, 0)
		self.mbox.Add((10,200))
		self.mbox.Add(self.bbox, 1, wx.CENTER, 0)
		self.SetSizer(self.mbox)
		self.bindEvents()
Пример #7
0
	def __init__(self,parent, id=-1, title='Layer Stack: 3 Bands to RGB', pos=(0,0),
			size=(450,600),
			style=wx.DEFAULT_FRAME_STYLE):
		wx.Frame.__init__(self, parent, id, title, pos, size, style)
		ico = images.getPngGipeIcon()
		self.SetIcon(ico)
		self.lognull = wx.LogNull()
		global infiles
		self.output = output
		global gdal_in_format
		self.out_format = out_format
		self.make_text()
		self.make_buttons()
		self.make_radiobuttons()
		self.make_fb()
		self.mbox = wx.BoxSizer(wx.VERTICAL)
		self.mbox.Add((10,10))
		self.mbox.Add(self.text, 1, wx.EXPAND|wx.CENTER, 10)
		self.mbox.Add((10,10))
		self.mbox1 = wx.BoxSizer(wx.HORIZONTAL)
		self.mbox1.Add(self.text1, 1, wx.CENTER, 10)
		self.mbox1.Add(self.cc0, 1, wx.CENTER, 10)
		self.mbox.Add(self.mbox1, 1, wx.EXPAND, 10)
		self.mbox.Add(self.cc1, 1, wx.EXPAND, 10)
		self.mbox.Add((10,10))
		self.mbox.Add(self.rbox, 1, wx.EXPAND, 0)
		self.mbox.Add((10,200))
		self.mbox.Add(self.bbox, 1, wx.CENTER, 0)
		self.SetSizer(self.mbox)
		self.bindEvents()
Пример #8
0
 def __init__(self,
              parent,
              id=-1,
              title='MODIS09A State Quality Bits Extractor',
              pos=(0, 0),
              size=(500, 650),
              style=wx.DEFAULT_FRAME_STYLE):
     wx.Frame.__init__(self, parent, id, title, pos, size, style)
     ico = images.getPngGipeIcon()
     self.SetIcon(ico)
     self.lognull = wx.LogNull()
     # Input Filenames
     self.qc = qc
     self.qc_type = 'cloud_state'
     self.NameQC = NameQC
     self.output = output
     # Construct Interface
     self.make_text()
     self.make_buttons()
     self.make_radiobuttons3()
     self.make_fb()
     self.mbox = wx.BoxSizer(wx.VERTICAL)
     self.mbox.Add(self.text, 1, wx.EXPAND | wx.CENTER, 0)
     self.mbox.Add(self.cc2, 1, wx.EXPAND, 0)
     self.mbox.Add(self.cc6, 1, wx.EXPAND, 0)
     self.mbox.Add(self.rbox3, 1, wx.EXPAND, 0)
     self.mbox.Add(self.bbox, 1, wx.CENTER | wx.BOTTOM, -50)
     self.SetSizer(self.mbox)
     self.bindEvents()
Пример #9
0
 def __init__(self,
              parent,
              id=-1,
              title='Import HDF into LatLong (+default to GeoTiff)',
              pos=(0, 0),
              size=(450, 500),
              style=wx.DEFAULT_FRAME_STYLE):
     wx.Frame.__init__(self, parent, id, title, pos, size, style)
     ico = images.getPngGipeIcon()
     self.SetIcon(ico)
     self.lognull = wx.LogNull()
     self.metadata = metadata
     # Input Filenames
     self.inputFile = inputFile
     self.output = output
     self.gdal_in_format = gdal_in_format
     self.out_format = out_format
     # Construct Interface
     self.make_text()
     self.make_buttons()
     self.make_radiobuttons()
     self.make_fb()
     self.mbox = wx.BoxSizer(wx.VERTICAL)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.text, 1, wx.EXPAND | wx.CENTER, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.cc0, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc1, 1, wx.EXPAND, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.rbox, 1, wx.EXPAND, 0)
     self.mbox.Add((10, 200))
     self.mbox.Add(self.bbox, 1, wx.CENTER, 0)
     self.mbox.Add((10, 10))
     self.SetSizer(self.mbox)
     self.bindEvents()
Пример #10
0
 def __init__(self,
              parent,
              id=-1,
              title='Water Mapping',
              pos=(0, 0),
              size=(400, 500),
              style=wx.DEFAULT_FRAME_STYLE):
     wx.Frame.__init__(self, parent, id, title, pos, size, style)
     ico = images.getPngGipeIcon()
     self.SetIcon(ico)
     self.lognull = wx.LogNull()
     # Input Filenames
     self.ndvi = ndvi
     self.band7 = band7
     self.output = output
     # Construct Interface
     self.make_text()
     self.make_buttons()
     self.make_fb()
     self.mbox = wx.BoxSizer(wx.VERTICAL)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.text, 1, wx.EXPAND | wx.CENTER, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add((10, 10))
     self.mbox.Add(self.cc2, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc3, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc6, 1, wx.EXPAND, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.bbox, 1, wx.CENTER, 10)
     self.mbox.Add((10, 10))
     self.SetSizer(self.mbox)
     self.bindEvents()
Пример #11
0
 def __init__(self,
              parent,
              id=-1,
              title='Layer Stack: 3 Bands to RGB',
              pos=(0, 0),
              size=(450, 600),
              style=wx.DEFAULT_FRAME_STYLE):
     wx.Frame.__init__(self, parent, id, title, pos, size, style)
     ico = images.getPngGipeIcon()
     self.SetIcon(ico)
     self.lognull = wx.LogNull()
     global infiles
     self.output = output
     global gdal_in_format
     self.out_format = out_format
     self.make_text()
     self.make_buttons()
     self.make_radiobuttons()
     self.make_fb()
     self.mbox = wx.BoxSizer(wx.VERTICAL)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.text, 1, wx.EXPAND | wx.CENTER, 10)
     self.mbox.Add((10, 10))
     self.mbox1 = wx.BoxSizer(wx.HORIZONTAL)
     self.mbox1.Add(self.text1, 1, wx.CENTER, 10)
     self.mbox1.Add(self.cc0, 1, wx.CENTER, 10)
     self.mbox.Add(self.mbox1, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc1, 1, wx.EXPAND, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.rbox, 1, wx.EXPAND, 0)
     self.mbox.Add((10, 200))
     self.mbox.Add(self.bbox, 1, wx.CENTER, 0)
     self.SetSizer(self.mbox)
     self.bindEvents()
Пример #12
0
 def __init__(self,
              parent,
              id=-1,
              title='Albedo Processing',
              pos=(0, 0),
              size=(400, 650),
              style=wx.DEFAULT_FRAME_STYLE):
     wx.Frame.__init__(self, parent, id, title, pos, size, style)
     if images:
         ico = images.getPngGipeIcon()
     else:
         ico = wx.EmptyIcon()
     self.SetIcon(ico)
     self.lognull = wx.LogNull()
     self.alb = rs.albedo()
     # Input Filenames
     self.bluechan = bluechan
     self.greenchan = greenchan
     self.redchan = redchan
     self.nirchan = nirchan
     self.swir1chan = swir1chan
     self.swir2chan = swir2chan
     self.swir3chan = swir3chan
     self.swir4chan = swir4chan
     self.swir5chan = swir5chan
     self.swir6chan = swir6chan
     self.output = output
     # Albedo equation types
     self.alb_type = alb_type
     self.alb_selected = alb_selected
     # Construct Interface
     self.make_text()
     self.make_buttons()
     self.make_radiobuttons()
     self.make_fb()
     self.mbox = wx.BoxSizer(wx.VERTICAL)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.text, 1, wx.EXPAND | wx.CENTER, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add((10, 10))
     self.mbox.Add(self.cc0, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc1, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc2, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc3, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc4, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc5, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc6, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc7, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc8, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc9, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc10, 1, wx.EXPAND, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.rbox, 1, wx.EXPAND, 0)
     self.mbox.Add((10, 10))
     self.mbox.Add((10, 10))
     self.mbox.Add(self.bbox, 1, wx.CENTER, 10)
     self.mbox.Add((10, 10))
     self.SetSizer(self.mbox)
     self.bindEvents()
Пример #13
0
    def __init__(self,
                 parent,
                 id,
                 title,
                 pos=wx.DefaultPosition,
                 size=(600, 400),
                 style=wx.DEFAULT_FRAME_STYLE):

        wx.Frame.__init__(self, parent, id, title, pos, size)
        ico = images.getPngGipeIcon()
        self.SetIcon(ico)
        self.lognull = wx.LogNull()
Пример #14
0
 def __init__(self,
              parent,
              id=-1,
              title='Vegetation Indices Processing',
              pos=(0, 0),
              size=(400, 500),
              style=wx.DEFAULT_FRAME_STYLE):
     wx.Frame.__init__(self, parent, id, title, pos, size, style)
     ico = images.getPngGipeIcon()
     self.SetIcon(ico)
     self.lognull = wx.LogNull()
     self.vi = rs.vi()
     # Input Filenames
     self.bluechan = bluechan
     self.greenchan = greenchan
     self.redchan = redchan
     self.nirchan = nirchan
     self.chan5chan = chan5chan
     self.chan7chan = chan7chan
     self.output = output
     # VI types
     self.vi_type = vi_type
     self.vi_selected = vi_selected
     # WDVI input var
     self.soil_line_slope = soil_line_slope
     # Construct Interface
     self.make_text()
     self.make_buttons()
     self.make_radiobuttons()
     self.make_fb()
     self.mbox = wx.BoxSizer(wx.VERTICAL)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.text, 1, wx.EXPAND | wx.CENTER, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add((10, 10))
     self.mbox.Add(self.cc0, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc1, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc2, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc3, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc4, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc5, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc6, 1, wx.EXPAND, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.rbox, 1, wx.EXPAND, 0)
     self.mbox.Add((10, 80))
     self.mbox.Add((10, 10))
     self.mbox.Add(self.bbox, 1, wx.CENTER, 10)
     self.mbox.Add((10, 10))
     self.SetSizer(self.mbox)
     self.bindEvents()
Пример #15
0
 def __init__(self,
              parent,
              id=-1,
              title='ETPOT for Landsat image from .met metadata file',
              pos=(0, 0),
              size=(500, 400),
              style=wx.DEFAULT_FRAME_STYLE):
     wx.Frame.__init__(self, parent, id, title, pos, size, style)
     ico = images.getPngGipeIcon()
     self.SetIcon(ico)
     self.lognull = wx.LogNull()
     # Initialize RS.py functions
     self.pre = rs.pre()
     self.albedo = rs.albedo()
     self.emissivity = rs.emissivity()
     self.vi = rs.vi()
     self.et_pot_rs = rs.et_pot_rs()
     self.eb = rs.eb()
     self.utils = rs.utils()
     # Initialize metadata
     self.metadata = metadata
     # Input Filenames
     self.inputFile = inputFile
     self.output = output
     # Pre-Processing types
     self.proc_type = proc_type
     self.chosen_tempk_band = chosen_tempk_band
     # Construct Interface
     self.make_text()
     self.make_buttons()
     self.make_radiobuttons()
     self.make_options()
     self.make_fb()
     self.mbox = wx.BoxSizer(wx.VERTICAL)
     self.mbox.Add((10, 20))
     self.mbox.Add(self.text, 1, wx.EXPAND | wx.CENTER, 10)
     self.mbox.Add((10, 20))
     self.mbox.Add((10, 10))
     self.mbox.Add(self.cc0, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc1, 1, wx.EXPAND, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.optbox, 1, wx.EXPAND, 10)
     self.mbox.Add((10, 30))
     self.mbox.Add(self.rbox, 1, wx.EXPAND, 0)
     self.mbox.Add((10, 20))
     self.mbox.Add((10, 10))
     self.mbox.Add(self.bbox, 1, wx.CENTER, 10)
     self.mbox.Add((10, 10))
     self.SetSizer(self.mbox)
     self.bindEvents()
Пример #16
0
	def __init__(self,parent, id=-1, title='ETPOT for Landsat image from .met metadata file',
			pos=(0,0),
			size=(500,400),
			style=wx.DEFAULT_FRAME_STYLE):
		wx.Frame.__init__(self, parent, id, title, pos, size, style)
		ico = images.getPngGipeIcon()
		self.SetIcon(ico)
		self.lognull = wx.LogNull()
		# Initialize RS.py functions
		self.pre=rs.pre()
		self.albedo=rs.albedo()
		self.emissivity=rs.emissivity()
		self.vi=rs.vi()
		self.et_pot_rs=rs.et_pot_rs()
		self.eb=rs.eb()
		self.utils=rs.utils()
		# Initialize metadata
		self.metadata = metadata
		# Input Filenames
		self.inputFile = inputFile
		self.output = output
		# Pre-Processing types
		self.proc_type = proc_type
		self.chosen_tempk_band = chosen_tempk_band
		# Construct Interface
		self.make_text()
		self.make_buttons()
		self.make_radiobuttons()
		self.make_options()
		self.make_fb()
		self.mbox = wx.BoxSizer(wx.VERTICAL)
		self.mbox.Add((10,20))
		self.mbox.Add(self.text, 1, wx.EXPAND|wx.CENTER, 10)
		self.mbox.Add((10,20))
		self.mbox.Add((10,10))
		self.mbox.Add(self.cc0, 1, wx.EXPAND, 10)
		self.mbox.Add(self.cc1, 1, wx.EXPAND, 10)
		self.mbox.Add((10,10))
		self.mbox.Add(self.optbox,1,wx.EXPAND,10)
		self.mbox.Add((10,30))
		self.mbox.Add(self.rbox, 1, wx.EXPAND, 0)
		self.mbox.Add((10,20))
		self.mbox.Add((10,10))
		self.mbox.Add(self.bbox, 1, wx.CENTER, 10)
		self.mbox.Add((10,10))
		self.SetSizer(self.mbox)
		self.bindEvents()
Пример #17
0
 def __init__(self,
              parent,
              id=-1,
              title='Aster DN2Rad2Ref',
              pos=(0, 0),
              size=(400, 500),
              style=wx.DEFAULT_FRAME_STYLE):
     wx.Frame.__init__(self, parent, id, title, pos, size, style)
     ico = images.getPngGipeIcon()
     self.SetIcon(ico)
     self.lognull = wx.LogNull()
     # Input Filenames
     self.infiles = infiles
     self.output = output
     self.doy = doy
     self.sun_elevation = sun_elevation
     # Pre-Processing types
     self.proc_type = proc_type
     self.proc_selected = proc_selected
     # Construct Interface
     self.make_text()
     self.make_input_param()
     self.make_buttons()
     self.make_radiobuttons()
     self.make_fb()
     self.mbox = wx.BoxSizer(wx.VERTICAL)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.text, 1, wx.EXPAND | wx.CENTER, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add((10, 10))
     self.mbox.Add(self.cc0, 1, wx.EXPAND, 10)
     self.mbox.Add(self.cc1, 1, wx.EXPAND, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.scbox, 1, wx.EXPAND, 10)
     self.mbox.Add(self.sc1box, 1, wx.EXPAND, 10)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.rbox, 1, wx.EXPAND, 0)
     self.mbox.Add((10, 80))
     self.mbox.Add((10, 10))
     self.mbox.Add(self.bbox, 1, wx.CENTER, 10)
     self.mbox.Add((10, 10))
     self.SetSizer(self.mbox)
     self.bindEvents()
Пример #18
0
 def __init__(self,
              parent,
              id=-1,
              title='MODIS Quality Bits Extractor',
              pos=(0, 0),
              size=(400, 650),
              style=wx.DEFAULT_FRAME_STYLE):
     wx.Frame.__init__(self, parent, id, title, pos, size, style)
     ico = images.getPngGipeIcon()
     self.SetIcon(ico)
     self.lognull = wx.LogNull()
     # Input Filenames
     self.qc = qc
     self.qc_type = 'modland_qa_bits'
     self.pixelres = '250'
     self.band_no = '1'
     self.NameMOD = NameMOD
     self.NameQC = NameQC
     self.bandno = bandno
     self.output = output
     # Construct Interface
     self.make_text()
     self.make_buttons()
     self.make_radiobuttons1()
     self.make_radiobuttons2()
     self.make_radiobuttons3()
     self.make_fb()
     self.mbox = wx.BoxSizer(wx.VERTICAL)
     self.mbox.Add((10, 10))
     self.mbox.Add(self.text, 1, wx.EXPAND | wx.CENTER, 10)
     self.mbox.Add(self.cc2, 1, wx.EXPAND, 0)
     self.mbox.Add(self.cc6, 1, wx.EXPAND, 0)
     self.mbox.Add(self.rbox1, 1, wx.CENTER, 0)
     self.mbox.Add(self.rbox2, 1, wx.CENTER, 0)
     self.mbox.Add(self.rbox3, 1, wx.CENTER, 0)
     self.mbox.Add((10, 10))
     self.mbox.Add((50, 10))
     self.mbox.Add(self.bbox, 1, wx.CENTER, 10)
     self.mbox.Add((10, 10))
     self.SetSizer(self.mbox)
     self.bindEvents()
Пример #19
0
	def __init__(self,parent, id=-1, title='Aster DN2Rad2Ref',
			pos=(0,0),
			size=(400,500),
			style=wx.DEFAULT_FRAME_STYLE):
		wx.Frame.__init__(self, parent, id, title, pos, size, style)
		ico = images.getPngGipeIcon()
		self.SetIcon(ico)
		self.lognull = wx.LogNull()
		# Input Filenames
		self.infiles = infiles
		self.output = output
		self.doy = doy
		self.sun_elevation = sun_elevation
		# Pre-Processing types
		self.proc_type = proc_type
		self.proc_selected = proc_selected
		# Construct Interface
		self.make_text()
		self.make_input_param()
		self.make_buttons()
		self.make_radiobuttons()
		self.make_fb()
		self.mbox = wx.BoxSizer(wx.VERTICAL)
		self.mbox.Add((10,10))
		self.mbox.Add(self.text, 1, wx.EXPAND|wx.CENTER, 10)
		self.mbox.Add((10,10))
		self.mbox.Add((10,10))
		self.mbox.Add(self.cc0, 1, wx.EXPAND, 10)
		self.mbox.Add(self.cc1, 1, wx.EXPAND, 10)
		self.mbox.Add((10,10))
		self.mbox.Add(self.scbox, 1, wx.EXPAND, 10)
		self.mbox.Add(self.sc1box, 1, wx.EXPAND, 10)
		self.mbox.Add((10,10))
		self.mbox.Add(self.rbox, 1, wx.EXPAND, 0)
		self.mbox.Add((10,80))
		self.mbox.Add((10,10))
		self.mbox.Add(self.bbox, 1, wx.CENTER, 10)
		self.mbox.Add((10,10))
		self.SetSizer(self.mbox)
		self.bindEvents()
Пример #20
0
	def __init__(self,parent, id=-1, title='MODIS Quality Bits Extractor',
			pos=(0,0),
			size=(400,650),
			style=wx.DEFAULT_FRAME_STYLE):
		wx.Frame.__init__(self, parent, id, title, pos, size, style)
		ico = images.getPngGipeIcon()
		self.SetIcon(ico)
		self.lognull = wx.LogNull()
		# Input Filenames
		self.qc = qc
		self.qc_type = 'modland_qa_bits'
		self.pixelres = '250'
		self.band_no = '1'
		self.NameMOD = NameMOD
		self.NameQC = NameQC
		self.bandno = bandno
		self.output = output
		# Construct Interface
		self.make_text()
		self.make_buttons()
		self.make_radiobuttons1()
		self.make_radiobuttons2()
		self.make_radiobuttons3()
		self.make_fb()
		self.mbox = wx.BoxSizer(wx.VERTICAL)
		self.mbox.Add((10,10))
		self.mbox.Add(self.text, 1, wx.EXPAND|wx.CENTER, 10)
		self.mbox.Add(self.cc2, 1, wx.EXPAND, 0)
		self.mbox.Add(self.cc6, 1, wx.EXPAND, 0)
		self.mbox.Add(self.rbox1, 1, wx.CENTER, 0)
		self.mbox.Add(self.rbox2, 1, wx.CENTER, 0)
		self.mbox.Add(self.rbox3, 1, wx.CENTER, 0)
		self.mbox.Add((10,10))
		self.mbox.Add((50,10))
		self.mbox.Add(self.bbox, 1, wx.CENTER, 10)
		self.mbox.Add((10,10))
		self.SetSizer(self.mbox)
		self.bindEvents()