targetLL function

Target Lat-Lon

Target Lat-Lon

Get a target Lat-Lon from a set of Lat-Lon pairs

targetLL(sta, rdist = 100)

Arguments

  • sta: station list (with slots lat lon)
  • rdist: radius in km

Details

Uses the Median station as the center and returns the lat-lon extents of the target region.

Returns

list(

  • A: matrix with lat-lon pairs (lons=(0,360)

  • B: matrix with lat-lon pairs (lons=(-180, 180))

  • mlat: median latitude

  • mlon: median longitude

  • Jlat: range of lats

  • Jlon: range of lons

  • proj: projection list

Author(s)

Jonathan M. Leesjonathan.lees@unc.edu

Examples

sta=list( lat=rnorm(10, mean=60, sd=0.5), lon = rnorm(10, mean=60, sd=0.5)) A = targetLL(sta, rdist = 100) print(A) sta=list( lat=rnorm(10, mean=-30, sd=0.5), lon = rnorm(10, mean=-40, sd=0.5)) A = targetLL(sta, rdist = 100) print(A)
  • Maintainer: Jonathan M. Lees
  • License: GPL (>= 2)
  • Last published: 2024-07-09

Useful links