runtraj.Project.concentration#
- Project.concentration(sel=None)[source]#
Load the concentration result of every selected simulation that has one.
A result is a tree with a child per grid (
runtraj.concentration). The grids of two releases are centered on different places, and so not joined into one: each simulation keeps its own.- Parameters:
sel (
Any) – The simulations, as forstatus(). Every simulation of a variant that makes concentration by default.- Returns:
{(release, variant, realization): xarray.DataTree}, in the order of sel. Simulations without a result are left out.- Return type:
- Raises:
ValueError – If sel names a variant that makes another type of result, or no variant of the project makes concentration.
Examples
>>> results = project.concentration() >>> tree = results[ ... ("202107150130_-111.848_40.766_10", "conc", None) ... ] >>> tree["local"]["TEST"].sum("time")