scientimate.convertdir#

dirout = scientimate.convertdir(dirin, CalcMethod='metetotrig')

Description#

Convert direction from one system to another one

Inputs#

dirin

Direction to be converted in (Degree)

CalcMethod=’metetotrig’
Direction conversion method
‘metetotrig’: Converting meteorological direction to trigonometric direction, trig=-mete+270;
‘trigtomete’: Converting trigonometric direction to meteorological direction, mete=270-trig;
‘aztomete’: Converting azimuth (bearing) to meteorological direction, mete=az+180;
‘metetoaz’: Converting meteorological direction to azimuth (bearing), az=mete-180;
‘aztotrig’: Converting azimuth (bearing) to trigonometric direction, trig=-az+90;
‘trigtoaz’: Converting trigonometric direction to azimuth (bearing), az=90-trig;
meteorological direction:
0 (degree): from North, 90 (degree): from East, 180 (degree): from South, 270 (degree): from West
azimuth (bearing) direction which is measured clockwise from the north:
0 (degree): toward North, 90 (degree): toward East, 180 (degree): toward South, 270 (degree): toward West

Outputs#

dirout

Converted direction in (Degree)

Examples#

import scientimate as sm

metedir=[0,90,180,270,360]
dirout=sm.convertdir(metedir,'metetotrig')

azimuth=[0,90,180,270,360]
dirout=sm.convertdir(azimuth,'aztomete')

azimuth=[0,90,180,270,360]
dirout=sm.convertdir(azimuth,'aztotrig')

References#