
Last chance! 50% off unlimited learning
Sale ends in
Given a global hemispheric field of view defined by a single latitudinal and longitudinal centroid focal point, project geographic points onto the hemishpere.
project_to_hemisphere(lon, lat, lon0, lat0)
vector of longitudes.
vector of latitudes.
longitude of focus coordinates.
latitude of focus coordinates.
returns a data frame.
project_to_hemisphere
identifies whether each pair of coordinates in the lat
and lon
vectors is in a field of view defined by a centroid focal point (lat0, lon0)
and returns a data frame containing the original coordinates and a column indicating if the coordinates are in the field of view (TRUE
or FALSE
).
# NOT RUN {
lon <- seq(-180, 180, length.out=60)
lat <- rep(seq(-90, 90, length.out=30), 2)
project_to_hemisphere(lon, lat , 0, 0)
# }
Run the code above in your browser using DataLab