Also update existing sea level pressure values stored in hdf5 files. (cherry picked from commit b733a89e8a6a2804bab9faaeee72496d8a65fba1 [formerly 73606213c72ba86a2a0f96232b1d1471fb6bd1c4]) Change-Id: I6924acf4fbe3fba7057f69306d582fc5c368812e Former-commit-id: a9f91757e4a9cc994b24c025d20aa63433e7c2f7
21 lines
467 B
Bash
Executable file
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
|