Skip to content

Instantly share code, notes, and snippets.

View JonasSinjan's full-sized avatar

Jonas Sinjan JonasSinjan

View GitHub Profile
@JonasSinjan
JonasSinjan / eui_to_aia.py
Last active July 19, 2023 13:34
EUI to AIA remapping near sun-earth line
import numpy as np
import sunpy
import imreg_dft
import astropy
from astropy import units as u
from astropy.wcs import WCS
from reproject import reproject_adaptive
def remap_eui(eui_map, aia_map, aia_file, out_shape = (256,256)):
@JonasSinjan
JonasSinjan / phi_soar_download_example.py
Last active November 6, 2023 09:07
SO/PHI SOAR Download
import sunpy_soar
from sunpy.net import Fido, attrs as a
from astropy.time import Time
t_start = Time('2022-03-03T09:40', format='isot', scale='utc')
t_end = Time('2022-03-03T9:41', format='isot', scale='utc')
results_phi = Fido.search(a.Instrument('PHI'), a.Time(t_start.value, t_end.value), a.soar.Product('phi-hrt-blos'))
#to search for two products: