Questions tagged [azimuth]

An an angular measurement in a spherical coordinate system.

An azimuth is an angular measurement in a spherical coordinate system. The vector from an observer (origin) to a point of interest is projected perpendicularly onto a reference plane; the angle between the projected vector and a reference vector on the reference plane is called the azimuth.

An example is the position of a star in the sky. The star is the point of interest, the reference plane is the horizon or the surface of the sea, and the reference vector points north. The azimuth is the angle between the north vector and the perpendicular projection of the star down onto the horizon.

Azimuth is usually measured in degrees (°). The concept is used in navigation, astronomy, engineering, mapping, mining and artillery.

Useful Links

113 questions
3
votes
0 answers

Proj4j projection results wildly inaccurate

I'm trying to use EquidistantAzimuthalProjection to get the latitude/longitude of a new location based on its relative distance and bearing to a known location. Here is my source code: import org.osgeo.proj4j.ProjCoordinate import…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
3
votes
0 answers

Implementing an accurate compass with Android

It's been like 2 weeks trying different ways to calculate the azimuth of the phone, but I've found basically two problems: My problems A 360º turn is not always 360º. If I do my turn quickly, I get done my 360º before the end of the turn, if I go…
Rafael Ruiz Muñoz
  • 5,333
  • 6
  • 46
  • 92
3
votes
1 answer

Is the Azimuth on the equator equal to the one not on the equator?

I am trying to fully understand the concept of Azimuth and I am encountering some inconsistencies (or maybe it is my error). I show you some examples that do not match, hoping somebody can explain me how this really works. I show the coordinates in…
joaorodr84
  • 1,251
  • 2
  • 14
  • 33
3
votes
1 answer

Triangulation From Two Points To Find The Coordinates Of The Third

Seeking guidance on The topic. Must I really create what I'm sure is all ready out there. I'm simply looking for a basic program to throw on a garmin that will allow me: to create a way point using a GPS, log azimuth from said point. Travel to new…
user2569037
  • 31
  • 1
  • 2
3
votes
2 answers

Plotrix R package polar.plot symbol overwrite

I'm using a polar plot to describe satellite position during a time series. The following question uses the polar.plot function from the R package plotrix. An example…
Nate
  • 768
  • 3
  • 9
  • 17
3
votes
2 answers

PyEphem: can I calculate Sun's altitude from azimuth

I am using PyEphem to calculate the location of the Sun in the sky at various times. I have an Observer point (happens to be at Stonehenge) and can use PyEphem to calculate sunrise, sunset, and the altitude angle and azimuth (degrees from N) for the…
davehunt00
  • 31
  • 3
3
votes
1 answer

Cartesian XY bearing between points .Net

I am looking for a way to calculate the bearing or azimuth (0-360°) of one drawing point, or pixel, or screen coord, to another. I currently have the distance portion of it, and with maths not being the favourite subject in my schooling days, I am…
MadScientist
  • 53
  • 1
  • 5
2
votes
2 answers

C code for solar azimuth angle given date, time, lat, and long

I seem to have asked my question wrong so here goes again I'll try to be more to the point. Is the top answer on this page https://stackoverflow.com/questions/257717/position-of-the-sun-given-time-of-day-and-lat-long the solution to the question…
Pip
  • 95
  • 2
  • 5
2
votes
1 answer

How to decrease execution time of standard deviation calculated azimuthally

I am using the below code to calculate standard deviation azimuthally for 2D array converted from images. However, the code takes couple minutes to run. Can anyone suggest how this can be made faster? import numpy as np def radial_profile(data,…
Bahauddin Omar
  • 155
  • 1
  • 8
2
votes
0 answers

Android: Implement azimuth orientation sliding view

I am trying to create a ruler view based on azimuth compass orientation value. The idea is to place a small view at the bottom of a camera view which slides to the left or to the right according to the azimuth value obtained from the "orientation"…
2
votes
2 answers

Turf returns wrong (?) bearing and distance

In my react app I have this piece of code: import * as turfBearing from '@turf/bearing' import * as turfDistance from '@turf/distance' distance( p1, p2 ) { return Math.round( turfDistance.default( p1, p2 ) * 1000 ) } bearing( p1, p2 ) { …
injecteer
  • 20,038
  • 4
  • 45
  • 89
2
votes
1 answer

What the "rotation" in expo-sensors' DeviceMotion returns exactly?

I'm building an App where I need to rely on compass azimuth/bearing/heading whatever you call it: the angle between the North and the Y-axis of the phone. I read the greater half of the Internet and learned about "Sensor fusion" and it's virtual…
injecteer
  • 20,038
  • 4
  • 45
  • 89
2
votes
2 answers

Split a list of Azimuth into two groups equally

I'm trying to make a program to get azimuth value from two points using this code: import math def azimuth(x1, x2, y1, y2): temp = (y2 - y1) / (x2 - x1) res = math.degrees(abs(math.atan(temp))) if x2 > x1 and y2 > y1: #Q1 …
Kela
  • 61
  • 4
2
votes
1 answer

Pysolar get_azimuth function applied to pandas DataFrame

I got myself a pandas dataframe with columns latitude, longitude (which are integer type) and a date column (datetime64[ns, UTC] - as needed for the function). I use following line to produce new column of sun's azimuth: daa['azimuth'] =…
2
votes
1 answer

Azimuth/Bearing calculation in objective-c

I have been trying this formula to obtain the azimut/bearing of two points of the map. I mean, to obtain the real north direction of the vector done with the two coordinates. θ…
saimonx
  • 516
  • 1
  • 8
  • 25