This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import click | |
@click.command() | |
@click.option('--filters', type=str, default=[], multiple=True) | |
@click.option('--dry-run', is_flag=True, default=False, help='If set, do not kill anything.') | |
def cli(filters, dry_run): | |
cmd = 'ps aux' | |
for f in filters: | |
cmd += f' | grep {f}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Glue environment customization | |
""" | |
from glue.config import data_exporter | |
from astropy.coordinates import SkyCoord | |
import sunpy.coordinates # This registers the needed coordinate frames | |
import asdf | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB"> | |
<info> | |
<title>The Astrophysical Journal (numbered)</title> | |
<id>http://www.zotero.org/styles/the-astrophysical-journal-numbered</id> | |
<link href="http://www.zotero.org/styles/the-astrophysical-journal" rel="self"/> | |
<link href="http://www.zotero.org/styles/nature" rel="template"/> | |
<link href="http://aas.org/journals/authors/common_instruct#references" rel="documentation"/> | |
<author> | |
<name>Chris Lowder</name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Utilities for working with aligned AIA data cubes | |
""" | |
import copy | |
from os import uname | |
import warnings | |
import astropy.time | |
import astropy.wcs | |
import astropy.units as u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Process images from level 1 FITS to level 1.5 aligned cutouts in Zarr | |
""" | |
import copy | |
import glob | |
import logging | |
import os | |
import traceback | |
import sunpy |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Hannah-Kontar (2012) DEM model definition | |
""" | |
import sys | |
import numpy as np | |
import astropy.units as u | |
from sunkit_dem import GenericModel | |
# Clone this repo and replace path below: https://github.com/ianan/demreg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Field extrapolation methods for computing 3D vector magnetic fields from LOS magnetograms | |
""" | |
import numpy as np | |
from scipy.interpolate import griddata | |
import astropy.units as u | |
import numba | |
from astropy.utils.console import ProgressBar | |
from synthesizAR.util import SpatialPair |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Create a composite RGB image using MGN-processed images from SDO/AIA 211, 193, and 171 | |
""" | |
import astropy.units as u | |
from astropy.coordinates import SkyCoord | |
from astropy.visualization import make_lupton_rgb,ImageNormalize | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from sunpy.net import Fido, attrs as a | |
from sunpy.map import Map |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.