#!/usr/bin/env bash
#
# Thomas Dreibholz's PlanetLab Script Collection
# Copyright (C) 2005-2023 by Thomas Dreibholz, thomas.dreibholz@gmail.com
#
# $Id$
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# Contact: thomas.dreibholz@gmail.com
#

# INPUT="U01 U02 U03 U04 U05 U06 U07 U08 U09 U10 U11 U12"
INPUT="V00 V01 V03 V04 V05 V06 V07 V08 V09 V10 V11 V12 V13 V14 V15 V16 V17 V18 V19 V20"
OUTPUT="DisasterScenario1"


# for m in $INPUT ; do
#    ./combine-vectors messung-disaster1A-$m
#    ./combine-vectors messung-disaster1B-$m
# done


(
for m in $INPUT ; do
   echo "--values=$m"
   echo "--input=messung-disaster1A-$m/pu-vectors.vec.bz2"
done
) | ../combinesummaries $OUTPUT-A.data.bz2 Measurement

(
for m in $INPUT ; do
   echo "--values=$m"
   echo "--input=messung-disaster1B-$m/pu-vectors.vec.bz2"
done
) | ../combinesummaries $OUTPUT-B.data.bz2 Measurement
