get_selection
- cosipy.postprocessing.vtk_plots.plot_cosipy_fields_vtk.get_selection(array, timestamp, mean=False)[source]
Selects array from dataset at specific time or as a daily mean.
- Parameters:
array (xr.Dataset or xr.DataArray) – Labelled 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.
- Returns:
Array selection at target time.
- Return type:
DataArray