View reshape_skycoord_timing.py
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
from __future__ import print_function, division | |
import timeit | |
import numpy as np | |
# First, test how long it takes to reshape a numpy array | |
repeat = 20 | |
number = 100000 |
View Gaia sprint - extinction.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View anki_forecast.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View cov_inv_1D.py
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 numpy as np | |
import matplotlib | |
matplotlib.rc('text', usetex=True) | |
import matplotlib.pyplot as plt | |
# Properties of kernel | |
a = 0. # Coeff. on Gaussian term (exponential term gets 1-a) | |
ell = 2. # Exponential correlation length | |
sigma = 1. # Gaussian std. dev. parameter |
View query_argonaut.pro
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
;+ | |
; NAME: | |
; query_argonaut | |
; | |
; PURPOSE: | |
; Query the Argonaut server for 3D dust information or SFD | |
; | |
; CALLING SEQUENCE: | |
; qresult = query_argonaut(/struct, /debug, _extra=coords) | |
; |
View dist_cov.py
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# dist_cov.py | |
# | |
# Copyright 2015 Gregory M. Green | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
View coord_transform_test.py
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 healpy as hp | |
import numpy as np | |
import matplotlib | |
matplotlib.rc('text', usetex=True) | |
import matplotlib.pyplot as plt | |
euler_transf_index = { | |
'CG': 1, | |
'GC': 2, |