eradiate.data.convert.concat_particles_veff#

eradiate.data.convert.concat_particles_veff(datasets)#

Concatenate several Prt-MS v1 datasets along the veff dimension.

Parameters:

datasets (list of xr.Dataset) – Prt-MS v1 datasets (as produced by make_prt_ms_v1()), each with a reff/veff-dimensioned layout. Every dataset may cover one or several veff values. All datasets must share the same w, reff, and phamat coordinates.

Returns:

xr.Dataset – Prt-MS v1 dataset with a veff dimension spanning the concatenation of all input datasets’ veff values. iangle/imom are padded to the largest size found across inputs. Only attributes common to all input datasets are retained.

Raises:

ValueError – If the datasets do not share the same w, reff, or phamat coordinates.