#!/bin/bash cd $BASEDIR/RASP/RUN if [ -z $1 ] then echo "Usage: diagnose DOMAIN Where DOMAIN is the same as that used for run.rasp." echo "possibilities are:" ls $BASEDIR/RASP/RUN/OUT* |grep -i -v WINDOW exit fi DOMAIN=$1 domain=$(echo $DOMAIN |tr [:upper:] [:lower:]) # for wrfprep errors echo "Checking for proper execution in rasp.$domain.printout" grep -i error rasp.$domain.printout echo "" echo "Checking for errors from the rasp.pl script in rasp.$domain.stderr." cat rasp.$domain.stderr echo "" echo "***********" echo "" echo "checking for wrfprep errors for domain = $DOMAIN in $BASEDIR/WRF/wrfsi/domains/$DOMAIN/log/*" egrep -i 'error | stop' -A8 -B4 $BASEDIR/WRF/wrfsi/domains/$DOMAIN/log/* echo "" echo "***********" echo "" echo "checking for real.exe errors for domain = $DOMAIN in $BASEDIR/WRF/WRFV2/RASP/$DOMAIN/real.out.*" egrep -i 'error | stop' -A8 -B4 $BASEDIR/WRF/WRFV2/RASP/$DOMAIN/real.out.* echo "" echo "***********" echo "" echo "checking for real.exe errors for domain = $DOMAIN-WINDOW in $BASEDIR/WRF/WRFV2/RASP/$DOMAIN-WINDOW/real.out.*" egrep -i 'error | stop' -A8 -B4 $BASEDIR/WRF/WRFV2/RASP/$DOMAIN-WINDOW/real.out.* echo "" echo "***********" echo "" echo "checking for wrf.exe errors for domain = $DOMAIN in $BASEDIR/WRF/WRFV2/RASP/$DOMAIN/*.out*" egrep -i 'error | stop' -A8 -B4 $BASEDIR/WRF/WRFV2/RASP/$DOMAIN/*.out* echo "" echo "***********" echo "" echo "checking for wrf.exe errors for domain = $DOMAIN-WINDOW in $BASEDIR/WRF/WRFV2/RASP/$DOMAIN-WINDOW/*.out*" egrep -i 'error | stop' -A8 -B4 $BASEDIR/WRF/WRFV2/RASP/$DOMAIN-WINDOW/*.out* echo "" echo "***********" echo "" echo " " echo "checking for ncl existence of current NCL plots for domain = $DOMAIN in $BASEDIR/WRF/NCL " ls -lart $BASEDIR/WRF/NCL/rasp.ncl.out.$DOMAIN.02 echo "" echo "" echo "checking for ncl plotting errors for domain = $DOMAIN in $BASEDIR/WRF/NCL " egrep -i 'stop|fatal|error' $BASEDIR/WRF/NCL/rasp.ncl.out.$DOMAIN.02 echo "" echo " " echo "checking for ncl existence of current NCL plots for domain = $DOMAIN-WINDOW in $BASEDIR/WRF/NCL " ls -lart $BASEDIR/WRF/NCL/rasp.ncl.out.$DOMAIN-WINDOW.02 echo "" echo "" echo "checking for ncl plotting errors for domain = $DOMAIN-WINDOW in $BASEDIR/WRF/NCL" egrep -i 'stop|fatal|error' $BASEDIR/WRF/NCL/rasp.ncl.out.$DOMAIN-WINDOW.02 echo "" #cho "checking for wrf.exe errors for domain = $DOMAIN-WINDOW" echo "check both the $BASEDIR/RASP/RUN/OUT/$DOMAIN and $BASEDIR/RASP/RUN/OUT/$DOMAIN-WINDOW directories for created plots" echo "And check the $BASEDIR/RASP/HTML/$DOMAIN/FCST directory for whether those plots made it to the HTML directory for $DOMAIN" echo " You might want to run postwindownewchecks to check on the input parameters." echo " Checking for time step issues." egrep -i "exceeded.*cfl" $BASEDIR/WRF/WRFV2/RASP/$DOMAIN-WINDOW/wrf.out. if [[ $? -eq 0 ]] then echo " if there are lots of cfl errors, the run will bomb. You need to adjust the timestep or use a lower resolution (larger grid size) grid" echo " See http://www.drjack.info/twiki/bin/view/RASPop/TimeStepTooLarge" fi