circular_variable_difference: A function which calculates the smallest difference between...

Description Usage Arguments Details Value

Description

This function calculates the smallest difference between two circularly defined values. Examples from circular variables are (azimuth angle, hour of the day, day of the year)

Usage

1
circular_variable_difference(value1,value2,values_in_full_circle)

Arguments

value1

value which is compared against the other value

value2

value which the first value is compared against

values_in_full_circle

maximum value for value1 and value2

Details

Function call (circular_variable_difference(10,350,360)) gives 20 degrees as the result: 10 degrees is 20 degrees more compared to 350 degrees, not 340 degrees less.

Value

smallest difference for the value1 compared against value2


jylhaisi/post-processing-mos-point-utils documentation built on May 20, 2019, 6:14 p.m.