scientimate.reckongc#
lat2, lon2 = scientimate.reckongc(lat1, lon1, arclen, azimuthdir, R=6371000, dispout='no')
Description#
Calculate end point (Latitude,Longitude) from start point (Latitude,Longitude) and distance and azimuth (bearing) using Great Circle
Inputs#
- lat1
Latitude (y) of start point (first point) in (Degree)
- lon1
Longitude (x) of start point (first point) in (Degree)
- arclen
Total distance from start point to end point in (m)
- azimuthdir
- Azimuth (bearing or compass direction) from start point to end point in (Degree)0 (degree): toward North, 90 (degree): toward East, 180 (degree): toward South, 270 (degree): toward West
- R=6371000
Earth radius in (m), mean earth radius=6371000 m
- dispout=’no’
Define to display outputs or not (‘yes’: display, ‘no’: not display)
Outputs#
- lat2
Latitude (y) of end point (last point) in (Degree)
- lon2
Longitude (x) of end point (last point) in (Degree)
Examples#
import scientimate as sm
lat1=29.5 #First point
lon1=-89.4 #First point
arclen=22239 #Arc length
azimuthdir=0 #Azimuth
lat2,lon2=sm.reckongc(lat1,lon1,arclen,azimuthdir)
lat1=[29.5,29] #First point
lon1=[-89.4,-89] #First point
arclen=[22239,147410] #Arc length
azimuthdir=[0,319.21] #Azimuth
lat2,lon2=sm.reckongc(lat1,lon1,arclen,azimuthdir,6371000,'yes')