Skip to content

Instantly share code, notes, and snippets.

View mbstacy's full-sized avatar

Mark Stacy mbstacy

  • Harvard University
  • Boston, MA
  • 20:37 (UTC -04:00)
View GitHub Profile
@mbstacy
mbstacy / ok_mesonet.py
Last active August 29, 2015 13:57
Oklahoma Mesonet Pandas DataFrame
#!/Users//anaconda/bin/python
"""
Python main module requires the correct python path.(see above).
Args sites startdate enddate
sites: string - comma sperated sites
startdate: YYY-MM-DD
enddate: YYYY-MM-DD
example:
Single site:
./ok_mesonet.py adax 2014-01-01 2014-02-01
% This program is modified by XIA XU from the programm written by Tao Xu to study the inverse problem of
% a one/two/three C pool model using MCMC with initial C pool size
% 06/25/2013-Windows version
clear all;
close all;
format long e;
% random seed is the clock, clock is used because the time we start something is relatively random
@mbstacy
mbstacy / attains_styles.css
Last active December 17, 2015 03:18
Load EPA impaired waters scraped tables in dashboard
#content a.metadata
{
color:#006699;
cursor:help;
}
#content a.description
{
color:#006699;
cursor:help;
<html>
<head>
<script type="text/javascript" src="http://static.cybercommons.org/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://static.cybercommons.org/js/jquery.flot.js"></script>
<script type="text/javascript" src="http://static.cybercommons.org/js/jquery.flot.time.js"></script>
</head>
<style>
.placeholder{
width:800px;
height:540px;
@mbstacy
mbstacy / fread.py
Created June 8, 2012 14:47
DDA code for TECO
import sys
from numpy import *
def readobs(filename,headlen=1):
"Read the observational file for the TECO model"
obs=loadtxt(filename,skiprows=headlen)
return obs
def readinit(filename,headlen=0):
"Read initial conditions for TECO model"
initcon=loadtxt(filename,skiprows=headlen)