azimuth

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
(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:
{| cellspacing="0" cellpadding="0" width="100%" background-color="transparent"
+
{{DavinciWiki_Function|
| style="border:none; margin:none; padding:none;" valign="top"| <!-- LEFT COLUMN -->
+
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.
<div style="border:0; margin:0em 0em 0.2em 0.2em; ">
+
|
<div style="padding:1px; background-color:#eeeeee; border:1px solid #aaaaaa; font-size:90%; float:left; padding-right:5px; padding-left:5px; margin-bottom:.5em; margin-top:-1em;">
+
Inputs are target lon, target lat, viewing/source lon, viewing/source lat.
'''Contents:''' [[#Description|Description]], [[#Arguments and Return Values(s)|Arguments]], [[#Usage|Usage]]{{#if:{{{4|}}}|, [[#Examples|Examples]]}}{{#if:{{{5|}}}|, [[#Images|Images]]}}{{#if:{{{6|}}}|, [[#Major Sub Functions|Major Sub Functions]]}}{{7}}}|, [[#Related Functions|Related Functions]]}}
+
|
</div>
+
[[Syntax]]: azimuth(target_lon, target_lat, source_lon, source_lat)
<div style="clear:left">
+
{{DavinciWiki_FunctionBox|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.}}
+
{{DavinciWiki_FunctionBox|Arguments and Return Value(s)|Inputs are target lon, target lat, viewing/source lon, viewing/source lat}}
+
{{DavinciWiki_FunctionBox|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.
 
All inputs and output are in degrees and longitude is east.  Inputs can be arrays.
}}
+
|
</div>
+
<div style="clear:left">
+
{{DavinciWiki_FunctionIfBox|Examples|
+
 
  dv>b &#61; azimuth(230, 65.5, 231.2, 60.3)
 
  dv>b &#61; azimuth(230, 65.5, 231.2, 60.3)
 
  173.462
 
  173.462
 +
|
 +
|
 +
|
 +
*[[atan2]]
 +
|
 
}}
 
}}
  
</div>
 
| style="border: none; margin:none; padding:none;" width="20%" valign="top" | <!-- RIGHT COLUMN -->
 
<div style="border:0; margin:0.2em; margin-top:-.8em;" valign="top">
 
{{DavinciWiki_MiniNavBar}}
 
{{DavinciWiki_FunctionIfBox|Major Sub Functions|*[[atan2]]}}
 
{{DavinciWiki_FunctionIfBox|Related Functions|}}
 
</div></div>
 
|}
 
  
  

Revision as of 17:43, 30 December 2007


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

Related Functions

Recent Library Changes

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

Personal tools