#!/usr/bin/ksh # ## list_probe_l2.ksh ## ## Make file lists of probe l2 files. ## ## Set the environment variables # if [[ -z $THMSOC ]] then THMSOC=/disks/socware/thmsoc_dp_current export THMSOC fi # . ${THMSOC}/src/config/soc_it_to_me.config . /home/thmsoc/gaia2_test/soc_it_to_me.config ## Process sites # for probe in $(cat ${CONFIGDIR}/probe_list.txt) do for dtype in $(cat ${CONFIGDIR}/probe_l2_list.txt) do find /disks/themisdata/${probe}/l2/${dtype}/20* -name ${probe}_l2_${dtype}_\*cdf -exec /bin/basename {} \; |sort >> ${LOCAL}/${probe}_l2_list_${dtype}.txt mv -f ${LOCAL}/${probe}_l2_list_${dtype}.txt ${FILELISTS}/${probe}_l2_list_${dtype}.txt done done exit 0