Skip to content

Instantly share code, notes, and snippets.

{
"metadata": {
"name": "Untitled8"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Untitled0"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@ellisowen
ellisowen / gist:11249924
Created April 24, 2014 10:41
bin_points
{
"metadata": {
"name": "Untitled0-Copy0"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@ellisowen
ellisowen / gist:11248843
Created April 24, 2014 09:57
bin_points
{
"metadata": {
"name": "Untitled0"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@ellisowen
ellisowen / binning_data_points.py
Created April 23, 2014 15:29
binning_data_points
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
import numpy as np
from scipy import integrate
# <codecell>
# Make sky maps with pixel solid angle as value
# (for debugging)
import numpy as np
import gammalib
projection = 'AIT'
x, y = 0, 0
dx, dy = 1, 1
nx, ny = 360, 180