awips2/deltaScripts/16.2.2/DR5733/update_fssobs_slp_values.sh
Tom Gurney 4b9bca7a2e Omaha #5733 Fix display of sea level pressure for DAT products
Values from metar are in Pa; convert to hPa before storing in fssobs.

Change-Id: I39e245a65001fc197737ffa5b6bfe7eca1891219
2016-08-30 13:05:25 -05:00

22 lines
512 B
Bash
Executable file

#!/bin/bash
# #5733
# Convert sea level pressure from Pa to hPa in all fssobs h5 files
# Author: tom.gurney@raytheon.com
TARGET=/awips2/edex/data/hdf5/fssobs
THIS_LOCATION=$(dirname $0)
success=0
for item in $(find $TARGET -type f -name "*.h5"); do
$THIS_LOCATION/_update_fssobs_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