sunpy.physics.solar_rotation.mapcube_solar_derotate(mc, layer_index=0, clip=True, shift=None, **kwargs)[source] [edit on github]

Deprecated since version 0.9.1: The mapcube_solar_derotate function is deprecated and may be removed in a future version. Use mapsequence_solar_derotate instead.

Move the layers in a mapcube according to the input shifts. If an input shift is not given, the shifts due to solar rotation relative to an index layer is calculated and applied. 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.

  • mc ( – A mapcube of shape (ny, nx, nt), where nt is the number of layers in the mapcube.
  • layer_index (int) – Solar derotation shifts of all maps in the mapcube are assumed to be relative to the layer in the mapcube indexed by layer_index.
  • clip (bool) – If True, then clip off x, y edges in the datacube that are potentially affected by edges effects.
  • **kwargs – These keywords are passed to the function sunpy.physics.solar_rotation.calculate_solar_rotate_shift.

output ( – The results of the shifts applied to the input mapcube.


>>> import  # doctest: +REMOTE_DATA
>>> from sunpy.physics.solar_rotation import mapcube_solar_derotate
>>> map1 =  # doctest: +REMOTE_DATA
>>> map2 =  # doctest: +REMOTE_DATA
>>> mc =[map1, map2], cube=True)  # doctest: +REMOTE_DATA
>>> derotated_mc = mapcube_solar_derotate(mc)  # doctest: +REMOTE_DATA
>>> derotated_mc = mapcube_solar_derotate(mc, layer_index=-1)  # doctest: +REMOTE_DATA
>>> derotated_mc = mapcube_solar_derotate(mc, clip=False)  # doctest: +REMOTE_DATA