Skip to content

Instantly share code, notes, and snippets.

View cbcunc's full-sized avatar

Chris Calloway cbcunc

View GitHub Profile
@cbcunc
cbcunc / canopy-1.0.1-win-32-venv-easy-install-stdout.txt
Last active December 17, 2015 20:28
Canopy easy_install not working from an activated venv -s on Windows. This is after 1.0.1 upgrade, although it was occuring before upgrade as well.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\cbcoasis>which python
C:\Users\cbcoasis\AppData\Local\Enthought\Canopy32\User\Scripts\python.exe
C:\Users\cbcoasis\AppData\Local\Enthought\Canopy32\System\Scripts\python.exe
C:\Users\cbcoasis>which venv
C:\Users\cbcoasis\AppData\Local\Enthought\Canopy32\User\Scripts\venv.exe
C:\Users\cbcoasis\AppData\Local\Enthought\Canopy32\System\Scripts\venv.exe
@cbcunc
cbcunc / releases.txt
Created August 28, 2013 00:42
Output of releases.py from PyPI data extracted on August 26, 2013.
Noncompliant package: codinghyde.synapse Version string: develop
Noncompliant package: Open-Cli Version string: v2.1.1
Noncompliant package: colin1911 Version string: .99 version 3
Noncompliant package: PluginIndexes.DateDateIndex Version string: .1
Noncompliant package: avalanchetoolbox Version string: .4.2
Noncompliant package: llsd Version string: unreleased.unofficialdev
Noncompliant package: suave Version string: .1
Noncompliant package: tortoisehg Version string: unknown
Noncompliant package: bouncy Version string: post-r5
Noncompliant package: 18-e Version string: final
@cbcunc
cbcunc / report.log
Last active December 26, 2015 11:19
Result of running sodar.scintec.report against Billy Mitchell data.
10/25/2013 08:31:46 PM:INFO:Starting report.py
10/25/2013 08:31:46 PM:INFO:Examining /seacoos/data/nccoos/level0/billymitchell/sodar1/mnd/2009_06/090624.mnd
10/25/2013 08:31:46 PM:INFO:Examining /seacoos/data/nccoos/level0/billymitchell/sodar1/mnd/2009_06/090625.mnd
10/25/2013 08:31:46 PM:INFO:Examining /seacoos/data/nccoos/level0/billymitchell/sodar1/mnd/2009_06/090626.mnd
10/25/2013 08:31:46 PM:INFO:Examining /seacoos/data/nccoos/level0/billymitchell/sodar1/mnd/2009_06/090627.mnd
10/25/2013 08:31:46 PM:INFO:Examining /seacoos/data/nccoos/level0/billymitchell/sodar1/mnd/2009_06/090628.mnd
10/25/2013 08:31:46 PM:INFO:Examining /seacoos/data/nccoos/level0/billymitchell/sodar1/mnd/2009_06/090629.mnd
10/25/2013 08:31:46 PM:INFO:Examining /seacoos/data/nccoos/level0/billymitchell/sodar1/mnd/2009_06/090630.mnd
10/25/2013 08:31:46 PM:INFO:Examining /seacoos/data/nccoos/level0/billymitchell/sodar1/mnd/2009_07/090701.mnd
10/25/2013 08:31:46 PM:INFO:Examining /seacoos/data/nccoos/level0/billymitchell/sodar1/mnd/2009_0
@cbcunc
cbcunc / iris-on-mavericks.txt
Created April 28, 2014 21:57
Iris on Mavericks
Most of the IRIS installation can be accomplished with brew and pip. This is an install of the *minimum* Iris requirements. I'll work on extensions for Iris next. There are only a few and they are optional for things like Grib ingestion.
1) You will need to make sure that *both* XCode and the standalone XCode Command Line Tools are installed. Both are Homebrew dependencies.
2) brew install python
Brew's python includes pip and setuptools, which is sweet.
3) pip install virtualenv
You'll need to build Iris in a virtualenv as it depends on distutils packages which cannot be pip-uninstalled.
@cbcunc
cbcunc / u2stest.py
Created October 10, 2014 16:41
Sanity check for ugrid2shp. Convert all the NAM output to shapefiles. Wait for something to blow up.
import os
import sys
import multiprocessing
import ugrid2shp
urlformat = "http://opendap.renci.org:1935/thredds/dodsC/daily/nam/%s/nc6b/hatteras.renci.org/rencidaily/namforecast/%s.63.nc"
outformat = "%s_%s"
errformat = "%s_%s.err"
variables = (("swan_HS", "swan_HS",),
("swan_HS_max", "swan_HS_max",),
@cbcunc
cbcunc / shape2raster.ipynb
Last active August 29, 2015 14:09
Shapefile to Raster with OGR and GDAL
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cbcunc
cbcunc / ApproximateDerivatives.ipynb
Created November 24, 2014 20:09
Graph approximate derivatives of f(x) across interval with various delta x.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cbcunc
cbcunc / NewtonsMethod.ipynb
Last active August 29, 2015 14:10
Converge on root of function for a given accuracy and initial guess.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cbcunc
cbcunc / EstimateDefiniteIntegral
Created November 24, 2014 23:58
Estimate the area under the curve using Riemann–Darboux's Method.
{
"metadata": {
"name": "",
"signature": "sha256:25966a5667f39011dd93d3d337860e302b8c68ac708ef3bbe73df838f8cc544f"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@cbcunc
cbcunc / ugr5_on_OpenDAP_test_server.ipynb
Created December 3, 2014 20:28
Testing the ugr5 function on the OpenDAP test server with test4-ugrid.ncml
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.