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
Data comes from "RIG tower" at: http://metobs.ssec.wisc.edu/data/ | |
wget -r -nH --no-parent -e robots=off --cut-dirs=5 -w 1 --random-wait -R "index.html*" http://metobs.ssec.wisc.edu/pub/cache/aoss/tower/nc/ | |
# add -nc to not re-download data you already have |
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
#!/bin/bash | |
# this script and "currentIP.txt" must be in the same directory | |
# run "(hostname -I) > currentIP.txt" in bash before running this script the first time | |
ip_rightNow=$(hostname -I) | |
ip_prev=$(cat currentIP.txt) | |
if [[ "$ip_rightNow" != "$ip_prev" ]]; then | |
echo $ip_rightNow > currentIP.txt | |
scp currentIP.txt [email protected]:/path/to/directory |
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
#!/bin/bash | |
# Script to download weather data | |
STATION='726228-99999' | |
STARTYEAR=1973 | |
ENDYEAR=2005 | |
USER='ftp' | |
PASSWD='[email protected]' | |
HOST='ftp.ncdc.noaa.gov' |
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
#Test case for calculating metabolism | |
library(LakeMetabolizer) | |
#set up test example where DO starts and ends at same level, is at saturation (= no flux) | |
DOobs = c(3, 2, 3, 4, 3) | |
DOsat = c(3, 2, 3, 4, 3) | |
kGas = c(.2, .2, .2, .2, .2) | |
zMix = c(1, 1, 1, 1, 1) | |
irr = c(0, 1, 1, 0, 0) |