Learn R Programming

StratigrapheR (version 0.0.2)

transphere: Convertion between declinaison/inclination/intensity and cartesian coordinates

Description

Convertion between declinaison/inclination/intensity and cartesian coordinates (modified from RFOC package)

Usage

transphere(dec = NA, inc = NA, int = 1, x = NA, y = NA, z = NA)

Arguments

dec

declination of the data; it is the angle from the north taken on an horizontal plane. It is measured clockwise from North and ranges from 0 to 360<U+00B0> (Tauxe 2010). Values outside this range are corrected by incfix().

inc

inclination of the data; it is the angle from the horizontal, is positive downward, and ranges from +90<U+00B0> for straight down to -90<U+00B0> for straight up (Tauxe, 2010). Values outside this range are corrected by incfix().

int

intensity of the data. Defaults to one (unit sphere).

x, y, z

cartesian coordinates. x is the North, y the East, and z straight down. If dec and inc are not provided they are used to be converted back in dec, inc and int data. Output is corrected by incfix().

Value

a list of coordinates, in cartesian form or dec, inc, int form following the input

See Also

fmod, dipfix and incfix

Examples

Run this code
# NOT RUN {
transphere(dec = c(65,135), inc = c(32,74))

l <- transphere(dec = c(65,135), inc = c(32,74))
transphere(x = l$x, y = l$y, z = l$z)

# }

Run the code above in your browser using DataLab