ssapy_toolkit.Time_Functions.convert_dd_and_hms

Functions

dd_to_hms(degree_decimal)

Convert Decimal Degrees (DD) to Hour-Minute-Second (HMS).

hms_to_dd(hms)

Convert Hour-Minute-Second (HMS) to Decimal Degrees (DD).

ssapy_toolkit.Time_Functions.convert_dd_and_hms.dd_to_hms(degree_decimal)[source]

Convert Decimal Degrees (DD) to Hour-Minute-Second (HMS).

Parameters:

degree_decimal (float) – The decimal degree value.

Returns:

  • str – The corresponding HMS string in the format ‘hour:minute:second’.

  • Author (Travis Yeager (yeager7@llnl.gov))

ssapy_toolkit.Time_Functions.convert_dd_and_hms.hms_to_dd(hms)[source]

Convert Hour-Minute-Second (HMS) to Decimal Degrees (DD).

Parameters:

hms (str or list of str) – A string or a list of strings representing hours, minutes, and seconds.

Returns:

  • float or list of float – The decimal degree equivalent(s) of the input HMS.

  • Author (Travis Yeager (yeager7@llnl.gov))