This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
PAR = [ | |
99.85782790688292, | |
0.00029915877415765486, | |
0.00010509505480959243, | |
0.12320735471319781, | |
1.8037705277837454e-05, | |
1.634040105529734e-05, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from scipy.signal.detrend docs | |
from scipy import signal | |
randgen = np.random.RandomState(9) | |
npoints = 1e3 | |
noise = randgen.randn(npoints) | |
trended_noise = 3 + 2*np.linspace(0, 1, npoints) + noise | |
print "detrended signal minus noise, max difference from original signal: ", | |
print (signal.detrend(trended_noise) - noise).max() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Tobey Carman 2014 | |
# Experiments with Tempo DB Python API | |
# to extract data for Cultivar | |
import datetime | |
import os | |
import re | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Sept 2015 | |
# Tobey Carman | |
# | |
# A quick 'n dirty hack attempt at some exif processing/reporting. | |
# Orignially written for Erin Whorton's work at the Alaska Division | |
# of Geological and Geophysical Surveys. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# could add code here to load up calibration_targets variable from the | |
# contents of an excel file...? or just plain csv? | |
calibration_targets = { | |
## WARNING: JUNK, PLACEHOLDER VALUES! USE AT YOUR OWN RISK! | |
"BLANK": { | |
'cmtnumber': 0, | |
# pft0 pft1 pft2 pft3 pft4 pft5 pft6 pft7 pft8 pft9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Scripts for creating plots for AGU 2017 poster with E.Euskirchen and S.Serbin. | |
# | |
# Runs were done on modex. | |
# Results copied to OSX machine for running this script. | |
''' | |
SIMARR=("2000000821" "2000000821" "2000000822") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# T. Carman, 2018 | |
# Opens a bunch of kmzs with a place marker each | |
# and prints the lat and lon | |
from zipfile import ZipFile | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Tobey Carman | |
# March 2018 | |
import matplotlib.pyplot as plt | |
import matplotlib.patches as patches | |
import netCDF4 as nc | |
import numpy as np |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer