Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Verifying that the use case works on subsetted data.
Corrected a typo in the Contributor's Guide for the complex subsetting example.
  • Loading branch information
jvigh committed Jul 11, 2023
1 parent a1c6d82 commit 99cbe4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/Contributors_Guide/add_use_case.rst
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ The egrep command can be used for more complex subsetting of grib2 data.
Example: To create a file called subset.grib2 from file.grib2 that contains
PRMSL data and TMP data on 1000, 900, 800, 700, 500, and 100 mb levels::

file.grib2 -s | egrep '(:TMP:1000 mb:|:TMP:900 mb:|:TMP:800 mb:|:TMP:700 mb:|:TMP:500 mb:|:TMP:100 mb:|:PRMSL)' | wgrib2 -i file.grib2 -grib subset.grib2
wgrib2 file.grib2 -s | egrep '(:TMP:1000 mb:|:TMP:900 mb:|:TMP:800 mb:|:TMP:700 mb:|:TMP:500 mb:|:TMP:100 mb:|:PRMSL)' | wgrib2 -i file.grib2 -grib subset.grib2

If the input data is in NetCDF format, the
`ncks <http://nco.sourceforge.net/nco.html>`_ tool can be used to subset
Expand Down
6 changes: 3 additions & 3 deletions parm/use_cases/met_tool_wrapper/TCDiag/TCDiag.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ LEAD_SEQ = 0, 6, 12
###

TC_DIAG_DECK_INPUT_DIR = {INPUT_BASE}/met_test/new/tc_data/adeck
TC_DIAG_DECK_TEMPLATE = aal03{date?fmt=%Y}.dat
TC_DIAG_DECK_TEMPLATE = subset.aal03{date?fmt=%Y}.dat

TC_DIAG_INPUT1_DIR = {INPUT_BASE}/met_test/new/model_data/grib2/gfs
TC_DIAG_INPUT1_TEMPLATE = gfs.t12z.pgrb2.0p50.f*
TC_DIAG_INPUT1_TEMPLATE = subset.gfs.t12z.pgrb2.0p50.f*
TC_DIAG_INPUT1_DOMAIN = parent
TC_DIAG_INPUT1_TECH_ID_LIST = AVNO


TC_DIAG_INPUT2_DIR = {INPUT_BASE}/met_test/new/model_data/grib2/gfs
TC_DIAG_INPUT2_TEMPLATE = gfs.t12z.pgrb2.0p50.f*
TC_DIAG_INPUT2_TEMPLATE = subset.gfs.t12z.pgrb2.0p50.f*
TC_DIAG_INPUT2_DOMAIN = nest
TC_DIAG_INPUT2_TECH_ID_LIST = AVNO

Expand Down

0 comments on commit 99cbe4d

Please sign in to comment.