Package nMOLDYN :: Package GUI :: Module PlotNetCDFVariableDialog :: Class PlotNetCDFVariableDialog |
[hide private]
[frames] | no frames]

# Class PlotNetCDFVariableDialog

source code

    Widgets.Toplevel --+
                       |
                      PlotNetCDFVariableDialog

Sets up a dialog used to plot variables present in a NetCDF file.

Instance Methods | [hide private]
__init__(self, parent, title=None, netcdf=None, xVar=None, yVar=None, zVar=None) The constructor. | source code
body(self, master) Create dialog body. | source code
buttonbox(self) Add standard button box. | source code
ok(self, event=None) | source code
cancel(self, dialog, event=None) | source code
validate(self) | source code
apply(self) | source code
openSettingsDialog(self) This method will open the dialog to set up the global settings. | source code
resetPlots(self) This method will clear up all the displayed plots. | source code
exportPlotDialog(self) This method pops up a dialog from which the plotted datas can be exported to an ASCII file. | source code
exportPlot(self, event=None) This method exports plotted datas to an ASCII file. | source code
selectXVariable(self, event) | source code
displayVariables(self) This method display the numeric variables found in the NetCDF file into their appropriate listbox. | source code
openNetCDF(self, event=None) This method opens a NetCDF file and updates the dialog with the data read from that file. | source code
plotXY(self) This method display a 2D plot. | source code
displayPlotSlices(self, event) This call back plot the orthogonal slices defined by the moving cursor of a 3D plot. | source code
plotXYZ(self) This method display a 2D plot. | source code

Method Details | [hide private]

### __init__(self, parent, title=None, netcdf=None, xVar=None, yVar=None, zVar=None) (Constructor) | source code
The constructor. Parameters: `parent` - the parent widget. `title` (string) - a string specifying the title of the dialog. `netcdf` (a string or a Scientific.IO.NetCDF._NetCDFFile object) - the name of a NetCDF file to plot (string) or an opened NetCDF trajectory file. `xVar` (string) - the NetCDF variable name of the X variable to plot. `yVar` () - the NetCDF variable name of the Y variable to plot. `zVar` () - the NetCDF variable name of the Z variable to plot.

### body(self, master) | source code
Create dialog body. Return widget that should have initial focus.

### openNetCDF(self, event=None) | source code
    This method opens a NetCDF file and updates the dialog with the data read from that file.
    Arguments:
        -event: Tkinter event.