• Stars
    star
    1
  • Language
    Jupyter Notebook
  • License
    GNU General Publi...
  • Created about 5 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Rejection sampling of power laws quiet frankly sucks. They are quite common throughout astrophysics. Thankfully, inverse transform sampling allows for a quite speedy work around. However, there is no direct inverse transform for a broken power law. Instead, I show herein how to sample from two power laws that are step-wise continuous via a weighted Bernoulli sampling combined with inverse transform sampling.

More Repositories

1

popsynth

A generic flux/parameter population synthesis code
Python
14
star
2

pynchrotron

Implements synchrotron emission from cooling electrons
Python
11
star
3

cosmogrb

A cosmological GRB light curve simulator. Because, why not?
Python
10
star
4

stylelib

my mpl styles
8
star
5

nazgul

GRB triangulation via non-stationary time-series models
Python
7
star
6

pyipn

A time-delayed light curve simulation code for GRB location triangulation via random Fourier features.
Python
7
star
7

gbm_drm_gen

This provides a python based response generator for the Gamma-ray Burst Monitor (GBM). Additionally, a 3ML plugin is provided which allows for the simultaneous fitting of GRB locations and spectra.
Python
7
star
8

gbmgeometry

Routines to handle GBM geometry and plotting
Python
6
star
9

pychangcooper

A generic Chang and Cooper solver for Fokker-Planck style equations
Python
6
star
10

slurmworm

to monitor mein slurm jobs
Python
4
star
11

morgoth

morgoth is the master of the balrog. So, it is basically the pipeline for the automatic GBM localizations
Python
4
star
12

ronswanson

Ron Swanson builds tables for 3ML
Python
4
star
13

stan_utility

A combination of utilities for PyStan both from Michael Betancourt's and Sean Talts Stan_utility as well as a few of my own
Python
4
star
14

pypa_synch

An astromodels implementation of the pitch angle synchrotron model
Python
3
star
15

twopc

A simple tool to create posterior predictive checks (PPCs) with 3ML
Python
3
star
16

polarpy

Tools for polar
Python
3
star
17

width_calculator

Tools for calculating the 'width' of GRB spectra based off of Axelsson et al. 2015
Python
2
star
18

whimstan

looking for the WHIM with Stan
Python
2
star
19

rball

Generic DRM interpolation on the sky
Python
2
star
20

gbm_rsp2_generator

An online tool to create RSP2 files for GRBs and other Fermi-GBM data
Jupyter Notebook
2
star
21

wriggle

Using GPs to fit GRB spectra
Python
2
star
22

gbm_kitty

Database, reduce, and analyze GBM data without having to know anything. Curiosity killed the catalog.
Python
2
star
23

zusammen

grb correlations
Python
2
star
24

configya

A yaml configuration file generator.
Python
2
star
25

responsum

A python library for dealing with energy dispersion style responses
Python
1
star
26

systematics_tutorial

A simple demo to talk about systematics
Jupyter Notebook
1
star
27

apolloX

3ML analysis tools for Apollo X-ray spectrometers
Python
1
star
28

blazar_nu_pop

neutrino emission from a population of blazers
1
star
29

mnag

XRT afterglow fitting tool
Python
1
star
30

poisson_generator

Generate Poisson time series from arbitrary functions
Python
1
star
31

default_cells

JavaScript
1
star
32

internal_shock_sim

and internal shock simulator
Jupyter Notebook
1
star
33

common_astro_models

Python
1
star
34

python_tricks

Various little python tricks I use often and forget
Python
1
star
35

RadSync

Jupyter Notebook
1
star
36

pyhardrat

Python GBM hardness ratio calculator
Python
1
star
37

gbm_pca_background

Python
1
star
38

background_models

Background models for various instruments
Python
1
star
39

xrt_spec_dl

Python
1
star
40

wernerpy

Python
1
star
41

grb_shader

Throwing shade on GRBs with galaxies
Python
1
star
42

telefilebot

A simple telegram bot that monitors changes in directories
Python
1
star
43

zsh_setup

my zsh_setup
Shell
1
star
44

root5_docker

A docker for root5
Dockerfile
1
star
45

externalShock

Code for generating external shock things
Python
1
star
46

crazy_evonh

A stan model for temporally evolving nH in GRB afterglows
Python
1
star
47

betagen

Michael Betancourt's color shades are rad. This tries to duplicate his generation of shades.
Python
1
star