R/latlonz2wpx.R

Defines functions latlonz2wpx

Documented in latlonz2wpx

latlonz2wpx<-function(twpx, stas)
{
  ####  populate a pick list with the lat-lon-z from a station list
  msta = match(twpx$name, stas$name)

  latz = stas$lat[msta]
  lonz = stas$lon[msta]
  zees =stas$z[msta]

  twpx$lat = latz
  twpx$lon = lonz
  twpx$z = zees
  return(twpx)

}

Try the Rquake package in your browser

Any scripts or data that you put into this service are public.

Rquake documentation built on Dec. 16, 2020, 5:06 p.m.