;+ ; return the hour angle (HA) in degrees using the given data_container ; ; @param dc {in}{required}{type=data_container} The data_container to ; use. ; ; @returns HA in degrees. ; ; @version $Id: getha.pro,v 1.2 2004/11/17 21:47:51 bgarwood Exp $ ;- function getha, dc ; will need to do better to ensure longitude_axis is really RA here ha=(dc.lst/3600.0) - dc.longitude_axis/15.0 ha = (ha gt 12.) ? (ha-24.) : ha ; note use of the Ternary operator...! ha = (ha lt -12.) ? (ha+24.) : ha return, ha end