Closed peterdesmet closed 5 years ago
@peterdesmet see my resopnse to other issue on compass heading in movebank. Brief answer: the column "heading" in movebank is equivalent to "direction" in uva-bits, but indeed in oppossing directions (i.e. from i to i+1 in movebank, and from position i-1 to i in uvabits)
Thanks for bringing this up. I am changing the definition for the Movebank field to make it more broad because that original definition really doesn't describe what most users are storing there. In most cases heading is provided by a GPS sensor and not calculated using consecutive fixes. I'm sure there are values calculated using consecutive fixes in both ways (i to i+1, i-1 to i) stored by users in Movebank (and could be recalculated from the locations to check or ensure consistency across studies). The important thing is that the values are in degrees clockwise from north, however they are calculated. So long as that is the same I'd recommend keeping your values as you have them in UvA-BiTS.
New definition: "The direction in which the tag is moving, in decimal degrees clockwise from north; for example, 0 = north, 90 = east, 180 = south. Values may be provided by the sensor or calculated between consecutive locations."
Nice! In that case I’ll provide values measured by the tag, as that is information that cannot be calculated. Note: 0 north to 180 south leaves it open if west should be 270 or -90 (and I’ve seen both). Would make it explicit:
The direction in which the tag is moving, in decimal degrees clockwise from north, ranging from 0 to 360, with 0 as north; for example, 90 = east, 180 = south. Values may be provided by the sensor or calculated between consecutive locations.
Good catch. I think both "decimal degrees clockwise from north" and the sample value 315 indicate positive values to 360, but it's a good idea to make the wording more explicit: "The direction in which the tag is moving, in decimal degrees clockwise from north, as provided by the sensor or calculated between consecutive locations. Values range from 0–360: 0 = north, 90 = east, 180 = south, 270 = west."
Data is now uploaded with gps.direction
(measured by tag) as heading
:
The values seem to make sense (indivual L143467
):
Is Movebank
heading
equal to UvA-BiTScalc.direction
?https://github.com/inbo/bird-tracking/blob/25495a0461f72dc69c7cf063779c1f5030aa2ba6/sql/movebank_gps_data.sql#L64
Movebank
heading
is defined as (https://www.movebank.org/node/2381#heading):UvA-BiTS
calc.direction
is defined as (https://wiki.pubserv.e-ecology.nl/wiki/index.php/Useful_Queries#get_uvagps_track_speed):@sarahcd: Movebank definition is heading between pos and pos +1, ours is heading between pos and pos -1. Can we map our value for
heading
or should we either not provide it or try to calculate it as pos and pos +1 to fit the definition?@Wouter-Vansteelant @jshamoun: We already discussed this at https://github.com/inbo/bird-tracking-etl/issues/15#issuecomment-362687283, but can you confirm that UvA-BiTS
calc.heading
is the heading from a current position to a previous one (expressed as degrees from north)?