Skip to content

Instantly share code, notes, and snippets.

@isaacarroyov
Created April 5, 2021 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacarroyov/fb303ef400ddc48cd91d3a1a9f689586 to your computer and use it in GitHub Desktop.
Save isaacarroyov/fb303ef400ddc48cd91d3a1a9f689586 to your computer and use it in GitHub Desktop.
def degres2decimal(a_degree, a_minute, a_seconds):
"""
This functions has as input numpy-arrays of degrees, minutes and seconds and
returns a decimal degree array
"""
degree = a_degree.astype(int)
minute = a_minute.astype(int)
seconds = a_seconds.astype(int)
return degree + minute/60 + seconds/3600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment