Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature 2115 update use cases #2133

Merged
merged 5 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions docs/Users_Guide/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,7 @@ Using conda::
**MET Python Embedding Requirements**

If running use cases that use Python embedding, the **MET** executables
must be installed with Python enabled
and the following Python packages installed:

- xarray (2022.3.0)

- numpy (1.22.4)

- pandas (1.4.2)

- netCDF4 (1.5.8)
must be installed with Python enabled.

See `Appendix F Python Embedding <https://met.readthedocs.io/en/latest/Users_Guide/appendixF.html>`_
section in the MET User's Guide for more information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ LEAD_SEQ = 0
###

ASCII2NC_INPUT_DIR =
ASCII2NC_INPUT_TEMPLATE = "{MET_INSTALL_DIR}/share/met/python/read_ascii_point.py {INPUT_BASE}/met_test/data/sample_obs/ascii/sample_ascii_obs.txt"
ASCII2NC_INPUT_TEMPLATE = "{MET_INSTALL_DIR}/share/met/python/examples/read_ascii_point.py {INPUT_BASE}/met_test/data/sample_obs/ascii/sample_ascii_obs.txt"

ASCII2NC_OUTPUT_DIR =
ASCII2NC_OUTPUT_TEMPLATE = {OUTPUT_BASE}/met_tool_wrapper/ASCII2NC/ascii2nc_python.nc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ OBS_FILE_WINDOW_END = 0
# https://metplus.readthedocs.io/en/latest/Users_Guide/systemconfiguration.html#field-info
###

FCST_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/read_ascii_numpy.py MET_PYTHON_INPUT_ARG FCST
OBS_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/read_ascii_numpy.py MET_PYTHON_INPUT_ARG OBS
FCST_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py MET_PYTHON_INPUT_ARG FCST
OBS_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py MET_PYTHON_INPUT_ARG OBS

MODEL = FCST
OBTYPE = OBS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ OBS_GRID_STAT_FILE_WINDOW_END = 0
MODEL = FCST
OBTYPE = OBS

FCST_VAR1_NAME = {INPUT_BASE}/met_test/scripts/python/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/fcst.txt FCST
FCST_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/fcst.txt FCST
FCST_IS_PROB = false
FCST_GRID_STAT_PROB_THRESH = ==0.1

OBS_VAR1_NAME = {INPUT_BASE}/met_test/scripts/python/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/obs.txt OBS
OBS_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/obs.txt OBS

GRID_STAT_ONCE_PER_FIELD = False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ OBS_MODE_FILE_WINDOW_END = 0

FCST_IS_PROB = false

FCST_VAR1_NAME = {INPUT_BASE}/met_test/scripts/python/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/fcst.txt FCST
FCST_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/fcst.txt FCST

FCST_MODE_CONV_RADIUS = 5
FCST_MODE_CONV_THRESH = >=80.0
FCST_MODE_MERGE_THRESH = >=75.0
FCST_MODE_MERGE_FLAG = NONE

OBS_VAR1_NAME = {INPUT_BASE}/met_test/scripts/python/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/obs.txt OBS
OBS_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/obs.txt OBS
OBS_VAR1_LEVELS = P500

OBS_MODE_CONV_THRESH = >=80.0
Expand Down
4 changes: 2 additions & 2 deletions parm/use_cases/met_tool_wrapper/MTD/MTD_python_embedding.conf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ MTD_OUTPUT_TEMPLATE =
# https://metplus.readthedocs.io/en/latest/Users_Guide/systemconfiguration.html#field-info
###

FCST_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/read_ascii_numpy.py MET_PYTHON_INPUT_ARG FCST
FCST_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py MET_PYTHON_INPUT_ARG FCST

FCST_MTD_CONV_RADIUS = 15
FCST_MTD_CONV_THRESH = >=5.0
Expand All @@ -65,7 +65,7 @@ FCST_MTD_INPUT_DATATYPE = PYTHON_NUMPY
FCST_IS_PROB = false
FCST_PROB_IN_GRIB_PDS = false

OBS_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/read_ascii_numpy.py MET_PYTHON_INPUT_ARG OBS
OBS_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py MET_PYTHON_INPUT_ARG OBS

OBS_MTD_CONV_RADIUS = 15
OBS_MTD_CONV_THRESH = >=1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ PLOT_DATA_PLANE_OUTPUT_TEMPLATE = {OUTPUT_BASE}/met_tool_wrapper/plot_data_plane
# https://metplus.readthedocs.io/en/latest/Users_Guide/systemconfiguration.html#field-info
###

PLOT_DATA_PLANE_FIELD_NAME = {MET_INSTALL_DIR}/share/met/python/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/fcst.txt FCST
PLOT_DATA_PLANE_FIELD_NAME = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/fcst.txt FCST


###
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ FCST_POINT_STAT_INPUT_DIR = {INPUT_BASE}/met_test/data/sample_fcst
FCST_POINT_STAT_INPUT_TEMPLATE = {init?fmt=%Y%m%d%H}/nam.t00z.awip1236.tm00.{init?fmt=%Y%m%d}.grb

