Description Usage Arguments Value Author(s) Source Examples
View source: R/distance-fields.R
Get latitude and longitude field vectors from the latitude and longitude
attributes of a "pField"
or "pTs"
object. These fields follow
the same spatial pattern as the input object (i.e., for the first latitude
the indices run along all longitudes, then jump to the next latitude, and so
further).
1 | GetLatLonField(data, simplify = FALSE)
|
data |
a |
simplify |
if |
a two component list or 2 x n matrix.
Thomas Laepple
Function copied from "basis.R" in paleolibary/src/.
1 2 3 4 5 6 7 8 9 10 11 | field <- pField(lat = seq(0, 90, 10), lon = c(-10, 0, 10))
latlons <- GetLatLonField(field)
latlons$lat2d
latlons$lon2d
# subset incompletely to create a pTs object
field <- field[, 1 : 4]
latlons <- GetLatLonField(field)
latlons$lat2d
latlons$lon2d
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.