azimuth

From DavinciWiki
Jump to: navigation, search

Description

Calculates azimuth in degrees clockwise from north from a target lat/lon to a viewing lat/lon (e.g. direction to the sun from a target surface). This is an approximation assuming a spherical planet, which is more than sufficient for most applications.

Arguments and Return Values

Inputs are target lon, target lat, viewing/source lon, viewing/source lat.

Usage

Syntax: azimuth(target_lon, target_lat, source_lon, source_lat)

All inputs and output are in degrees and longitude is east. Inputs can be arrays.

Examples

dv>b = azimuth(230, 65.5, 231.2, 60.3)
173.462

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 12-30-2007
Modified On: 11-17-2009

Personal tools