dtcenter / METplus

Python scripting infrastructure for MET tools.
https://metplus.readthedocs.io
Apache License 2.0
92 stars 36 forks source link

Bugfix: PointStat support multiple observations files #2567

Closed georgemccabe closed 1 month ago

georgemccabe commented 2 months ago

Currently if multiple observation input template paths are specified, the PointStat wrapper creates a text file with a list of file paths to process. However, the point_stat tool does not support passing a file list file as the observation input file. Additional point observation files are passed to point_stat using the -point_obs argument.

Describe the Problem

PointStat wrapper should be modified to provide additional observation files using the -point_obs argument.

Expected Behavior

Multiple observation files can be read into PointStat

Environment

Describe your runtime environment: 1. Machine: casper 2. Software version number(s): METplus 6.0.0-beta3

To Reproduce

Describe the steps to reproduce the behavior: 1. Log into casper 2. Load METplus 6.0.0-beta3 3. Run use case /glade/u/home/mccabe/i-wrf/use_cases/Hurricane_Matthew/METplus/PointStat_matthew.conf using the commented value for OBS_POINT_STAT_INPUT_TEMPLATE that includes multiple values

OBS_POINT_STAT_INPUT_TEMPLATE = metar/netcdf/met_{valid?fmt=%Y%m%d_%H%M}.nc, raob/netcdf/met_{valid?fmt=%Y%m%d_%H%M}.nc

4. See error in log file

WARNING: process_obs_file() -> can't open observation netCDF file: /glade/u/home/mccabe/out_test2/stage/file_lists.20240426183014/20161006000000_36_point_stat_obs.txt

Relevant Deadlines

6.0.0

Funding Source

I-WRF

Define the Metadata

Assignee

Labels

Projects and Milestone

Define Related Issue(s)

Consider the impact to the other METplus components.

Bugfix Checklist

See the METplus Workflow for details.