OBS_POINT_STAT_INPUT_DIR =
OBS_POINT_STAT_INPUT_TEMPLATE = PYTHON_NUMPY= {MET_INSTALL_DIR}/share/met/python/read_met_point_obs.py {INPUT_BASE}/met_test/out/pb2nc/sample_pb.nc
OBS_POINT_STAT_INPUT_TEMPLATE = PYTHON_NUMPY= {MET_INSTALL_DIR}/share/met/python/examples/read_met_point_obs.py {INPUT_BASE}/met_test/out/pb2nc/sample_pb.nc

POINT_STAT_OUTPUT_DIR = {OUTPUT_BASE}/point_stat_py_embed_obs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ LEAD_SEQ = 0
PY_EMBED_INGEST_1_OUTPUT_DIR =
PY_EMBED_INGEST_1_OUTPUT_TEMPLATE = {OUTPUT_BASE}/met_tool_wrapper/PyEmbedIngest/test.nc

PY_EMBED_INGEST_1_SCRIPT = {INPUT_BASE}/met_test/scripts/python/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/obs.txt OBS
PY_EMBED_INGEST_1_SCRIPT = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/obs.txt OBS
PY_EMBED_INGEST_1_TYPE = NUMPY
PY_EMBED_INGEST_1_OUTPUT_GRID = G130


PY_EMBED_INGEST_2_OUTPUT_DIR =
PY_EMBED_INGEST_2_OUTPUT_TEMPLATE = {OUTPUT_BASE}/met_tool_wrapper/PyEmbedIngest/regrid_data_plane.nc

PY_EMBED_INGEST_2_SCRIPT = {INPUT_BASE}/met_test/scripts/python/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/fcst.txt FCST
PY_EMBED_INGEST_2_SCRIPT = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/fcst.txt FCST
PY_EMBED_INGEST_2_TYPE = NUMPY
PY_EMBED_INGEST_2_OUTPUT_GRID = G130
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ LEAD_SEQ = 0
PY_EMBED_INGEST_1_OUTPUT_DIR =
PY_EMBED_INGEST_1_OUTPUT_TEMPLATE = {OUTPUT_BASE}/met_tool_wrapper/PyEmbedIngest/test.nc

PY_EMBED_INGEST_1_SCRIPT_1 = {INPUT_BASE}/met_test/scripts/python/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/fcst.txt FCST
PY_EMBED_INGEST_1_SCRIPT_1 = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/fcst.txt FCST
PY_EMBED_INGEST_1_TYPE = NUMPY
PY_EMBED_INGEST_1_OUTPUT_GRID = G130


PY_EMBED_INGEST_2_OUTPUT_DIR =
PY_EMBED_INGEST_2_OUTPUT_TEMPLATE = {OUTPUT_BASE}/met_tool_wrapper/PyEmbedIngest/regrid_data_plane.nc

PY_EMBED_INGEST_2_SCRIPT_1 = {INPUT_BASE}/met_test/scripts/python/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/fcst.txt FCST
PY_EMBED_INGEST_2_SCRIPT_1 = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/fcst.txt FCST
PY_EMBED_INGEST_2_OUTPUT_FIELD_NAME_1 = Forecast

PY_EMBED_INGEST_2_SCRIPT_2 = {INPUT_BASE}/met_test/scripts/python/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/obs.txt OBS
PY_EMBED_INGEST_2_SCRIPT_2 = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/obs.txt OBS
PY_EMBED_INGEST_2_OUTPUT_FIELD_NAME_2 = Observation

PY_EMBED_INGEST_2_TYPE = NUMPY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ OBS_REGRID_DATA_PLANE_OUTPUT_TEMPLATE = numpy_data.nc

REGRID_DATA_PLANE_ONCE_PER_FIELD = True

OBS_VAR1_NAME = {INPUT_BASE}/met_test/scripts/python/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/obs.txt OBS
OBS_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py {INPUT_BASE}/met_test/data/python/obs.txt OBS
OBS_REGRID_DATA_PLANE_VAR1_OUTPUT_FIELD_NAME = OBS


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ SERIES_ANALYSIS_OUTPUT_TEMPLATE = python_sa.nc
# https://metplus.readthedocs.io/en/latest/Users_Guide/systemconfiguration.html#field-info
###

FCST_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/read_ascii_numpy.py MET_PYTHON_INPUT_ARG FCST
FCST_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py MET_PYTHON_INPUT_ARG FCST

OBS_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/read_ascii_numpy.py MET_PYTHON_INPUT_ARG OBS
OBS_VAR1_NAME = {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_numpy.py MET_PYTHON_INPUT_ARG OBS


###
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ VALID_INCREMENT = 12H

MODEL1 = WRF
MODEL1_OBTYPE = ADPUPA
MODEL1_STAT_ANALYSIS_LOOKIN_DIR = python {INPUT_BASE}/met_test/scripts/python/read_ascii_mpr.py {INPUT_BASE}/met_test/out/point_stat/point_stat_360000L_20070331_120000V.stat
MODEL1_STAT_ANALYSIS_LOOKIN_DIR = python {MET_INSTALL_DIR}/share/met/python/examples/read_ascii_mpr.py {INPUT_BASE}/met_test/out/point_stat/point_stat_360000L_20070331_120000V.stat

MODEL1_STAT_ANALYSIS_OUT_STAT_TEMPLATE = {model?fmt=%s}_{obtype?fmt=%s}_valid{valid?fmt=%Y%m%d}_fcstvalidhour{valid_hour?fmt=%H}0000Z_out_stat.stat

Expand Down