boinor.util¶
Function helpers.
Functions¶
|
Norm of a Quantity vector that respects units. |
|
Generates range of astronomical times. |
|
Calculates the closest value in the given values. |
|
Return increasing, evenly spaced angular values over a specified interval. |
|
Scale angle into interval from 0 to 180 degree. |
Module Contents¶
- boinor.util.norm(vec, axis=None)¶
Norm of a Quantity vector that respects units.
- boinor.util.time_range(start, *, num_values=50, spacing=None, end=None, trformat=None, scale=None)¶
Generates range of astronomical times.
Added in version 0.8.0.
- Parameters:
- Returns:
result – Array of time values.
- Return type:
- boinor.util.find_closest_value(value, values)¶
Calculates the closest value in the given values.
- boinor.util.alinspace(start, stop=None, *, num=50, endpoint=True)¶
Return increasing, evenly spaced angular values over a specified interval.
- boinor.util.wrap_angle(angle, limit=180 * u.deg)¶
Scale angle into interval from 0 to 180 degree.