GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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. More...
 
def OnSelectRaster
 Select raster map(s) to profile. More...
 
def SetupProfile
 Create coordinate string for profiling. More...
 
def CreateDatalist
 Build a list of distance, value pairs for points along transect using r.profile. More...
 
def OnCreateProfile
 Main routine for creating a profile. More...
 
def CreatePlotList
 Create a plot data list from transect datalist and transect segment endpoint coordinates. More...
 
def Update
 Update profile after changing options. More...
 
def SaveProfileToFile
 Save r.profile data to a csv file. More...
 
def OnStats
 Displays regression information in messagebox. More...
 

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 217 of file profile.py.

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

Referenced by profile.ProfileFrame.SetupProfile().

def profile.ProfileFrame.CreatePlotList (   self)

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

Definition at line 283 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 254 of file profile.py.

References profile.ProfileFrame.CreatePlotList(), base.BasePlotFrame.DrawPlot(), dialogs.ProfileRasterDialog.rasterList, profile.ProfileFrame.rasterList, base.BasePlotFrame.rasterList, dialogs.OptDialog.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 374 of file profile.py.

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

def profile.ProfileFrame.SaveProfileToFile (   self,
  event 
)

Field Documentation

profile.ProfileFrame.colorList

Definition at line 64 of file profile.py.

Referenced by base.BasePlotFrame.InitRasterOpts().

profile.ProfileFrame.coordstr

Definition at line 59 of file profile.py.

Referenced by profile.ProfileFrame.SetupProfile().

profile.ProfileFrame.plotlist

Definition at line 288 of file profile.py.

profile.ProfileFrame.plottype

Definition at line 58 of file profile.py.

Referenced by profile.ProfileFrame.OnSelectRaster().

profile.ProfileFrame.ppoints

Definition at line 61 of file profile.py.

Referenced by profile.ProfileFrame.OnDrawTransect().

profile.ProfileFrame.ptitle

Definition at line 63 of file profile.py.

Referenced by profile.ProfileFrame.SetupProfile().

profile.ProfileFrame.seglist
profile.ProfileFrame.toolbar

Definition at line 50 of file profile.py.

Referenced by mapwindow.BufferedWindow.OnDragging().

profile.ProfileFrame.transect_length
profile.ProfileFrame.xlabel

Definition at line 77 of file profile.py.

profile.ProfileFrame.ylabel

Definition at line 80 of file profile.py.

Referenced by profile.ProfileFrame.SetupProfile().


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