awips2/deltaScripts/16.2.2/DR5345/update_metar_slp_values.sh
Ron Anderson 92994bc798 Omaha #5668 Move deltaScripts from TO56 to correct directory
Change-Id: I921297e0a66b9ea4732ceb399a2410e687274569

Former-commit-id: c59e6a957d9adc2d03f3c0025ee1efba839cb0f7
2016-05-19 18:21:34 -05:00

21 lines
467 B
Bash
Executable file

#!/bin/bash
# #5345
# Convert sea level pressure from hPa to Pa in all h5 files
TARGET=/awips2/edex/data/hdf5/obs
THIS_LOCATION=$(dirname $0)
success=0
for item in $(find $TARGET -type f -name "*.h5"); do
$THIS_LOCATION/_update_metar_slp_values.py $item
if [[ $? -ne 0 ]]; then
success=1
fi
done
if [[ success -eq 0 ]]; then
echo INFO: No errors reported.
else
echo "ERROR: There was a problem with one or more updates; see above."
fi