Skip to content

Instantly share code, notes, and snippets.

View khufkens's full-sized avatar

Koen Hufkens khufkens

View GitHub Profile
@khufkens
khufkens / plant2phenocam.sh
Created April 14, 2017 18:39
Renames Wingscape Plantcam files to the PhenoCam file format
#!/bin/bash
# convert wingscape PlantCam files
# and moves the files into the desired file structure
# for easy processing with the PhenoCam GUI or toolkit
#
# NOTE: requires a running version of linux/Mac or cygwin
# with exif installed.
#
# USE: plant2phenocam.sh MYSITE
@khufkens
khufkens / MBDTcl.sh
Created April 14, 2017 18:35
MODIS Batch Download Tool (MBDT) - downloads MODIS tiles per year / product
#!/bin/bash
# MODIS Batch Download Tool Command Line (MBDTcl)
#
# Bash script to download all modis hdf files for a particular year
# to the current directory.
#
# Beware this script will only download level 5 products
# if other products are selected the script will fail.
#
# Coded by Koen Hufkens at Boston University 2010
@khufkens
khufkens / pdf2tiff.sh
Created April 14, 2017 18:32
Converts PDF figures to tiff files for publication
#!/bin/bash
# batch convert pdf to tiff files
# takes one argument, resolution in dpi
# use: pdf2tiff.sh 150
# will convert all pdfs in the current
# directory to tiff files at 150dpi
files=`ls *.pdf`
for i in $files;do