MCALF utils¶
This sub-package contains:
Functions for processing spectra (mcalf.utils.spec).
Functions for smoothing n-dimensional arrays (mcalf.utils.smooth).
Functions for masking the input data to limit the region computed (mcalf.utils.mask).
Functions for helping with plotting (mcalf.utils.plot).
Miscellaneous utility functions (mcalf.utils.misc).
mcalf.utils Package¶
mcalf.utils.spec Module¶
Functions¶
|
Reinterpolate the spectrum. |
|
Normalise an individual spectrum to have intensities in range [0, 1]. |
|
Generate the default sigma profiles. |
mcalf.utils.smooth Module¶
Functions¶
|
Boxcar moving average. |
|
3D Gaussian kernel. |
|
Apply Gaussian smoothing to velocities. |
|
Mask 2D and 3D arrays of classifications. |
mcalf.utils.mask Module¶
Functions¶
|
Generate a circular mask of specified size. |
|
Generates a 2D array of specified shape of radial distances from the centre. |
mcalf.utils.plot Module¶
Functions¶
|
Hides labels for each dictionary provided if label already exists in legend. |
|
Calculate the extent from a resolution value along a particular axis. |
|
Calculate the extent from a particular data shape and resolution. |
|
Create a listed colormap for a specific number of classifications. |
mcalf.utils.misc Module¶
Functions¶
|
Returns each inputted argument, wrapping in a list if not already iterable. |
|
Load parameters from file, optionally evaluating variables from strings. |
|
Merges files generated by the |