def _validate_coord(center):
 if isinstance(center, SkyCoord):
  icrscoord = center.transform_to(ICRS).frame
 elif isinstance(center, BaseCoordinateFrame):
  icrscoord = center.transform_to(ICRS)
 else:
  icrscoord = ICRS(Longitude(center[0], unit=u.degree), Latitude(center[1], unit=u.degree))
 return (icrscoord.ra.degree, icrscoord.dec.degree)

def _validate_coord ( center ) : if isinstance ( center , SkyCoord ) : icrscoord = center . transform_to ( ICRS ) . frame elif isinstance ( center , BaseCoordinateFrame ) : icrscoord = center . transform_to ( ICRS ) else : icrscoord = ICRS ( Longitude ( center [ 0 ] , unit = u . degree ) , Latitude ( center [ 1 ] , unit = u . degree ) ) return ( icrscoord . ra . degree , icrscoord . dec . degree )
validate coordinates .