#! /bin/sh export PATH=.:$PATH clear echo "Example 3: De-aggregate 2 files with 4 ATMS-SDR and 4 ATMS-SDR-GEO granules each into 8 files with 1 granule of each product." echo "" echo "Note that by default nagg processes geolocation granules along with sensor data product granules if they are in the same files or in the files named in the /N_GEO_Ref attribute in the same directory as the sensor data product files. If not found nagg will return an error." echo "" echo "Input files:" echo "" ls ex1 echo "" # clean out output directory ls ex3/* >& /dev/null RETVAL=`echo $?` if [ "${RETVAL}" -eq "0" ]; then rm ex3/* fi echo "Command to run:" echo "" echo "nagg -t SATMS -d ex3 ex1/GATMO-SATMS_npp_d20120404*.h5" read x nagg -t SATMS -d ex3 ex1/GATMO-SATMS_npp_d20120404*.h5 echo "" echo "Output files:" ls ex3/* echo "" echo -n "show granules in output files (h5ls -r | grep Data_Products)" read x cd ex3 ofiles=`ls` for f in $ofiles; do echo "" echo "File: $f" h5ls -r $f | grep Data_Products done cd ..