other

drop_empty_times(ds, x, drop_vars=['lst'], *args)

Checks for time coordinates at which there is no valid to for any of the variables in drop_vars and removes those coordinates.

Parameters:
  • ds (xr.Dataset) – Dataset to check.

  • x (None) – Not used.

  • drop_vars (list, optional) – Variables to check for valid data, by default [“lst”].

Returns:

Dataset with adjusted time coordinates.

Return type:

xr.Dataset