#!/bin/bash -e

# =============================================================================
# 
# NAME: config.evs.prod.prep.cam.atmos.precip.namnest
# CONTRIBUTOR(S): Marcel Caron, marcel.caron@noaa.gov, NOAA/NWS/NCEP/EMC-VPPPGB
# PURPOSE: Set up configurations to run EVS NAM Nest Precipitation - Prepare
# DEPENDENCIES: $HOMEevs/scripts/prep/cam/exevs_namnest_precip_prep.sh
# 
# =============================================================================

echo "BEGIN: $(basename ${BASH_SOURCE[0]})"

# Time Settings
export FHR_END_FULL="60"
export FHR_END_SHORT="60"

# Model/Obs Settings
export OBS_ACC="01"

# Additional Verification Settings
if [ "$ACC" = "01" ]; then
    export VHOUR_LIST="01, 04, 07, 10, 13, 16, 19, 22"
elif [ "$ACC" = "03" ]; then
    export VHOUR_LIST="00, 03, 06, 09, 12, 15, 18, 21"
elif [ "$ACC" = "24" ]; then
    export VHOUR_LIST="00, 03, 06, 09, 12, 15, 18, 21"
else
    err_exit "The provided ACC, $ACC, is not supported for $MODELNAME"
fi
if [ "$NEST" = "conus" ]; then
    export VERIF_TYPE="ccpa"
    export COMINobs=${COMINccpa}
    export OBSNAME="ccpa"
elif [ "$NEST" = "ak" ]; then
    export VERIF_TYPE="mrms"
    export COMINobs=${DCOMINmrms}
    export OBSNAME="mrms"
elif [ "$NEST" = "pr" ]; then
    export VERIF_TYPE="mrms"
    export COMINobs=${DCOMINmrms}
    export OBSNAME="mrms"
elif [ "$NEST" = "hi" ]; then
    export VERIF_TYPE="mrms"
    export COMINobs=${DCOMINmrms}
    export OBSNAME="mrms"
else
    err_exit "The provided NEST, $NEST, is not supported for $MODELNAME"
fi

echo "END: $(basename ${BASH_SOURCE[0]})"