Created
February 8, 2015 20:33
-
-
Save aaronpdennis/3227ef28c3678e8843ba to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# Reproject original data to Web Mercator, strip extraneous filename information, and add to data/daily directory | |
for var in data_original/*.asc; do | |
export var=${var%_gapfilled.asc} | |
export var=${var#data_original/SM_} | |
echo $var | |
gdalwarp \ | |
-t_srs EPSG:3857 \ | |
-dstnodata 0 \ | |
-r bilinear \ | |
data_original/SM_${var}_gapfilled.asc \ | |
data/daily/${var}.tif | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment