#!/bin/sh
# IFe_climate

# check if new or old problem
answer=`${IFE_HOME}/sys/bin/dialog -p "Continue with the current problem?" -ok`
if [ $answer = "dialog_option_yes" ]; then
	echo	"store	attribute	esp	esp	/tmp/def_prb/def_2zone.cfg"
fi
if [ $answer = "dialog_option_no" ]; then
# store a standard (simple) esp configuration.
schema=`${IFE_HOME}/sys/bin/dialog -p "Name of the current problem ?" -file "/tmp/def_prb/def_2zone.cfg " -d "/tmp/ESP/default.cfg" -h1 "The configuration file defines the simulation problem" -h2 "Choose the default if in doubt."`
echo	"store	attribute	esp	esp	$schema"
fi

echo " Please select your location on the map....."


${IFE_HOME}/bin/map -u -o

sleep 2
echo " Determining climatic context....."

xwud -in ${IFE_HOME}/lib/images/pick_climate.xwd &

sleep 6

# move token to the next transition.
echo "token_move	t4"

# get users assent.
dummy=`${IFE_HOME}/sys/bin/dialog -p "Is this climate period suitable for an overheating assessment?" -ok -h1 "The period displayed will be used in subsequent comfort" -h2 "assessment. The climate is from the Kew67" -h3 "data set."`

sleep 2
exit 0
