#! /bin/bash -f
# Last edited on 2009-12-12 00:30:11 by stolfi

echo "RESAMPLING THE EDITOR DATA FILES" 1>&2 
  
datasets=( emo-2009-10 )
sizefile="irr-2009-11"

for ff in ${datasets[@]} ; do
  cat rslt/wp-edor-${ff}-rer.txt \
    | compute-wp-edor-gr-rate.gawk \
        -f lib_date_time.gawk \
        -f lib_functions.gawk \
      > rslt/wp-edor-${ff}-int.txt
  for pha in 0 1 2 ; do

    plot-wp-edor-new-int.sh \
        ${pha} \
        rslt/wp-edor-${ff}-int.txt \
        rslt/wp-size-${sizefile}-int.txt \
      > rslt/wp-edor-new-${ff}-int-p${pha}.eps

    plot-wp-edor-a005-int.sh \
        ${pha} \
        rslt/wp-edor-${ff}-int.txt \
        rslt/wp-size-${sizefile}-int.txt \
      > rslt/wp-edor-a005-${ff}-int-p${pha}.eps

    plot-wp-edor-a100-int.sh \
        ${pha} \
        rslt/wp-edor-${ff}-int.txt \
        rslt/wp-size-${sizefile}-int.txt \
      > rslt/wp-edor-a100-${ff}-int-p${pha}.eps

  done
done
