DataArray accessor methods
Each of the following functions can be used in an object-oriented style thanks
to xarray’s accessor mechanism. The class shnitsel._generated_accessors.DataArrayAccessor
is registered as an accessor upon import of shnitsel.xarray, which means
that it is instatiated as the sh property of every xarray.DataArray.
In practice, this means that instead of writing
shnitsel.core.postprocess.to_xyz(da)
you can write
The shnitsel.xarray.DAShnitselAccessor is opinionated about whether a method
is suitable for the xarray.DataArray in question. The list of suitable
When working in a notebook, the HTML representation of the accessor (type da.sh) will show
suitable methods and explain why the others are unsuitable. This information is also
available through the da.st.suitable list and the da.st.unsuitable dictionary.
DataArray.st.angle(i, j, k[, deg])
|
Wrapper for shnitsel.geo.geocalc.angle(). |
DataArray.st.assign_levels([levels])
|
Wrapper for shnitsel.data.multi_indices.assign_levels(). |
DataArray.st.default_mol()
|
Wrapper for shnitsel.bridges.default_mol(). |
DataArray.st.dihedral(i, j, k, l[, deg, full])
|
Wrapper for shnitsel.geo.geocalc.dihedral(). |
DataArray.st.distance(i, j)
|
Wrapper for shnitsel.geo.geocalc.distance(). |
DataArray.st.expand_midx(midx_name, ...)
|
Wrapper for shnitsel.data.multi_indices.expand_midx(). |
DataArray.st.flatten_levels(idx_name, levels)
|
Wrapper for shnitsel.data.multi_indices.flatten_levels(). |
DataArray.st.get_bond_lengths([matches_or_mol])
|
Wrapper for shnitsel.geo.geocalc.get_bond_lengths(). |
DataArray.st.keep_norming([exclude])
|
Wrapper for shnitsel.analyze.generic.keep_norming(). |
DataArray.st.mgroupby(levels)
|
Wrapper for shnitsel.data.multi_indices.mgroupby(). |
DataArray.st.msel(**kwargs)
|
Wrapper for shnitsel.data.multi_indices.msel(). |
DataArray.st.norm([dim, keep_attrs])
|
Wrapper for shnitsel.analyze.generic.norm(). |
DataArray.st.pairwise_dists_pca(**kwargs)
|
Wrapper for shnitsel.analyze.pca.pairwise_dists_pca(). |
DataArray.st.pca(dim[, n_components, ...])
|
Wrapper for shnitsel.analyze.pca.pca(). |
DataArray.st.sel_trajs(trajids_or_mask[, invert])
|
Wrapper for shnitsel.data.multi_indices.sel_trajs(). |
DataArray.st.subtract_combinations(dim[, labels])
|
Wrapper for shnitsel.analyze.generic.subtract_combinations(). |
DataArray.st.to_mol([charge, covFactor, ...])
|
Wrapper for shnitsel.bridges.to_mol(). |
DataArray.st.to_xyz([comment])
|
Wrapper for shnitsel.bridges.to_xyz(). |
DataArray.st.traj_to_xyz()
|
Wrapper for shnitsel.bridges.traj_to_xyz(). |