block_from_gps: Extract CDFW block id from GPS coordinates

View source: R/block_from_gps.R

block_from_gpsR Documentation

Extract CDFW block id from GPS coordinates

Description

This function extracts CDFW block ids from a list of GPS coordinates.

Usage

block_from_gps(lat_dd, long_dd)

Arguments

lat_dd

Latitude in decimal degrees

long_dd

Longitude in decimal degrees

Value

Block id

Examples

# Extract block ids
# The second to last coordinate is purposefully incomplete
# The last coordinate is purposefully outside the block area
lat_dd <- c(33.338592, 35.551473, 36.716016, NA, 36.716016)
long_dd <- c(-118.310696, -121.108906, -121.820242, -121.820242, -130)
block_from_gps(lat_dd=lat_dd, long_dd=long_dd)

cfree14/wcfish documentation built on July 20, 2024, 7:50 p.m.