calculate_solar_rotate_shift

sunpy.physics.solar_rotation.calculate_solar_rotate_shift(mc, layer_index=0, **kwargs)[source] [edit on github]

Calculate the shift that must be applied to each map contained in a mapcube in order to compensate for solar rotation.

The center of the map is used to calculate the position of each mapcube layer. Shifts are calculated relative to a specified layer in the mapcube. When using this functionality, it is a good idea to check that the shifts that were applied to were reasonable and expected. One way of checking this is to animate the original mapcube, animate the derotated mapcube, and compare the differences you see to the calculated shifts. An example use is as follows. If you select data from the SDO cutout service, it is common to not use the solar tracking implemented by this service. This is because (at time of writing) the solar tracking implemented by that service moves the image by single pixels at a time. This is not optimal for many use cases, as it introduces artificial jumps in the data. So with solar tracking not chosen, the selected area is like a window through which you can see the Sun rotating underneath.

Parameters:
Returns:

x, y (Quantity, ~astropy.units.Quantity`) – The shifts relative to the index layer that can be applied to the input mapcube in order to compensate for solar rotation. The shifts are given in arcseconds as understood in helioprojective coordinates systems.