awips2/deltaScripts/16.2.2/DR5345/update_metar_slp_values.sh
2022-05-05 12:34:50 -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