I have a sh script that I want to use to process raster files. eg
#!/bin/sh
# my first script,
# copyright, year, Author
r.mask -r
for file in A*chlor_a_4km ; do
echo "map: $file"
gdal_translate -a_srs "+init=epsg:4326" -a_nodata 65535 \
-a_ullr -180 90 180 -90 -co "COMPRESS=PACKBITS" \
$file ${file}_prep.tif
r.in.gdal in=${file}_prep.tif out=$file --overwrite
done
I'm running from the OSGeo4W Shell, Windows 7, Grass 7.2.2, all freshly installed via OSGeo4W.
The script runs, but it produces eg 'r.in.gdal command not found' but then carries on to the next raster.
I expect this is something to do with the Path? I've just installed this so can someone please send instructions on how to set the OSGeo4W Shell up for use.