wrap_ra

jwst.assign_wcs.util.wrap_ra(ravalues)[source]

Test for 0/360 wrapping in RA values.

If exists it makes it difficult to determine RA range of a region on the sky. This problem is solved by putting them all on “one side” of 0/360 border.

Parameters:
ravaluesndarray

The input RA values

Returns:
ndarray

A numpy array of RA values all on “same side” of 0/360 border