palmmeteo/utils.py(3)

NAME
palmmeteo/utils.py

SYNOPSIS

  Classes
class palmmeteo.utils.NotWholeTimestep
class palmmeteo.utils.DTIndexer
class palmmeteo.utils.SliceExtender
class palmmeteo.utils.SliceBoolExtender
class palmmeteo.utils.Workflow

  Namespaces
namespace palmmeteo
namespace palmmeteo.utils

  Functions
def palmmeteo.utils.distribute (what, into, reverse=False)
def palmmeteo.utils.distribute_chunks (sizes, nthreads, prefix=(), reverse=False)
def palmmeteo.utils.find_free_fname (fpath, overwrite=False)
def palmmeteo.utils.tstep (td, step)
def palmmeteo.utils.ensure_dimension (f, dimname, dimsize)
def palmmeteo.utils.getvar (f, varname, *args, **kwargs)
def palmmeteo.utils.assert_dir (filepath)

  Variables
palmmeteo.utils.ax_ = np.newaxis
int palmmeteo.utils.rad = np.pi / 180.
palmmeteo.utils.td0 = datetime.timedelta(0)
palmmeteo.utils.utc = datetime.timezone.utc
palmmeteo.utils.midnight = datetime.time(0)
palmmeteo.utils.utcdefault = lambda dt: dt.replace(tzinfo=utc) if dt.tzinfo is None else dt
palmmeteo.utils.midnight_of = lambda dt: datetime.datetime.combine(dt.date(), midnight, dt.tzinfo)
palmmeteo.utils.fext_re = re.compile(r'\.(\d{3})$')
palmmeteo.utils.where_range = lambda mask: (np.argmax(mask), len(mask)-np.argmax(mask[::-1]))

Author

Generated automatically by Doxygen for PALM-meteo from the source code.