search for: new_lon_rad

Displaying 1 result from an estimated 1 matches for "new_lon_rad".

Did you mean: new_lat_rad
2011 Jan 20
1
Generating time progressing line for Google Earth
...alculate the bearing bearing = atan2( sin(lon_diff) * cos(lat_2), (cos(lat_1) * sin(lat_2)) - (sin(lat_1) * cos(lat_2) * cos(lon_diff)) ); # Then use the bearing and the start point to find the destination new_lat_rad = asin(sin(lat_1) * cos(ang_dist) + cos(lat_1) * sin(ang_dist) * cos(bearing)); new_lon_rad = lon_1 + atan2( sin(bearing) * sin(ang_dist) * cos(lat_1), cos(ang_dist) - sin(lat_1) * sin(lat_2) ); # Convert from radians to degrees new_lat = Degrees(new_lat_rad); new_lon = Degrees(new_lon_rad); coords[i, 2] = new_lat coords[i, 1] = new_lon } return(coords) } ################### #-...