coords module

tw_source_finder.coords.main()[source]
tw_source_finder.coords.rad_to_dms(rad)[source]

convert radians to sexagesimal degrees

This function converts a positive angle in radians to a sexagesimal angle in degrees, minutes, and seconds.

INPUTS: rad I input angle in radians

OUTPUTS: deg min sec deg O degrees (integer) min O minutes (integer) sec O seconds (float)

tw_source_finder.coords.rad_to_hms(rad)[source]

convert radians to sexagesimal degrees

This function converts a positive angle in radians to a sexagesimal angle in degrees, minutes, and seconds.

It works for positive angles (take care of the negative part yourself.

INPUTS: rad I input angle in radians

OUTPUTS: deg min sec deg O degrees (integer) min O minutes (integer) sec O seconds (float)