Skip to content

Instantly share code, notes, and snippets.

@jjhelmus
jjhelmus / plot_polar_bokeh.py
Created April 14, 2014 02:10
Plotting Polar data with Bokeh
# Plot polar data using Bokeh
# Author: Jonathan J. Helmus
import numpy as np
from bokeh.plotting import *
# Data in polar coordinates
azimuths = np.linspace(0, 2 * np.pi, 20)
ranges = np.array([2, 4, 6, 8])
@jjhelmus
jjhelmus / 0001-MAINT-renamed-CyLP-to-cylp.patch
Created January 3, 2014 18:05
PyART CyLP to cylp patch
From b71983c189ebdeb88c1d0f9c4ea6cf286a968d34 Mon Sep 17 00:00:00 2001
From: Jonathan Helmus <jjhelmus@gmail.com>
Date: Thu, 19 Dec 2013 16:41:59 -0600
Subject: [PATCH] MAINT: renamed CyLP to cylp
---
pyart/correct/phase_proc.py | 24 ++++++++++++------------
pyart/correct/tests/test_phase_proc.py | 2 +-
2 files changed, 13 insertions(+), 13 deletions(-)
#! /usr/bin/env python
import pyart
import numpy as np
from pyart.testing.sample_objects import make_empty_ppi_radar, \
_EXAMPLE_RAYS_FILE
def pproc(LP_solver, proc=1):
@jjhelmus
jjhelmus / example.in
Created April 13, 2012 20:14
pysimpson
# modified example #1 which shows lost of precision in SIMPSON binary format.
spinsys {
channels 13C
nuclei 13C 13C
shift 1 0 6000 1 0 0 0
shift 2 0 6000 0 0 0 0
dipole 1 2 -1500 0 0 0
}