Last data update: 2014.03.03

R: Convert Between Incidence Angle and Ray Parameter
A2P.linR Documentation

Convert Between Incidence Angle and Ray Parameter

Description

Given an atmosphere and elevation, converts incidence angle to ray parameter, or vice-versa.

Usage

A2P.lin(angle, z, az, ATM)
P2A.lin(p, z, az, ATM)

Arguments

p

Ray parameter (s/m)

angle

Incidence angle (from vertical) in degrees

z

Elevation (m)

az

Compass azimuth (degrees)

ATM

Linear atmosphere

Value

Ray parameter (s/m) or incidence angle (degrees).

Author(s)

Jake Anderson

Examples

ATM = CheckAtm.lin()
A2P.lin(50, 50, 0, ATM)
P2A.lin(0.002321347, 50, 0, ATM)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(AtmRay)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/AtmRay/A2P.lin.Rd_%03d_medium.png", width=480, height=480)
> ### Name: A2P.lin
> ### Title: Convert Between Incidence Angle and Ray Parameter
> ### Aliases: A2P.lin P2A.lin
> ### Keywords: misc
> 
> ### ** Examples
> 
> ATM = CheckAtm.lin()
> A2P.lin(50, 50, 0, ATM)
[1] 0.002321347
> P2A.lin(0.002321347, 50, 0, ATM)
[1] 50.00001
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>