Skip to content

Instantly share code, notes, and snippets.

View Deus1704's full-sized avatar

Jayraj Dulange Deus1704

View GitHub Profile
@Deus1704
Deus1704 / report.md
Created August 24, 2024 21:08
GSoC '24 Final Report
@Deus1704
Deus1704 / coalignment.py
Last active August 24, 2024 17:11
Using the general rotation matrix to convert the shifts in arcseconds to pixel
def mapsequence_coalign_by_rotation(mc, layer_index=0, clip=True, shift=None, **kwargs):
"""
Move the layers in a mapsequence 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 mapsequence, animate
the derotated mapsequence, and compare the differences you see to the