Accessors (erlab.accessors)¶
Some xarray accessors for convenient data analysis and visualization.
erlab provides a collection of accessors for convenient data analysis and
visualization. The source code is organized into several modules:
Utility functions for creating accessors. |
|
Defines miscellaneous accessors for general data manipulation and visualization. |
|
Defines an accessor for momentum conversion related utilities. |
|
Defines accessors for curve fitting. |
However, users should not import these modules directly. Instead, the accessors are
registered with xarray and can be accessed like attributes of
xarray.Dataset and xarray.DataArray objects.
All available accessor methods and attributes defined are documented below.
Dataset accessors¶
Methods¶
|
Visualize the data interactively. |
|
Interactive visualization of fit results. |
|
hvplot-based interactive visualization. |
|
Shortcut for |
|
Plot the coefficients and standard errors for each fitting parameter. |
DataArray accessors¶
General¶
Methods¶
|
Visualize the data interactively. |
|
Plot the data. |
|
Select and aggregate data along specified dimensions. |
|
Get the value of the specified attribute or coordinate. |
|
hvplot-based interactive visualization. |
|
Shortcut for |
|
Average data within a specified radius of a specified point. |
|
Alias for |
|
Return the maximum over dimensions while keeping their coordinates. |
|
Return the mean over dimensions while keeping their coordinates. |
|
Return the minimum over dimensions while keeping their coordinates. |
|
Return the sum over dimensions while keeping their coordinates. |
Momentum Space¶
Methods¶
|
Return a new DataArray with modified experimental configuration. |
|
Convert to momentum space. |
Convert coordinates to momentum space. |
|
Estimate the bounds of the data in momentum space. |
|
|
Estimate resolution for a given momentum axis. |
|
Return \(k_z\) for a given photon energy. |
|
Open the interactive momentum space conversion tool. |
|
Set offsets from normal emission angles. |
|
Set offsets like another DataArray. |
Attributes¶
Parameters passed to |
|
Retrieve the angular resolution of the data in degrees. |
|
Estimated minimum in-plane momentum resolution. |
|
Estimated minimum out-of-plane momentum resolution. |
|
Experimental configuration. |
|
Inner potential of the sample in eV. |
|
Momentum axes of the data after conversion. |
|
Angle offsets used in momentum conversion. |
|
Momentum axis perpendicular to the analyzer slit. |
|
Momentum axis parallel to the analyzer slit. |
|
Work function of the system in eV. |