Skip to content

Instantly share code, notes, and snippets.

@ajdawson
ajdawson / LambertConformalTicks.ipynb
Last active November 28, 2024 18:46
Adding gridline labels to a cartopy Lambert Conformal projection plot
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ajdawson
ajdawson / cartopy_inclusion.ipynb
Created April 21, 2015 08:16
Testing if a point is in a plot domain.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ajdawson
ajdawson / smooth9.ipynb
Last active August 29, 2015 14:19
Very basic 9-point smoothing using rolling_window()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ajdawson
ajdawson / concatenation_dim_order_issue
Created June 18, 2015 09:07
Notes on concatenation issue
{
"metadata": {
"name": "",
"signature": "sha256:9221e598320abd5d421920f5f48638d6bb36f9a03f5f437d516a11ccd5476f17"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@ajdawson
ajdawson / lcc_corners.ipynb
Created May 16, 2016 10:49
Map extent for an LCC projection
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ajdawson
ajdawson / ssh_process.ml
Created October 24, 2016 19:57
Communicating with an ssh process in OCaml
let output_command channel cmd = output_string channel (cmd ^ "\n")
let do_ssh_hostname () =
let oc_in, oc_out = Unix.open_process "ssh -T hostname" in
output_command oc_out "hostname";
flush oc_out;
try
Printf.printf "%s\n" (input_line oc_in)
with
End_of_file -> ();
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.