azimuth
(New page: {| cellspacing="0" cellpadding="0" width="100%" background-color="transparent" | style="border:none; margin:none; padding:none;" valign="top"| <!-- LEFT COLUMN --> <div style="border:0; m...) |
|||
Line 1: | Line 1: | ||
− | { | + | {{DavinciWiki_Function| |
− | + | 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. | |
− | + | | | |
− | + | Inputs are target lon, target lat, viewing/source lon, viewing/source lat. | |
− | + | | | |
− | + | [[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. | All inputs and output are in degrees and longitude is east. Inputs can be arrays. | ||
− | + | | | |
− | + | ||
− | + | ||
− | + | ||
dv>b = azimuth(230, 65.5, 231.2, 60.3) | dv>b = azimuth(230, 65.5, 231.2, 60.3) | ||
173.462 | 173.462 | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | *[[atan2]] | ||
+ | | | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 17:43, 30 December 2007
Contents: Description, Arguments, Usage, Examples, Related Functions, Source Supported Under Version: >1.00
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
All other topics
Related Functions
Recent Library Changes Created On: 12-30-2007 |