Skip to content

Commit

Permalink
Per #1918, adding gen_ens_prod unit test to demonstrate using ENS_MEM…
Browse files Browse the repository at this point in the history
…BER_ID to read climo data separately for each member.
  • Loading branch information
JohnHalleyGotway committed Mar 2, 2022
1 parent 308b461 commit a397ae0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/config/GenEnsProdConfig_single_file_nc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Output model name to be written
//
model = "WRF";
model = "CFSv2";

//
// Output description to be written
Expand Down
16 changes: 16 additions & 0 deletions test/xml/unit_gen_ens_prod.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,21 @@
</output>
</test>

<test name="gen_ens_prod_CLIMO_ANOM_ENS_MEMBER_ID">
<exec>&MET_BIN;/gen_ens_prod</exec>
<env>
<pair><name>CLIMO_MEAN_FILE</name> <value>&DATA_DIR_MODEL;/CPC_NMME/memberMET_ENS_MEMBER_ID-climo.nc</value></pair>
<pair><name>CLIMO_STDEV_FILE</name> <value>&DATA_DIR_MODEL;/CPC_NMME/memberMET_ENS_MEMBER_ID-climo.nc</value></pair>
</env>
<param> \
-ens &DATA_DIR_MODEL;/CPC_NMME/CFSv2.tmp2m.198201.fcst.nc \
-config &CONFIG_DIR;/GenEnsProdConfig_climo_anom_ens_member_id \
-out &OUTPUT_DIR;/gen_ens_prod/gen_ens_prod_CLIMO_ANOM_ENS_MEMBER_ID.nc \
-v 2
</param>
<output>
<grid_nc>&OUTPUT_DIR;/gen_ens_prod/gen_ens_prod_CLIMO_ANOM_ENS_MEMBER_ID.nc</grid_nc>
</output>
</test>

</met_test>

0 comments on commit a397ae0

Please sign in to comment.