Conversion between spherical PoR to geographical coordinate system
Source:R/coordinates.R
por_transformation_df.Rd
Transformation from spherical PoR to geographical coordinate system and vice versa
Arguments
- x
"data.frame"
containinglat
andlon
coordinates of a point in the geographical CRS or thelat.PoR
,lon.PoR
) of the point in the PoR CRS.- PoR
Pole of Rotation.
"data.frame"
or object of class"euler.pole"
containing the geographical coordinates of the Euler pole
Value
"data.frame"
with the transformed coordinates
(lat.PoR
and lon.PoR
for PoR CRS,
or lat
and lon
for geographical CRS).
Examples
data("nuvel1")
por <- subset(nuvel1, nuvel1$plate.rot == "na") # North America relative to Pacific plate
data("san_andreas")
san_andreas.por <- geographical_to_PoR(san_andreas, por)
head(san_andreas.por)
#> lat.PoR lon.PoR
#> 1 56.93219 -82.67182
#> 2 58.01202 -74.48278
#> 3 57.93239 -74.80319
#> 4 57.83707 -75.51138
#> 5 58.17336 -76.62093
#> 6 57.84485 -76.16849
head(PoR_to_geographical(san_andreas.por, por))
#> lat lon
#> 1 35.714 -119.966
#> 2 32.940 -115.627
#> 3 33.017 -115.831
#> 4 33.242 -116.209
#> 5 33.909 -116.350
#> 6 33.515 -116.471