#! /bin/sh export PATH=.:$PATH clear echo "Example 5: Package 22 files with corresponding series of 8 ATMS-SDR, ATMS-TDR and ATMS-SDR-GEO granules into 8 packaged files with 1 granule aggregations." echo "" echo "Note that there are 2 ATMS-TDR input granules missing for which nagg will create fill granules in the output files. These fill granules can be identified by their N_Granule_Status value - Missing at delivery time" echo "" echo "Input files:" echo "" ls datafiles/GATMO_npp_d20120404*.h5 ls datafiles/SATMS_npp_d20120404*.h5 ls datafiles/TATMS_npp_d20120404*.h5 echo "" # clean out output directory ls ex5/* >& /dev/null RETVAL=`echo $?` if [ "${RETVAL}" -eq "0" ]; then rm ex5/* fi echo "Command to run:" echo "" echo "nagg -S -t SATMS,TATMS -d ex5 datafiles/SATMS*.h5 datafiles/TATMS*.h5" read x nagg -S -t SATMS,TATMS -d ex5 datafiles/SATMS*.h5 datafiles/TATMS*.h5 echo "" echo "Output files:" ls ex5/* echo "" echo -n "show granules in output files (h5ls -r | grep Data_Products)" read x cd ex5 ofiles=`ls` for f in $ofiles; do echo "" echo "File: $f" h5ls -r $f | grep Data_Products done cd ..