GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
profile.ProfileFrame Class Reference

Mainframe for displaying profile of one or more raster maps. More...

Inheritance diagram for profile.ProfileFrame:
Collaboration diagram for profile.ProfileFrame:

Public Member Functions

def __init__
def OnDrawTransect
 Draws transect to profile in map display.
def OnSelectRaster
 Select raster map(s) to profile.
def SetupProfile
 Create coordinate string for profiling.
def CreateDatalist
 Build a list of distance, value pairs for points along transect using r.profile.
def OnCreateProfile
 Main routine for creating a profile.
def CreatePlotList
 Create a plot data list from transect datalist and transect segment endpoint coordinates.
def Update
 Update profile after changing options.
def SaveProfileToFile
 Save r.profile data to a csv file.
def OnStats
 Displays regression information in messagebox.

Data Fields

 toolbar
 rasterList
 plottype
 coordstr
 seglist
 ppoints
 transect_length
 ptitle
 colorList
 raster
 xlabel
 ylabel
 plotlist

Detailed Description

Mainframe for displaying profile of one or more raster maps.

Uses wx.lib.plot.

Definition at line 42 of file profile.py.


Constructor & Destructor Documentation

def profile.ProfileFrame.__init__ (   self,
  parent,
  id = wx.ID_ANY,
  style = wx.DEFAULT_FRAME_STYLE,
  size = wx.Size(700, 400,
  rasterList = [],
  kwargs 
)

Definition at line 47 of file profile.py.


Member Function Documentation

def profile.ProfileFrame.CreateDatalist (   self,
  raster,
  coords 
)

Build a list of distance, value pairs for points along transect using r.profile.

Definition at line 209 of file profile.py.

References min, gcmd.RunCommand(), utils.split(), and profile.ProfileFrame.transect_length.

Referenced by profile.ProfileFrame.SetupProfile().

Create a plot data list from transect datalist and transect segment endpoint coordinates.

Definition at line 275 of file profile.py.

Referenced by profile.ProfileFrame.OnCreateProfile(), and profile.ProfileFrame.Update().

def profile.ProfileFrame.OnCreateProfile (   self,
  event 
)

Main routine for creating a profile.

Uses r.profile to create a list of distance,cell value pairs. This is passed to plot to create a line graph of the profile. If the profile transect is in multiple segments, these are drawn as points. Profile transect is drawn, using methods in mapdisp.py

Definition at line 246 of file profile.py.

References profile.ProfileFrame.CreatePlotList(), base.BasePlotFrame.DrawPlot(), dialogs.ProfileRasterDialog.rasterList, base.BasePlotFrame.rasterList, profile.ProfileFrame.rasterList, base.BasePlotFrame.SetGraphStyle(), and profile.ProfileFrame.SetupProfile().

Referenced by profile.ProfileFrame.OnSelectRaster().

def profile.ProfileFrame.OnDrawTransect (   self,
  event 
)

Draws transect to profile in map display.

Definition at line 87 of file profile.py.

References profile.ProfileFrame.ppoints, and profile.ProfileFrame.seglist.

def profile.ProfileFrame.OnStats (   self,
  event 
)

Displays regression information in messagebox.

Definition at line 349 of file profile.py.

References base.BasePlotFrame.raster, profile.ProfileFrame.raster, dialogs.OptDialog.raster, and profile.ProfileFrame.transect_length.


Field Documentation

Definition at line 280 of file profile.py.

Definition at line 77 of file profile.py.


The documentation for this class was generated from the following file: