Skip to content

Commit

Permalink
[develop] Fixing the issue related to NDAS file name change on NOAA H…
Browse files Browse the repository at this point in the history
…PSS (#626)

* NDAS data file names on NOAA HPSS changed after June 28, 2022. This modification fixes that issue.

---------

Co-authored-by: Linlin.Pan <Linlin.Pan@noaa.gov>
  • Loading branch information
panll and linlin-pan authored Feb 24, 2023
1 parent fd3c778 commit 967186f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/exregional_get_obs_ndas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,16 @@ echo "vhh_noZero=$vhh_noZero"
TarCommand="htar -xvf ${TarFile} \`htar -tf ${TarFile} | egrep \"prepbufr.tm[0-9][0-9].nr\" | awk '{print $7}'\`"
echo "CALLING: ${TarCommand}"
htar -xvf ${TarFile} `htar -tf ${TarFile} | egrep "prepbufr.tm[0-9][0-9].nr" | awk '{print $7}'`
else
elif [[ ${vyyyymmdd} -gt 20200226 && ${vyyyymmdd} -le 20220627 ]]; then
TarFile="/NCEPPROD/hpssprod/runhistory/rh${vyyyy}/${vyyyy}${vmm}/${vyyyy}${vmm}${vdd}/com_nam_prod_nam.${vyyyy}${vmm}${vdd}${vhh}.bufr.tar"
TarCommand="htar -xvf ${TarFile} \`htar -tf ${TarFile} | egrep \"prepbufr.tm[0-9][0-9].nr\" | awk '{print $7}'\`"
echo "CALLING: ${TarCommand}"
htar -xvf ${TarFile} `htar -tf ${TarFile} | egrep "prepbufr.tm[0-9][0-9].nr" | awk '{print $7}'`
else
TarFile="/NCEPPROD/hpssprod/runhistory/rh${vyyyy}/${vyyyy}${vmm}/${vyyyy}${vmm}${vdd}/com_obsproc_v1.0_nam.${vyyyy}${vmm}${vdd}${vhh}.bufr.tar"
TarCommand="htar -xvf ${TarFile} \`htar -tf ${TarFile} | egrep \"prepbufr.tm[0-9][0-9].nr\" | awk '{print $7}'\`"
echo "CALLING: ${TarCommand}"
htar -xvf ${TarFile} `htar -tf ${TarFile} | egrep "prepbufr.tm[0-9][0-9].nr" | awk '{print $7}'`
fi

if [[ ! -d "$ndas_proc" ]]; then
Expand Down

0 comments on commit 967186f

Please sign in to comment.