Changeset 557


Ignore:
Timestamp:
Oct 7, 2011, 2:04:03 PM (13 years ago)
Author:
campagne
Message:

add analyse files to download (jec)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BAORadio/AmasNancay/trunk/getAnalyseFiles.sh

    r556 r557  
    116116 
    117117  $ECHO "DEBUG: (${scriptName}) irods root dir $i"
    118 #  dateDAQ=`$ECHO ${i} | $AWK '{split($0,a,"/"); print a[6];}' | $AWK "{sub(/${srclower}/,\"\"); print}"`
    119118
     119  #ON-OFF avec les RAW files normalises
    120120  file=`ils ${i} 2>&1 | $GREP -i "diffOnOffRAw_.*\.ppf"`
    121121  file=`$ECHO $file`
    122122  if [ "<${file}>" != "<>" ]; then
    123       if [ ! -e ${file}  ]; then
    124           iget -f -v ${i}/${file}
    125       fi
     123      iget -f -v ${i}/${file}
    126124  fi
    127125
     126  #ON & OFF RAW files normalises
    128127  file=`ils ${i} 2>&1 | $GREP -i "dataRAw_.*\.ppf"`
    129128  file=`$ECHO $file`
    130129  if [ "<${file}>" != "<>" ]; then
    131 #      if [ ! -e ${file}  ]; then
    132           iget -f -v ${i}/${file}
    133 #      fi
     130      iget -f -v ${i}/${file}
    134131  fi
    135132
     133  #fichiers de calibrations BAO
     134  calibfiles=( `ils ${i} 2>&1 | $GREP -i "calib_.*\.txt" ` )
     135  IFS='
     136'
     137  calibfiles=( $( $PRINTF "%s\n" "${calibfiles[@]}" | $AWK 'x[$0]++ == 0' )  )
     138  IFS=$DefaultIFS
    136139
     140  for j in ${calibfiles[@]}
     141    do
     142    file=`$ECHO $j`
     143    iget -f -v ${i}/${file}
     144  done
    137145 
    138146done
Note: See TracChangeset for help on using the changeset viewer.