Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
'''
WRF2VTK.py
Jonathan Beezley
April 27, 2011
This is a python script to convert WRF-Fire output files into a series
of vts (vtk structured grid) files. This script depends on the following
python modules:
Index: nc-config.in
===================================================================
6,7d5
< #
< # $Id: nc-config.in,v 1.17 2010/03/24 15:20:37 dmh Exp $
15,16d12
< cxx="@CXX@"
< fc="@FC@"
18d13
< fflags="@FFLAGS@ @MOD_FLAG@${includedir}"
@jbeezley
jbeezley / polyStats.py
Created August 23, 2012 22:27
A script to parse polygons contained in a kml or kmz file and print out statistics.
import sys
try:
from Polygon import *
except ImportError as e:
print 'Requires Polygon module from https://github.com/jraedler/Polygon2.'
print ''
print 'Try to install as follows:'
print ''
print 'git clone https://github.com/jraedler/Polygon2.git'
&share
wrf_core = 'ARW',
max_dom = 1,
start_date = '2005-08-28_12:00:00','2008-05-19_12:00:00','2008-05-19_12:00:00','2008-05-19_12:00:00','2008-05-19_12:00:00','2008-05-19_12:00:00',
end_date = '2005-08-28_15:00:00','2008-05-19_18:00:00','2008-05-19_18:00:00','2008-05-19_18:00:00','2008-05-19_18:00:00','2008-05-19_18:00:00',
interval_seconds = 10800
io_form_geogrid = 2,
subgrid_ratio_x = 10,
subgrid_ratio_y = 10,
/
This file has been truncated, but you can view the full file.
==> Downloading http://www.python.org/ftp/python/2.7.4/Python-2.7.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/python-2.7.4.tar.bz2
tar xf /Library/Caches/Homebrew/python-2.7.4.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/python/2.7.4 --enable-ipv6 --datarootdir=/usr/local/Cellar/python/2.7.4/share --datadir=/usr/local/Cellar/python/2.7.4/share --enable-framework=/usr/local/Cellar/python/2.7.4/Frameworks --without-gcc CFLAGS=-I/usr/local/include -I/usr/local/opt/sqlite/include LDFLAGS=-L/usr/local/lib -L/usr/local/opt/sqlite/lib MACOSX_DEPLOYMENT_TARGET=10.8
./configure --prefix=/usr/local/Cellar/python/2.7.4 --enable-ipv6 --datarootdir=/usr/local/Cellar/python/2.7.4/share --datadir=/usr/local/Cellar/python/2.7.4/share --enable-framework=/usr/local/Cellar/python/2.7.4/Frameworks --without-gcc CFLAGS=-I/usr/local/include -I/usr/local/opt/sqlite/include LDFLAGS=-L/usr/local/lib -L/usr/local/opt/sqlite/lib MACOSX_DEPLOYMENT_TARGET=10.8
checking build system type... x86_64-apple-darwin12.3.0
check
#!/usr/bin/env python
#############################################################################
##
## Copyright (C) 2004-2005 Trolltech AS. All rights reserved.
##
## This file is part of the example classes of the Qt Toolkit.
##
## This file may be used under the terms of the GNU General Public
## License version 2.0 as published by the Free Software Foundation
diff --git a/addon/doxywizard/Makefile.in b/addon/doxywizard/Makefile.in
index 727409a..8b0d00f 100644
--- a/addon/doxywizard/Makefile.in
+++ b/addon/doxywizard/Makefile.in
@@ -30,7 +30,7 @@ distclean: Makefile.doxywizard
install:
$(INSTTOOL) -d $(INSTALL)/bin
- $(INSTTOOL) -m 755 ../../bin/doxywizard $(INSTALL)/bin
+ $(INSTTOOL) -m 755 ../../bin/doxywizard.app/Contents/MacOS/doxywizard $(INSTALL)/bin
require 'formula'
class Doxygen < Formula
homepage 'http://www.doxygen.org/'
url 'http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.5.src.tar.gz'
mirror 'http://downloads.sourceforge.net/project/doxygen/rel-1.8.5/doxygen-1.8.5.src.tar.gz'
sha1 '1fc5ceec21122fe5037edee4c308ac94b59ee33e'
head 'https://doxygen.svn.sourceforge.net/svnroot/doxygen/trunk'
@jbeezley
jbeezley / mongoInsertTest.py
Created March 10, 2014 15:56
pymongo insert benchmark with healthMap data
import sys
import time
import math
import pymongo
import json
# healthMap data json
fname = 'healthMapDump.json'
@jbeezley
jbeezley / gritsExample.py
Last active May 13, 2019 01:21
An example python script for making an API call to the GRITS database
#!/usr/bin/env python
import requests
import json
# main api url
url = 'https://grits.ecohealth.io/gritsdb/api/v1'
# put your username/password here
auth = ('myUsername', 'myPassword')