Skip to content

Instantly share code, notes, and snippets.

@wtbarnes
wtbarnes / push-to-someone-elses-pr.md
Created March 5, 2020 04:49
Brief instructions for how to modify and push to someone else's PR on github

How to Push to Someone Else's Pull Request

Let's say contributor has submitted a pull request to your (author) project (repo). They have made changes on their branch feature and have proposed to merge this into origin/master, where

origin -> https://github.com/author/repo.git

Now say you would like to make commits to their PR and push those changes. First, add their fork as a remote called

@wtbarnes
wtbarnes / ebtel-two-fluid-area-expansion-tests.ipynb
Created April 12, 2024 07:01
This notebook describes some numerical experiments with the area expansion feature in the two-fluid version of EBTEL
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wtbarnes
wtbarnes / coordinates-los-demo.ipynb
Created March 5, 2024 03:31
Notebook showing how to use `astropy.coordinates` to compute intersections between LOS vectors and a simulation domain.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wtbarnes
wtbarnes / fiasco-idl-continuum-comparison.ipynb
Last active January 27, 2024 02:53
Notebook showing some comparisons between CHIANTI IDL and fiasco for free-free and free-bound calculation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wtbarnes
wtbarnes / level-resolved-rates-debugging.ipynb
Created January 11, 2024 20:49
Experimenting with interpolation schemes for ionization and recombination rate data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wtbarnes
wtbarnes / eui-ar-movie.ipynb
Created January 11, 2024 20:40
Making movies of ARs as observed by EUI on Solar Orbiter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wtbarnes
wtbarnes / extrapolators.py
Created July 28, 2021 13:43
Code for computing potential magnetic field extrapolations using the method of Schmidt (1964) as described by Sakurai (1981). Includes helper functions for reprojecting a magnetogram into a Cartesian plane
"""
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
@wtbarnes
wtbarnes / feature-rot-to-pix.ipynb
Last active August 20, 2023 04:51
This notebook shows an example of rotating a feature across the solar disk and mapping it to an image coordinate system.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wtbarnes
wtbarnes / utplot-solarwind-example.ipynb
Created February 20, 2020 04:07
Example of how to produce utplot-like output with Pandas and matplotlib
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wtbarnes
wtbarnes / dem_package_ideas.md
Last active June 14, 2023 16:52
Some brainstorming about ideas for a package for computing differential emission measures using a unified API and data container

sunkit-dem

A package for computing differential emission measures using multiple methods with a common API

DEM inversion methods

The table below is a (probably not comprehensive) list of the different methods for computing the differential emission measure.

Name Reference Notes Source code
MCMC Vinay & Kashyap (1998) Easily leverage many Python MCMC implementations PINTofALE
demreg Hannah & Kontar (2012) https://github.com/ianan/demreg