#! /bin/sh export PATH=.:$PATH clear echo "Example 6: De-aggregate and unpackage 2 files, each with 4 ATMS-SDR, 4 ATMS-TDR and 4 ATMS-SDR-GEO granules into 1 granule aggregations with each product in separate files." echo "" echo "Note that the fill granules created by nagg during the packaging operation in Example 5 are deaggregated into single granule files in this example. Nagg will not create fill granules for files that contain only fill granules, but does not distinguish between fill and real granules in the input files." echo "" echo "Input files:" echo "" ls datafiles/GATMO-SATMS-TATMS_npp*.h5 echo "" # clean out output directory ls ex6/* >& /dev/null RETVAL=`echo $?` if [ "${RETVAL}" -eq "0" ]; then rm ex6/* fi echo "Command to run:" echo "" echo "nagg -S -t SATMS,TATMS -d ex6 datafiles/GATMO-SATMS-TATMS_npp*.h5" read x nagg -S -t SATMS,TATMS -d ex6 datafiles/GATMO-SATMS-TATMS_npp*.h5 echo "" echo "Output files:" ls ex6/* echo "" echo -n "show granules in output files (h5ls -r | grep Data_Products)" read x cd ex6 ofiles=`ls` for f in $ofiles; do echo "" echo "File: $f" h5ls -r $f | grep Data_Products done cd ..