|
pyCAPS
pyCAPS: A Python Extension Module for CAPS
|
Defines a CAPS DataSet Object. More...
Inherits object.
Public Member Functions | |
| name (self) | |
| Property returns the name of the CAPS DataSet Object. | |
| history (self) | |
| Returns the history list of the CAPS DataSet Object. | |
| data (self) | |
| Executes caps_getData on data set object to retrieve data set variable. | |
| xyz (self) | |
| Executes caps_getData on data set object to retrieve XYZ coordinates of the data set. | |
| connectivity (self) | |
| Executes caps_getTriangles on data set's vertex set to retrieve the connectivity (triangles only) information for the data set. | |
| link (self, source, dmethod=caps.dMethod.Interpolate) | |
| Link this DataSet to an other CAPS DataSet Object. | |
| view (self, fig=None, numDataSet=1, dataSetIndex=0, **kwargs) | |
| Visualize data set. | |
| writeTecplot (self, filename=None, file=None) | |
| Write data set to a Tecplot compatible data file. | |
| writeVTK (self, filename) | |
| Write data set to a VTK compatible data file. | |
Defines a CAPS DataSet Object.
Created via VertexSet.dataSet.create().
| DataSet.attr | AttrSequence of ValueIn attributes |
| connectivity | ( | self | ) |
Executes caps_getTriangles on data set's vertex set to retrieve the connectivity (triangles only) information for the data set.
| data | ( | self | ) |
Executes caps_getData on data set object to retrieve data set variable.
| link | ( | self, | |
| source, | |||
dmethod = caps.dMethod.Interpolate |
|||
| ) |
Link this DataSet to an other CAPS DataSet Object.
| source | The source DataSEt Object |
| dmethod | Transfter method: dMethod.Interpolate or "Interpolate", tMethod.Conserve or "Conserve" |
| view | ( | self, | |
fig = None, |
|||
numDataSet = 1, |
|||
dataSetIndex = 0, |
|||
| ** | kwargs | ||
| ) |
Visualize data set.
The function currently relies on matplotlib to plot the data.
| fig | Figure object (matplotlib::figure) to append image to. |
| numDataSet | Number of data sets in DataSet.view$fig. |
| dataSetIndex | Index of data set being added to DataSet.view$fig. |
| **kwargs | See below. |
Valid keywords:
| filename | Save image(s) to file specified (default - None). |
| colorMap | Valid string for a, matplotlib::cm, colormap (default - 'Blues'). |
| showImage | Show image(s) (default - True). |
| title | Set a custom title on the plot (default - VertexSet= 'name', DataSet = 'name', (Var. '#') ). |
| writeTecplot | ( | self, | |
filename = None, |
|||
file = None |
|||
| ) |
Write data set to a Tecplot compatible data file.
A triagulation of the data set will be used for the connectivity.
| file | Optional open file object to append data to. If not provided a filename must be given via the keyword arguement DataSet.writeTecplot$filename. |
| filename | Write Tecplot file with the specified name. |
| writeVTK | ( | self, | |
| filename | |||
| ) |
Write data set to a VTK compatible data file.
A triagulation of the data set will be used for the connectivity.
| filename | Write VTK file with the specified name. |
| xyz | ( | self | ) |
Executes caps_getData on data set object to retrieve XYZ coordinates of the data set.