Functions for dealing with a netCDF file’s time axis

class pyhomogenize.time_control(*args, **kwargs)[source]

Class for dealing with a netCDF file’s time axis.

The time_control contains the ǹetcdf_basics.

__init__(*args, **kwargs)[source]

Methods

time_control.get_duplicates()

Get string of duplicated time steps.

time_control.get_missings()

Get string of missing time steps.

time_control.get_redundants()

Get string of redundant time steps.

time_control.check_timestamps([selection, ...])

Check netCDF file's time axis.

time_control.select_time_range(time_range[, ...])

Select user-given time slice from xr.Dataset

time_control.select_limited_time_range([output])

Select time slice from xr.Dataset satisfying user-given conditions.

time_control.within_time_range(...[, fmt])

Checks whether netCDF files time axis is within user-given borders.

Attributes

time_control.time()

netCDF file's time axis

time_control.frequency()

netCDF file's frequency

time_control.time_fmt()

predefined explicit format string derived from frequency

time_control.equalize()

predefined list of datetime.datetime instance attributes to be ignored

time_control.calendar()

Calendar type read from netCDF file