Skip to content

Instantly share code, notes, and snippets.

View lpsinger's full-sized avatar
🧗

Leo Singer lpsinger

🧗
View GitHub Profile
Complete layout information:
buildArea=/home/leo/debian-packaging/healpix/healpy/build-area
origDir=/home/leo/debian-packaging/healpix/healpy/tarballs
trunkDir=/home/leo/debian-packaging/healpix/healpy/trunk
trunkUrl=svn+ssh://svn.debian.org/svn/debian-science/packages/healpix/healpy/trunk
dpkg-checkbuilddeps
UNRELEASED tag found - you don't want to release with it, do you?
/home/leo/debian-packaging/healpix/healpy/build-area/healpy-1.8.4.1 exists, renaming to /home/leo/debian-packaging/healpix/healpy/build-area/healpy-1.8.4.1.obsolete.0.738985995835723
mergeWithUpstream mode detected, looking for /home/leo/debian-packaging/healpix/healpy/tarballs/healpy_1.8.4.1.orig.tar.gz
I: mergeWithUpstream property set, looking for upstream source tarball...
@lpsinger
lpsinger / airmass.py
Created March 16, 2015 23:29
GW airmass chart
%matplotlib inline
import healpy as hp
import astropy.coordinates as c
import astropy.time as t
import astropy.units as u
import numpy as np
from matplotlib import pyplot as plt
from matplotlib import cm
m = hp.read_map('bayestar.fits.gz', verbose=False)
@lpsinger
lpsinger / .gitignore
Last active August 29, 2015 14:14 — forked from mbostock/.block
.DS_Store
build
node_modules
@lpsinger
lpsinger / compare_triggers.py
Created June 18, 2014 19:33
Example integration test for bayestar_littlehope, bayestar_realize_coincs
#!/usr/bin/env python
import lal.series
import lalinference.bayestar.filter
import lalinference.bayestar.ligolw
import lalinference.bayestar.timing
import glue.ligolw.utils
import scikits.bootstrap
import numpy as np
psds = lal.series.read_psd_xmldoc(glue.ligolw.utils.load_filename('psd.xml'))
@lpsinger
lpsinger / scrape_mrt.py
Last active August 29, 2015 13:59
Scrape AAS Machine Readable Table creator form
#!/usr/bin/env python
"""
Convert an Astropy table (an instance of astropy.table.Table) to a
Machine Readable Table (MRT) by scraping ApJ's machine readable table creator
web site (http://authortools.aas.org/MRT/upload.html).
See also:
https://aas.org/authors/online-only-materials-guidelines
http://vizier.u-strasbg.fr/doc/catstd.htx
From 6fc1cc1b073fcd08069a57f0d3d573ffbbdd1bb8 Mon Sep 17 00:00:00 2001
From: Leo Singer <leo.singer@ligo.org>
Date: Thu, 23 Jan 2014 18:13:59 -0800
Subject: [PATCH] Add --{enable,disable}-maintainer-mode flags
`pip` does not preserve file modification times when unpacking tarballs.
This causes `make` to think that it needs to rerun `automake` when
building `healpix_cxx`. Since only developers generally have `automake`,
this causes the installation to fail.
@lpsinger
lpsinger / gbm_localization_to_fits.py
Last active December 30, 2015 07:39
Construct a FITS image file in a gnomonic projection centered on an arbitrary coordinate, as a template for creating Fermi-GBM localization probability maps.
#!/usr/bin/env python
"""
Construct a FITS image file in a gnomonic projection centered on an arbitrary
coordinate, as a template for creating Fermi-GBM localization probability maps.
In this example, the units of the image are probability per square degree.
Tested with Python 2.7.6 on Mac OS X 10.9 (Mountain Lion)
with PyFITS 3.2 and PyWCS 1.11-4.8.2, and also
with Astropy 0.3.
@lpsinger
lpsinger / cfitsio3340.tar.gz
Last active December 24, 2015 14:49
Tarballs for demonstration of Healpy pull request, https://github.com/healpy/healpy/pull/124
This file has been truncated, but you can view the full file.
From 0be056b6be237c4ac22c1d1cd749a6be1d13be13 Mon Sep 17 00:00:00 2001
From: Leo Singer <leo.singer@ligo.org>
Date: Thu, 15 Oct 2015 02:45:06 -0400
Subject: [PATCH] Require C++0x / C++11 support when configuring healpix_cxx
---
src/cxx/autotools/configure.ac | 1 +
.../autotools/m4/m4_ax_cxx_compile_stdcxx_11.m4 | 172 +++++++++++++++++++++
2 files changed, 173 insertions(+)
create mode 100644 src/cxx/autotools/m4/m4_ax_cxx_compile_stdcxx_11.m4