Learn R Programming

RSEIS (version 2.6-0)

GreatDist: Distance Along Great Circle Arc

Description

Distance Along Great Circle Arc in degrees, kilometers

Usage

GreatDist(LON1, LAT1, LON2, LAT2, EARTHRAD= 6371)

Arguments

Value

  • LIST:
  • draddistance in radians
  • ddegdistance in degrees
  • dkmdistance in kilometers

Examples

Run this code
##########   get distance between London, England and Santiago, Chile
london = c(51.53333, -0.08333333)
santiago = c(-33.46667, -70.75)

GreatDist(london[2], london[1], santiago[2], santiago[1])

Run the code above in your browser using DataLab