113 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
55
views
Correct azimuth and GPS-based rotation logic
I'm building an Android app that uses the smartphone's sensors and GPS to rotate a camera (Pivo device) to face a specific GPS coordinate.
Azimuth Calculation
My phone is in portrait mode, and I want ...
18
votes
3
answers
201
views
Trilateration where we have heading instead of distance to the known points
I'm trying to do a form of trilateration, where the distances between the point of interest (POI) and the anchor points are not given, but instead the heading observed from the POI to each of the ...
1
vote
0
answers
301
views
calculate bearing and distance between two UTM points - different zones
i'm trying to create a flight simulator. in that flight simulator I want to make my plane fly itself, meaning i want it to know it's current location, next location, and time he's flown and calculate ...
0
votes
1
answer
123
views
calculate linestring endpoints from point, perpendicular to a given angle
I am trying to use shapely and trigonometry to calculate endpoints of a line that passes through a point, perpendicularly to a given angle. For example, if my angle is 90, the line should have an ...
2
votes
1
answer
93
views
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?
...
0
votes
1
answer
235
views
Readings from Sensor.TYPE_ACCELEROMETER and Sensor.TYPE_MAGNETIC_FIELD is wrong on real device, but not on emulator?
I'm trying to read the azimuth value off my device. This is done by the following code:
val accelerometerReading = FloatArray(3)
val magnetometerReading = FloatArray(3)
val rotationMatrix = FloatArray(...
0
votes
1
answer
736
views
Leaflet with degress and azimuth
I'm using react-leaflet and I need to plot a geographic coordinate, degrees and azimuth on the map, as in the image example, but I didn't find how to do it.
I have the coordinate and the azimuth and I ...
2
votes
2
answers
888
views
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....
2
votes
1
answer
1k
views
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 ...
0
votes
2
answers
669
views
Calculation of the Earth Station coordinates in the Earth Fixed Geocentric Coordinate System
I tried to implement a calculation to determine the Az and El angles needed to point an antenna at a given Earth Station coordinates with respect to a GEO Satellite. The source of the mathematical ...
2
votes
2
answers
246
views
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)))...
1
vote
0
answers
178
views
AR Virtual Object (Arrow) is not getting along the source and destination line
I am new to ARCore android. I was implementing indoor navigation using ARCore android. I calculated angle of line joining source and destination (Lat Long) from True north from following code :
...
1
vote
1
answer
471
views
How to convert bearing to azimuth in pandas dataframe?
I would like to convert some bearing measurements to azimuth, but I can't figure out how I could do this and separate the values (strings + numbers + characters) from my column.
import pandas
df = pd....
0
votes
0
answers
654
views
Calculation of the angle of a point from north using pyproj
Is there a way to get of angle of a point data with respect to the North in python? So far I have tried to calculate the forward azimuth using pyproj.
import pyproj
from pyproj import CRS
# lat long ...
2
votes
1
answer
411
views
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 ...