Skip to content

Instantly share code, notes, and snippets.

@jduckles
jduckles / index.html
Created May 15, 2012 17:49
Testing D3
<html>
<head>
<link type="text/css" href="http://static.cybercommons.org/css/cybercomui/jquery-ui-1.8.13.custom.css" rel="Stylesheet"/>
<link type="text/css" href="http://static.cybercommons.org/css/cybercom/style.css" rel="Stylesheet" />
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css">
<script type="text/javascript" src="http://static.cybercommons.org/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="http://static.cybercommons.org/js/jquery-ui-1.8.10.custom.min.js"></script>
<script type="text/javascript" src="http://static.cybercommons.org/js/jquery.cookie.js"></script>
<!--<link type="text/css" href="form.css" rel="Stylesheet" />-->
#!/bin/env python
"""
Zonal Statistics
Vector-Raster Analysis
Copyright 2013 Matthew Perry
Usage:
zonal_stats.py VECTOR RASTER TAG
zonal_stats.py -h | --help
gdal_merge.py -co COMPRESS=LZW -o ~/UNQC_CREF.20090101.000000.gtiff tile{1..8}/unqc_cref/UNQC_CREF.20090101.000000.gtiff
copynmq() {
month=$1;
year=$2;
product=$3;
INVENTORY=/ldm/data/tmp/manifest_new.txt.gz
ROOT=/ldm/data/nws/ldm/tiles
TARGET=wind.rccc.ou.edu:/scratch/cybercommons/nmq_annual/${product}/${year}/${month}
TARFILE=/ldm/data/tmp/${product}_${year}_${month}.tar
---
layout: bootcamp
root: .
venue: Euphoric State University
address: 123 College Street, Euphoria
country: United-States
humandate: Feb 17-18, 2020
humantime: 9:00 am - 4:30 pm
startdate: 2020-06-17
enddate: 2020-06-18
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
{
"cache": {"name": "Disk", "path": "/var/cache/tilestache/"},
"layers":
{
"unqc_cref_20140102.000000":
{
"projection": "spherical mercator",
"provider": { "name": "mapnik", "mapfile": "unqc_cref_mapnik.xml" },
"preview": { "lat": 49.0, "lon": -107.0, "zoom": 5, "ext": "png"}
AT
BE
DK
FR
DE
IT
MD
NL
RU
CH
@jduckles
jduckles / phenocam.sh
Last active June 27, 2024 13:18
This is a little script to check a phenocam site and determine if it has enough photos.
#!/bin/bash
PHENOCAM_DIR=/data/eomfftp/phenocam
SITES="Marena Elreno_iGOS_East Elreno"
[email protected]
check_phenocam() {
SITE=$1
COUNT_DATE=$(ls $PHENOCAM_DIR/$SITE | cut -f 2,3 -d "-" | sort -r | uniq -c | head -1 | sed 's/^ *//g')

Keybase proof

I hereby claim:

  • I am jduckles on github.
  • I am jduckles (https://keybase.io/jduckles) on keybase.
  • I have a public key ASDG1rXNFPsRFdalHMEmQLmHtcWHq_yWeWPEAhsHFucdTAo

To claim this, I am signing this object:

# unzip files
for filename in $(ls *.zip); do
unzip $filename
done
# find paths of csv files and store as a variable
files=$(find . -name "*.csv")
# take header row from first file and write it to otput file
head -1./1/1.csv > output.csv # write header to file