[Swift-commit] r6766 - SwiftTutorials/ATPESC_2013-08-06/modis/bin

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Mon Aug 5 16:22:00 CDT 2013


Author: davidk
Date: 2013-08-05 16:21:59 -0500 (Mon, 05 Aug 2013)
New Revision: 6766

Modified:
   SwiftTutorials/ATPESC_2013-08-06/modis/bin/colormodis.sh
Log:
Give optional xres, yres, and downscale factor to color modis script to allow for processing subsections of grid data


Modified: SwiftTutorials/ATPESC_2013-08-06/modis/bin/colormodis.sh
===================================================================
--- SwiftTutorials/ATPESC_2013-08-06/modis/bin/colormodis.sh	2013-08-05 20:32:00 UTC (rev 6765)
+++ SwiftTutorials/ATPESC_2013-08-06/modis/bin/colormodis.sh	2013-08-05 21:21:59 UTC (rev 6766)
@@ -7,8 +7,10 @@
 
 infile=$1
 outfile=$2
-xres=2400
-yres=2400
+scale=${3-24}
+xres=${4-2400}
+yres=${5-2400}
+
 BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
 # Translation table - edit colors here
@@ -32,7 +34,5 @@
 #101010 #949494
 EOF
 
-$BINDIR/rgb_adjust_color.pl $infile translate.txt $outfile
-mv $outfile $outfile.tmp
-$BINDIR/rgb_downscale.pl $outfile.tmp 2400 2400 24 $outfile
-
+$BINDIR/rgb_adjust_color.pl $infile translate.txt $outfile.tmp
+$BINDIR/rgb_downscale.pl $outfile.tmp $xres $yres $scale $outfile




More information about the Swift-commit mailing list