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 |
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.
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 |
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) | |
; |
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 |
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, |