add_scalar
- cosipy.postprocessing.vtk_plots.plot_cosipy_fields_vtk.add_scalar(file_path, var, timestamp, mean=False, gltf=False)[source]
Selects data from array at specific time or as a daily mean.
- Parameters:
file_path (str) – Path to netcdf file.
var (str) – Short name of variable in data.
timestamp (str) – Time index of target data.
mean (bool) – If True, computes and selects the daily mean. Otherwise, selects data at
timestamp. Default False.gltf (bool) – If True, export as a 3D glTF object. Default False.
- Returns:
Array selection at target time.