Skip to content

Instantly share code, notes, and snippets.

View chrisb13's full-sized avatar

Christopher Bull chrisb13

View GitHub Profile
@aidanheerdegen
aidanheerdegen / regrid_bathymetry.ipynb
Last active January 10, 2022 13:58
Regridding BedMachine Antarctic Bathymetry using proj
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CaesarOG
CaesarOG / !LaTeX.MD
Last active January 8, 2024 01:50
LaTeX w/ VimTex, UltiSnips and Zathura
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.
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
<info>
<title>Minimal style for grant proposals</title>
<!--<id>http://csl.mendeley.com/styles/20448741/minimal-grant-proposals</id>-->
<id>http://www.zotero.org/styles/minimal-grant-proposals</id>
<link href="http://www.zotero.org/styles/minimal-grant-proposals" rel="self"/>
<author>
<name>Anton Crombach</name>
<email>anton.crombach@gmail.com</email>
@tonysimpson
tonysimpson / hexbinmapplot.py
Created April 27, 2013 13:07
Plotting hexbin on a map projection using Basemap and Mapplotlib
from matplotlib import pylab # .exe install is on sourceforge
import numpy# easy_install numpy
from mpl_toolkits.basemap import Basemap # easy_install basemap
# functions to create some random data points and convert them to meters via the map projection
def create_points_in_lon_lat(N=10000):
return zip(numpy.random.standard_normal(N)*360, numpy.random.standard_normal(N) * 45)
def convert_lon_lat_points_to_meters_using_transform(points, tran):
# maybe there is a better way to get long/lat into meters but this works ok
@ycopin
ycopin / taylorDiagram.py
Last active February 8, 2024 05:23
Taylor diagram for python/matplotlib [ 10.5281/zenodo.5548061 ]
#!/usr/bin/env python
# Copyright: This document has been placed in the public domain.
"""
Taylor diagram (Taylor, 2001) implementation.
Note: If you have found these software useful for your research, I would
appreciate an acknowledgment.
"""