Skip to content

Instantly share code, notes, and snippets.

View mwcraig's full-sized avatar

Matt Craig mwcraig

View GitHub Profile

Proposal for fund disbursement, "Stellar photometry for ground-based images"

Current status of project

A short summary of the current status of the project is helpful for understanding why the sequence of spending is what I've proposed below.

I a package several years ago that propvides the skeleton for what I'm suggesting in this proposal.

The package, called stellarphot, currently does these functions, which use a broad range of astropy functionality:

Keybase proof

I hereby claim:

  • I am mwcraig on github.
  • I am mwcraig (https://keybase.io/mwcraig) on keybase.
  • I have a public key ASCHM4t53H0OhxoEEPAzCWZFYcLKRyB9RqbU9avCKQp0Owo

To claim this, I am signing this object:

# Write the benchmarking functions here.
# See "Writing benchmarks" in the asv docs for more information.
from pathlib import Path
from tempfile import TemporaryDirectory
import numpy as np
import bottleneck as bn
from astropy.io import fits
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwcraig
mwcraig / try_blinking_cycling_through_images.ipynb
Created August 1, 2019 13:59
Quick try at blinking/cycling through images
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
### Define a function with kwargs
def kwargs_fun(**kwargs):
# Just print the content of kwargs
print(kwargs)
# Now call kwargs_fun in a few goofy ways and see what happens:
@mwcraig
mwcraig / shooting.py
Last active April 3, 2019 12:53
Shooting method of solving ODE with boundary conditions
"""
Code for solving a second order differntial equation using RK2, I then modified
it to solve for an initial launch velocity given a final target height for a"""
Code for solving a second order differntial equation using RK2, I then modified
it to solve for an initial launch velocity given a final target height for a
projectile fired straight up.
"""
import numpy as np
import matplotlib.pyplot as plt
@mwcraig
mwcraig / bqplot_try_2_semi-presentable.ipynb
Created March 11, 2019 02:46
A hacky implementation of a bqplot image viewer
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.