scientimate.enu2truenorth#
directionTN = scientimate.enu2truenorth(directionENU, dispout='no')
Description#
Convert mathematical direction (angle) from ENU (East North Up) coordinate system to compass direction with respect to true north
Inputs#
- directionENU
- Direction (angle) in ENU (East North Up) coordinate system between 0 and 360 (Degree)If coordinate system is ENU, then x is East and y is North
- dispout=’no’
- Define to display outputs or not (‘yes’: display, ‘no’: not display)Note: inputs can be as a single value or a 1-D vertical array
Outputs#
- directionTN
- Direction (angle) in compass direction with respect to true north (Degree)In true north coordinate system, wave comes from as:0 degree: from north, 90 degree: from east, 180 degree: from south, 270 degree: from west
Examples#
import scientimate as sm
import numpy as np
directionTN=sm.enu2truenorth(90,'yes')
directionTN=sm.enu2truenorth([15,30,45,60,90],'no')
directionTN=sm.enu2truenorth(np.array([15,30,45,60,90]),'no')