Skip to content

Instantly share code, notes, and snippets.

View jmeyers314's full-sized avatar

Josh Meyers jmeyers314

  • SLAC National Accelerator Laboratory
  • Bay Area
View GitHub Profile
@jmeyers314
jmeyers314 / prof.py
Last active October 17, 2016 22:33
Manipulate and evaluate elliptical Sersic and Moffat surface brightness profiles. Also be able to analytically manipulate parameterizations of profile ellipticity and size.
# Tools to analytically manipulate ellipses and some astronomical profiles.
#
# Written by Joshua E. Meyers (2014-2015).
import numpy as np
from scipy.optimize import newton
from scipy.special import gammainc, gamma
import math
from functools import reduce
@jmeyers314
jmeyers314 / Max Observing Season.ipynb
Created February 20, 2016 01:53
LSST maximum observing season
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmeyers314
jmeyers314 / SymLog Covariance Matrix.ipynb
Created July 1, 2016 18:40
Symmetric Log Colorbar for Covariance Matrix
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.
@jmeyers314
jmeyers314 / Hankel transform demo.ipynb
Created April 11, 2018 17:50
Hankel transform demo for Kolmogorov
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmeyers314
jmeyers314 / Higher Order PSF Moments Notebook.ipynb
Last active January 22, 2019 23:01
Effect of Higher Order PSF Moments on Shape
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmeyers314
jmeyers314 / GalSim vs Analytic Gaussian Moments.ipynb
Last active January 24, 2019 21:05
GalSim vs Analytic Gaussian Moments
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmeyers314
jmeyers314 / galsim batch multiprocessing.ipynb
Created February 15, 2019 00:41
GalSim batch multiprocessing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmeyers314
jmeyers314 / Batoid ImSim integration.ipynb
Last active October 30, 2019 17:32
Batoid ImSim integration
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmeyers314
jmeyers314 / OpenMP_offload_object_composition.cpp
Created March 6, 2020 18:04
OpenMP c++ GPU offload with object composition
#include <new>
#include <vector>
#include <iostream>
#pragma omp declare target
// polymorphic Abstract Base Class
class Base {
public:
virtual double doOne(double x) = 0; // do something interesting
virtual Base* getDevPtr() = 0; // get a device pointer to device shadow instance of class