Skip to content

Instantly share code, notes, and snippets.

View Raahul-Singh's full-sized avatar
🤘

Raahul Singh Raahul-Singh

🤘
View GitHub Profile
@Raahul-Singh
Raahul-Singh / get_observations_from_hek.py
Last active June 14, 2020 23:15
Pythia Examples : get_observations_from_hek
def get_observations_from_hek(self, obsdate: str, event_type: str = 'AR',
observatory: str = 'SOHO'):
"""
Gets the observation metadata from HEK for the given obsdate.
By default gets Active Region data recieved from SOHO.
Parameters
----------
obsdate : str
The observation time and date.
@Raahul-Singh
Raahul-Singh / plot_observations.py
Created June 14, 2020 23:16
Pythia examples : plot_observations
def plot_observations(self, obsdate: str, mdi_map: Map = None):
"""
Plots the Active Regions for a given observation on the
MDI map corresponding to that observation.
Parameters
----------
obsdate : str
The observation time and date.
mdi_map : Map, optional
@Raahul-Singh
Raahul-Singh / pythia_install.sh
Created June 14, 2020 23:19
Pythia examples : install
git clone https://github.com/Raahul-Singh/pythia.git
@Raahul-Singh
Raahul-Singh / get_mdi_fulldisk_map.py
Created June 14, 2020 23:26
Pythia examples : get_mdi_fulldisk_map
def get_mdi_fulldisk_map(self, obsdate: str, filepath: str = str(path) + "/fulldisk/"):
"""
Downloads the MDI Fulldisk FITS file corresponding to a particular observation.
And returns a SunPy Map corresponding to the downloaded file.
Parameters
----------
obsdate : str
The observation time and date.
filepath : mdi_mapsequence : sunpy.map.MapSequence,
@Raahul-Singh
Raahul-Singh / get_mdi_map_sequence.py
Created June 14, 2020 23:27
Pythia Examples : get_mdi_map_sequence
def get_mdi_map_sequence(self, start: str, end: str, filepath: str = str(path) + "/fulldisk/"):
"""
Get MDI Map Sequence for observations from given range.
Parameters
----------
start : str
The starting observation time and date.
end : str
The ending observation time and date.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.