plotSurface

cosipy.postprocessing.vtk_plots.plot_cosipy_fields_vtk.plotSurface(domain, variable, timestamp='', contours=10, gltf=False)[source]

Plot surface with contoured data.

Parameters:
  • domain (vtkXMLUnstructuredGridReader) – Reader for glacier surface XML data.

  • variable (str) – Short name of target variable.

  • timestamp (str) – Time index of target data. Default empty string.

  • contours (int) – Number of contours to plot. Default 10.

  • gltf (bool) – Export as 3D glTF object. Default False.

Returns:

Large image render of plotted data.

Return type:

vtkRenderLargeImage