Skip to content

Instantly share code, notes, and snippets.

View zonca's full-sized avatar

Andrea Zonca zonca

View GitHub Profile
export CLIENT_ID=
export CLIENT_SECRET=
export SECRET_KEY=
#from mayavi import mlab
import numpy as np
import healpy as hp
import matplotlib.pyplot as plt
# load a Planck map, Kcmb -> mKcmb
m = hp.read_map("HFI_SkyMap_100_2048_R3.01_full.fits", 0) * 1e3
nside = hp.npix2nside(len(m))
vmin = -1; vmax = 1
import pandas as pd
df = pd.DataFrame(data)
df = df.set_index("year")
df.plot(kind="bar")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Module generated with:
# ksc -t python --outdir kaitai_python index_option.ksy
# kaitai-struct-compiler 0.10
from index_option import *
f = open("../../data/index_option.raw", "rb")
io = kaitaistruct.KaitaiStream(f)
indexoption=IndexOption(io)
indexoption.bank_header
indexoption.bank_header.all_bank_size
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.