added check for RA ref value outside [0,360]