loran_to_gps: Convert Loran-C coordinates to GPS coordinates

View source: R/loran_to_gps.R

loran_to_gpsR Documentation

Convert Loran-C coordinates to GPS coordinates

Description

This function converts Loran-C coordinates to GPS coordinates by using a ghost browser to run this NOAA conversion tool: https://apps-nefsc.fisheries.noaa.gov/loran/public/

Usage

loran_to_gps(chain, loran_x, loran_w)

Arguments

chain

Chain

loran_x

Loran-C x value

loran_w

Loran-C w value

Details

The chain must be one of the following 4-digit numbers: 5930 (Canadian E. Coast), 5990 (Canadian W. Coast), 7270 (Newfoundland E. Coast), 7960 (Gulf of Alaska), 7980 (Southeast U.S.), 8290 (N. Central U.S.), 8970 (Great Lakes), 9610 (S. Central U.S.), 9940 (Western U.S.), 9960 (Northeast U.S.), 9990 (N. Pacific).

Value

Data frame of GPS values

Examples

# Convert Loran coordinates
# The second to last value is purposefully invalid
loran_x <- c(27138, 27142, 27144, 27144)
loran_w <- c(15338, 14327, 153366, 15336)
loran_to_gps(chain=9940, loran_x=loran_x, loran_w=loran_w)

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