Units¶
- class sonic.Units¶
- Method Summary
- static ARCSECtouRAD(val_ARCSEC)¶
Conversion function from arcseconds to microradians. Supports vectorized input.
- Inputs:
val_ARCSEC (1xn double): vector of angles in arcseconds
- Outputs:
val_uRAD (1xn double): vector of angles in microradians
Last revised: 2/18/24 Last author: Michael Krause
- static AUtoKM(val_AU)¶
Conversion function from astronomical units to kilometers, as defined in the SI Brochure, 9th edition:
Supports vectorized input.
- Inputs:
val_AU (1xn double): vector of distances in astronomical units (AU)
- Outputs:
val_KM (1xn double): vector of distances in kilometers
Last revised: 10/4/24 Last author: Tara Mina
- static DEGtoHMS(val_DEG)¶
Conversion function from degrees to Hours/Mins/Seconds. Supports vectorized input.
- Inputs:
val_DEG (1xn double): vector of angles in degrees
- Outputs:
val_HMS (3xn double): vector of angles, first row = hours, second row = minutes, third row = seconds
Last revised: 2/14/24 Last author: Michael Krause
- static DEGtoRAD(val_DEG)¶
Conversion function from degrees to radians. Supports vectorized input.
- Inputs:
val_DEG (1xn double): vector of angles in degrees
- Outputs:
val_RAD (1xn double): vector of angles in radians
Last revised: 2/14/24 Last author: Michael Krause
- static HMStoDEG(val_HMS)¶
Conversion function from Hours/Mins/Seconds to degrees. Supports vectorized input.
- Inputs:
val_HMS (3xn double): vector of angles, first row = hours, second row = minutes, third row = seconds
- Outputs:
val_DEG (1xn double): vector of angles in degrees
Last revised: 2/14/24 Last author: Michael Krause
- static KMtoAU(val_KM)¶
Conversion function from kilometers to astronomical units, as defined in the SI Brochure, 9th edition:
Supports vectorized input.
- Inputs:
val_KM (1xn double): vector of distances in kilometers
- Outputs:
val_AU (1xn double): vector of distances in astronomical units (AU)
Last revised: 10/4/24 Last author: Tara Mina
- static MASPYtoRPS(val_MASPY)¶
Conversion function from milliarcsecond per year to radians per second. Supports vectorized input.
- Inputs:
val_MASPY (1xn double): vector of angular rates in milliarcseconds per year
- Outputs:
val_RPS (1xn double): vector of angular rates in radians per second
Last revised: 2/14/24 Last author: Michael Krause
- static MAStoDEG(val_MAS)¶
Conversion function from milliarcseconds to degrees. Supports vectorized input.
- Inputs:
val_MAS (1xn double): vector of angles in milliarcseconds
- Outputs:
val_DEG (1xn double): vector of angles in degrees
Last revised: 2/14/24 Last author: Michael Krause
- static MAStoRAD(val_MAS)¶
Conversion function from milliarcseconds to radians. Supports vectorized input.
- Inputs:
val_MAS (1xn double): vector of angles in milliarcseconds
- Outputs:
val_RAD (1xn double): vector of angles in radians
Last revised: 2/14/24 Last author: Michael Krause
- static PYtoPS(val_PY)¶
Conversion function from [unit] per year to [unit] per second. Supports vectorized input.
- Inputs:
val_PY (1xn double): vector of values per year
- Outputs:
val_PS (1xn double): vector of values per second
Last revised: 2/14/24 Last author: Michael Krause
- static RADtoDEG(val_RAD)¶
Conversion function from radians to degrees. Supports vectorized input.
- Inputs:
val_RAD (1xn double): vector of angles in radians
- Outputs:
val_DEG (1xn double): vector of angles in degrees
Last revised: 2/14/24 Last author: Michael Krause
- static uRADtoARCSEC(val_uRAD)¶
Conversion function from microradians to arcseconds. Supports vectorized input.
- Inputs:
val_uRAD (1xn double): vector of angles in microradians
- Outputs:
val_ARCSEC (1xn double): vector of angles in arcseconds
Last revised: 2/18/24 Last author: Michael Krause