Calculate the longitude of an object marked in an image processing software. For example, use the Arrow Tool in imageJ, leaving from a reference point (the camera with GPS) to the object.

doNewLongitude(
  distance_horizontal,
  latitude_reference,
  longitude_reference,
  masl = 0.01708348,
  km = FALSE
)

Arguments

distance_horizontal

numeric. horizontal distance of the object to the reference (GPS camera). This can be the output of doCalcDistanceX()

latitude_reference

numeric. latitude in decimal degrees of the reference object.

longitude_reference

numeric. longitude in decimal degrees of the reference object.

masl

numeric. meters above sea level of the reference object.

km

logical. Is the distances be in kilometers (km=TRUE) or meters (km=FALSE)

Value

longitude of the object

Author

Mauricio Cantor