Documentation for pp_lib

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

./

pp_azdif.pro


Routines

top source pp_azdif

result = pp_azdif(dphase, dinc, dema)

Given the angle between two directions (dphase) with angle from vertical given by dinc, dema, returns the azimuth difference between them. All inputs and the output are in degrees. This function is vectorized, so the 3 input arguments can be of any dimension (must be the same for all 3), and that will be the dimension of the result. This function is complementary to pp_phase_angle.

Parameters

dphase in required

The angle between the two directions (phase angle), in degrees.

dinc in required

The angle between one of the directions and the vertical (incidence angle), in degrees.

dema in required

The angle between the other direction and the vertical (emission angle), in degrees.

Examples

Taking incidence and emission in the same plane:

print,pp_azdif(30d0,40d0,70d0) ;0.0000000 print,pp_azdif(110d0,40d0,70d0) ;180.00001
Taking incidence and emission at the horizon:
print,pp_azdif(110d0,90d0,90d0) ;110.00000

Author information

Author:

Paulo Penteado (pp.penteado@gmail.com), Sep/2009

Other attributes

Uses:

Statistics

Lines:
16 lines
Cyclomatic complexity:
1
Modified cyclomatic complexity:
1

File attributes

Modification date: Wed Jun 29 22:15:28 2016
Lines: 16
Docformat: rst rst