carrington_rotation_time#
- sunpy.coordinates.sun.carrington_rotation_time(crot, longitude=None)[source]#
Return the time of a given Carrington rotation.
Fractional Carrington rotation numbers can be provided in two ways: * Fractional numbers to
crot* Integer numbers tocrotand a Carrington longitude tolongitudeInputs can be arrays. If both
crotandlongitudeare provided, the output shape will be the broadcasted combination. The round-trip from this method tocarrington_rotation_numberhas absolute errors of < 0.11 seconds.- Parameters:
- Returns:
Examples
>>> from sunpy.coordinates.sun import carrington_rotation_time >>> import astropy.units as u >>> carrington_rotation_time(2242) <Time object: scale='utc' format='iso' value=2021-03-17 22:31:37.030> >>> carrington_rotation_time(2000.25) <Time object: scale='utc' format='iso' value=2003-02-27 02:52:57.315> >>> carrington_rotation_time(2000, 270*u.deg) <Time object: scale='utc' format='iso' value=2003-02-27 02:52:57.315>