sex2rd

Convert RA,DEC in sexigecimal format to floating point format. On output the RA is given both in units of degrees and hours. The DEC is always given in units of degrees. The 3 output values are sent to standard out.


% sex2rd.sh 12:30:45.000 -31:15:22.00  
   12.51249981   187.68750000   -31.25611115

% sex2rd.sh 1:1:1 -0:0:1
   15.25416675     1.01694445    -0.00027778

% sex2rd.sh 19:1:12.4665 -32:1:1
  285.30194370    19.02012958   -32.01694445

This routine actually does little work. The heavy lifting is done with the sex2float.sh script. This routine does a fairly sturdy job of interpretting various forms of the input sexigeciaml strings. The only REQUIREMENT for these sexigecimal strings (as of Nov2014) is that each contains a pair of ":" delimeters.




Back to SCO CODES page