Code to make timelapse hydrography movies via R.
This project is maintained by ucd-cws
This repository is set up to provide an R-based process to take timelapse photos from any given site, sync with flow or temperature data, and overlay plots in the photos before stitching together into a mp4/avi.
This is a process that can take some time; running in parallel may speed initial processing of photos.
There are several components, but the main requirements are imagemagick and ffmpeg. Future iterations will require exifinfo
Main Steps:
photos
folder.-composite
call to imagemagick to get timelapse photo and overlay plotsffmpeg
, you can create quick timelapse. If not, many options like VirtualDub, Moviemakier, iMovie, etc.Here are some example stills of the two different plots and a composite photo.
North Fork American October-December 2016 from Center for Watershed Sciences on Vimeo.
For additional examples, using code developed by Nick Santos (using python
and perl
):
Cosumnes River Streamlapse 2015 from Center for Watershed Sciences on Vimeo.
A Streamlapse video of the Cosumnes River for the early 2015 floods
Time Lapse Hydrography for North Fork American and South Fork Yuba Rivers in California from Center for Watershed Sciences on Vimeo.
The Center for Watershed Sciences has a set of study sites on rivers throughout the northern Sierra Nevada range in California. Part of this research includes monitoring the river's edge habitat with remote game cameras. After a year's worth of captures, we realized we could do some other processing with these videos. This video shows images and hydrographs from two nearby rivers capturing the same moment in time.
About the images:
The images in this video are taken by a pair of identical game cameras that take an hourly picture, on the hour, 24 hours a day. The left images are from the North Fork American River in the 1000-2000 foot elevation band. The images on the right are from the South Fork Yuba River, about 20 miles north of the first camera in the Sierra Nevada.