Skip to content

Commit

Permalink
Use glob to find available ob types
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryMartin-NOAA committed Nov 14, 2023
1 parent e1a5375 commit 98149df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ush/ioda/bufr2ioda/run_bufr2ioda.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
import argparse
import glob
import os
from pathlib import Path
from gen_bufr2ioda_json import gen_bufr_json
Expand Down Expand Up @@ -30,8 +31,8 @@ def bufr2ioda(current_cycle, RUN, DMPDIR, config_template_dir, COM_OBS):
}

# Specify observation types to be processed by a script
BUFR_py = ["satwind_amv_goes", "satwind_scat", "adpupa_prepbufr", "adpsfc_prepbufr", "sfcshp_prepbufr", "acft_profiles_prepbufr",
"gpsro_bufr", "conventional_prepbufr_ps"]
BUFR_py_files = [os.path.basename(f) for f in BUFR_py_files]
BUFR_py = [f.replace('bufr2ioda_', '').replace('.py', '') for f in BUFR_py_files]

for obtype in BUFR_py:
logger.info(f"Convert {obtype}...")
Expand Down

0 comments on commit 98149df

Please sign in to comment.