get_psi_scale_properties#
- get_psi_scale_properties(variable)[source]#
Return the
Propsdescriptor for a PSI coordinate scale.- Parameters:
- variable
PsiScales Coordinate label. The first character is used for lookup, so
'r','radius','t','theta','p', and'phi'are all accepted.
- variable
- Returns:
- out
Props Descriptor for the requested coordinate axis, carrying the appropriate astropy unit (
PSI_rsunfor'r',PSI_anglefor't'and'p').
- out
- Raises:
ValueErrorIf the first character of variable is not
'r','t', or'p'.
Examples
>>> from psi_io.mhd_io import get_psi_scale_properties >>> get_psi_scale_properties('r').desc 'Radial Scale (Solar Radii)' >>> get_psi_scale_properties('theta').name # uses first character only 't'