#! /bin/sh export PATH=.:$PATH clear echo "Example 2: Aggregate 8 ATMS-SDR-GEO files with 1 granule each into 4 granule aggregations." echo "" echo "Note that for geolocation only nagg operations, -g is used instead of -t ." echo "" echo "Input files:" echo "" ls datafiles/GATMO_npp*.h5 echo "" # clean out output directory ls ex2/* >& /dev/null RETVAL=`echo $?` if [ "${RETVAL}" -eq "0" ]; then rm ex2/* fi echo "Command to run:" echo "" echo "nagg -n 4 -g GATMO -d ex2 datafiles/GATMO_npp*.h5" read x nagg -n 4 -g GATMO -d ex2 datafiles/GATMO_npp*.h5 echo "" echo "Output files:" ls ex2/* echo "" echo -n "show granules in output files (h5ls -r | grep Data_Products)" read x cd ex2 ofiles=`ls` for f in $ofiles; do echo "" echo "File: $f" h5ls -r $f | grep Data_Products done cd ..