GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Mainframe for displaying profile of one or more raster maps. More...
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 | |
Mainframe for displaying profile of one or more raster maps.
Uses wx.lib.plot.
Definition at line 42 of file profile.py.
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.
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.OnSelectRaster | ( | self, | |
event | |||
) |
Select raster map(s) to profile.
Definition at line 104 of file profile.py.
References base.BasePlotFrame.InitRasterOpts(), profile.ProfileFrame.OnCreateProfile(), profile.ProfileFrame.plottype, base.BasePlotFrame.plottype, dialogs.TextDialog.plottype, dialogs.OptDialog.plottype, base.BasePlotFrame.raster, profile.ProfileFrame.raster, dialogs.OptDialog.raster, dialogs.ProfileRasterDialog.rasterList, profile.ProfileFrame.rasterList, base.BasePlotFrame.rasterList, and dialogs.OptDialog.rasterList.
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 | |||
) |
Save r.profile data to a csv file.
Definition at line 329 of file profile.py.
References base.BasePlotFrame.raster, profile.ProfileFrame.raster, dialogs.OptDialog.raster, dialogs.ProfileRasterDialog.rasterList, profile.ProfileFrame.rasterList, base.BasePlotFrame.rasterList, and dialogs.OptDialog.rasterList.
def profile.ProfileFrame.SetupProfile | ( | self | ) |
Create coordinate string for profiling.
Create segment list for transect segment markers.
Definition at line 119 of file profile.py.
References profile.ProfileFrame.coordstr, profile.ProfileFrame.CreateDatalist(), profile.ProfileFrame.ptitle, base.BasePlotFrame.ptitle, dialogs.TextDialog.ptitle, base.BasePlotFrame.raster, profile.ProfileFrame.raster, dialogs.OptDialog.raster, dialogs.ProfileRasterDialog.rasterList, profile.ProfileFrame.rasterList, base.BasePlotFrame.rasterList, dialogs.OptDialog.rasterList, gcmd.RunCommand(), profile.ProfileFrame.seglist, utils.split(), profile.ProfileFrame.transect_length, profile.ProfileFrame.ylabel, base.BasePlotFrame.ylabel, and dialogs.TextDialog.ylabel.
Referenced by profile.ProfileFrame.OnCreateProfile().
def profile.ProfileFrame.Update | ( | self | ) |
Update profile after changing options.
Definition at line 322 of file profile.py.
References profile.ProfileFrame.CreatePlotList(), base.BasePlotFrame.DrawPlot(), and base.BasePlotFrame.SetGraphStyle().
Referenced by wizard.DatumPage.OnDText(), colorrules.VectorColorTable.OnLayerSelection(), manager.GroupPage.OnMkGroup(), and mapwindow.BufferedWindow.TextBounds().
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.raster |
Definition at line 71 of file profile.py.
Referenced by profile.ProfileFrame.OnSelectRaster(), profile.ProfileFrame.OnStats(), profile.ProfileFrame.SaveProfileToFile(), and profile.ProfileFrame.SetupProfile().
profile.ProfileFrame.rasterList |
Definition at line 57 of file profile.py.
Referenced by profile.ProfileFrame.OnCreateProfile(), profile.ProfileFrame.OnSelectRaster(), profile.ProfileFrame.SaveProfileToFile(), and profile.ProfileFrame.SetupProfile().
profile.ProfileFrame.seglist |
Definition at line 60 of file profile.py.
Referenced by profile.ProfileFrame.OnDrawTransect(), and profile.ProfileFrame.SetupProfile().
profile.ProfileFrame.toolbar |
Definition at line 50 of file profile.py.
Referenced by mapwindow.BufferedWindow.OnDragging().
profile.ProfileFrame.transect_length |
Definition at line 62 of file profile.py.
Referenced by profile.ProfileFrame.CreateDatalist(), profile.ProfileFrame.OnStats(), and profile.ProfileFrame.SetupProfile().
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().