# The following were the coordinates of Italsat-2 in ITRF the 27th of June, 2006
# at 00:58:29.34 UTC, in meters.
italsat_ITRF <- c(-37325542.8, 19152438.3, 138384.5)
# Let us calculate its azimuth, elevation and range for an observer from Tokyo.
# The latitude and longitude of the city are 35.6762 degrees North, 139.6503
# degrees East. Let's assume an observer placed at sea level (0 m)
# We first convert these coordinates to ITRF:
observer_ITRF <- LATLONtoITRF(c(35.6762, 139.6503, 0), degreesInput=TRUE)
# We can now calculate the azimuth and elevation:
razel <- calculateRazel(observer_ITRF, italsat_ITRF, degreesOutput=TRUE)
razel[1] # Azimuth
razel[2] # Elevation
Run the code above in your browser using DataLab