Skip to content

Instantly share code, notes, and snippets.

View phobson's full-sized avatar
⛏️

Paul Hobson phobson

⛏️
View GitHub Profile
@phobson
phobson / cobbler.ipynb
Created September 9, 2015 23:01
cobbler plots?
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.
## How I think you should do it
### this lives tucked away somewhere
import arcpy
class Extension(object):
def __init__(self, name):
self.name = name
def __enter__(self):
if arcpy.CheckExtension(self.name) == "Available":
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.
@phobson
phobson / paracoords2.ipynb
Created April 25, 2015 01:08
now with scales and trasformations
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / paracords.ipynb
Created April 24, 2015 23:46
parallel_coords
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Starting at the beginning:

Let's just assume you're using an Ubuntu-ish distro of Linux. In some ways that makes this a little more complicated, but on the other hand, it lets me assume you have experience with other package managers. So the big thing here is that conda is it's own little scientific apt-get (python packages, GIS tools, R + R packages, gcc, etc) that goes off and builds sandboxes contained in individual rooms. Then there's pip. Pip is specifically for python packages only and in my opinion, should only be used when the conda package isn't available.

Back to conda: conda is a package manager that depends on python, but is not per se an installation of python. So:

@phobson
phobson / MaskedGrid.ipynb
Created March 17, 2015 17:26
Masking model grids with shapefiles
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / gridmasking.ipynb
Created March 12, 2015 05:39
grid masking
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.