Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/miriad.rb

Overview

The MIRIAD package adds angle parsing methods to String class.

Instance Method Summary collapse

Instance Method Details

#dms_to_dObject Also known as: hms_to_h

Parse a “dd:mm:ss.sss” String to Numeric degrees. NOT the inverse of Numeric#to_dmsstr (but may become so).



122
# File 'lib/miriad.rb', line 122

def dms_to_d; Miriad::AngleConversion::dms_to_d(*split(':').map{|s| s.to_f}); end