astrohack.utils.conversion
Functions
|
Converts a float value to decibels |
|
Convert between unit of the same kind |
|
Convert gridded 5D data or aperture data from polariza correlations to Stokes |
|
|
|
|
|
Convert HA + DEC to elevation. |
|
Module Contents
- to_db(val: float)[source]
Converts a float value to decibels :param val: Value to be converted to decibels :type val: float
- Returns:
Value in decibels
- convert_unit(unitin, unitout, kind)[source]
Convert between unit of the same kind :param unitin: Origin unit :param unitout: Destination unit :param kind: ‘trigonometric’ or ‘length’
- Returns:
Conversion factor to go from unitin to unitout
- convert_5d_grid_to_stokes(grid, pol_axis)[source]
Convert gridded 5D data or aperture data from polariza correlations to Stokes :param grid: Gridded 5D data expected to be of shape [time, chan, pol, x, y] :param pol_axis: The polarization correlation axis
- Returns:
the same data now converted to Stokes parameters