Skip to content

Instantly share code, notes, and snippets.

View arbennett's full-sized avatar
🎯
Playing darts

Andrew Bennett arbennett

🎯
Playing darts
View GitHub Profile
@arbennett
arbennett / GeoTiff to MPEG
Last active December 5, 2016 06:58 — forked from patchdynamics/GeoTiff to MPEG
Stuff for making a movie out of a sequence of GeoTIFFs
#!/usr/bin/env bash
mogrify -format jpg *.tif
convert xc:black xc:red xc:orange xc:yellow xc:green1 xc:cyan xc:blue xc:blueviolet xc:white +append -filter Cubic -flop rainbow_lut.png
find *.jpg -exec convert {} -colorspace gray rainbow_lut.png -clut {}.colored.jpg \;
convert -antialias -delay 1x15 *.colored.jpg output.mpeg

Preprocessing

Forcing data

Disaggregation

The forcing data is generated based on the 1/16 degree Livneh forcing dataset. The original Livneh dataset is obtained at HYDRA:/raid/blivneh/forcings/outputs/CONUS/asc.v.1.2.b/data_${latitude}_${longitude}. A copy of the data has been placed at HYAK:/civil/hydro/michaelou/summaProj/summaData/blivneh/asc.v.1.2.b. The daily forcing data is disaggregated to a hourly basis by running VIC_4.1.2. The results of disaggregation are placed at HYAK:/civil/hydro/michaelou/summaProj/summaData/blivneh/workdir.

Converting to SUMMA inputs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.