Created
April 5, 2021 04:15
-
-
Save isaacarroyov/fb303ef400ddc48cd91d3a1a9f689586 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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