Learn R Programming

GEOmap (version 2.1)

targetLL: Target Lat-Lon

Description

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

Usage

targetLL(sta, rdist = 100)

Arguments

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

Value

  • list(
  • Amatrix with lat-lon pairs (lons=(0,360)
  • Bmatrix with lat-lon pairs (lons=(-180, 180))
  • mlatmedian latitude
  • mlonmedian longitude
  • Jlatrange of lats
  • Jlonrange of lons
  • projprojection list

Details

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

Examples

Run this code
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)

Run the code above in your browser using DataLab