rSL: To calculate the value of r, S and L.

Description Usage Arguments Value Examples

View source: R/rSL.R

Description

With this function it is possible to calculate the value of r, S and L.

Usage

1
rSL(x, pto_lat, digits = 4)

Arguments

x

Selection of Ellipsoid to work between 1 = 'PSAD-56', 2 = 'SAD-69', 3 = 'WGS-84', 4 ='GRS-80 (SIRGAS)'.

pto_lat

Point name and the latitude in radians as data.frame.

digits

Number of digits the seconds are rounded to. DEFAULT: 4

Value

data.frame with the data in the following order: "Pt", "r", "S", "L".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# Point name
Pto <- "St1"

# Latitude
g <- -33
m <- 38
s <- 30.123456

rad_lat <- radians(g, m, s)
print(rad_lat)

# Ellipsoidal height and Horizontal distance as data.frame
pto_lat <- data.frame(Pto, rad_lat)

# To know the ellipsoids and the order open the Ellipsoids in the package and look for it number
Ellip <- Ellipsoids
#View(Ellip)

# We choose the number 47 which is WGS84
value <- rSL(47, pto_lat, digits = 4)
print(value)

GeodesiCL documentation built on May 25, 2021, 5:10 p.m.