Skip to content

Instantly share code, notes, and snippets.

View arbennett's full-sized avatar
🎯
Playing darts

Andrew Bennett arbennett

🎯
Playing darts
View GitHub Profile
@arbennett
arbennett / classify_snow.py
Last active May 25, 2017 03:17
A script to allow for classification of snow interception in a forested area.
#!/usr/bin/env python
"""
Script to loop through images and categorize them in some way.
"""
import os
import tkinter
import pandas as pd
from PIL import Image
from PIL import ImageTk
@arbennett
arbennett / nc_to_gtiff.py
Created June 27, 2017 18:11
Workflow for uploading data from netcdf to google earth engine
#!/usr/bin/env python2
"""
Script that allows for conversion of a netcdf file to
a stack of geotiff files with each raster being a time
slice from the input file.
Base implementation taken from:
https://www.linkedin.com/pulse/convert-netcdf4-file-geotiff-using-python-chonghua-yin
Usage:
@arbennett
arbennett / longwave_variability.ipynb
Last active August 21, 2017 21:58
MetSim scripting example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arbennett
arbennett / PDEOperators_examples.ipynb
Last active August 4, 2017 17:40
Playing around with the PDEOperators package in Julia
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
module testmod
implicit none
integer, parameter :: i4b = SELECTED_INT_KIND(9)
integer, parameter :: dp = KIND(1.0D0)
type t1
integer :: i
end type t1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var
x : array[0..99] of single;
y : array[0..99] of single;
i : Integer;
N : Integer;
s : Integer;
nn : Integer;
x_s : single;
y_s : single;
x_dist : single;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.