dtcenter / METplus

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

Enhancement: Add expand_string logic similar to begin_end_incr #2619

Open georgemccabe opened 2 weeks ago

georgemccabe commented 2 weeks ago

The begin_end_incr syntax can be used to expand a METplus config value into a list by a list of numbers. For example:

LEAD_SEQ = begin_end_incr(0,45,15)M

expands to

LEAD_SEQ = 0M, 15M, 30M, 45M

Describe the Enhancement

Add support for an expand_string function that can be used to expand out a list of string. For example:

POINT_STAT_MASK_POLY = /some/path/for/my/stations/expand_string(DENVER,MINNEAPOLIS,HOUSTON).nc

will expand to

POINT_STAT_MASK_POLY =
  /some/path/for/my/stations/DENVER.nc,
  /some/path/for/my/stations/MINNEAPOLIS.nc,
  /some/path/for/my/stations/HOUSTON.nc

Time Estimate

1-2 days

Sub-Issues

Consider breaking the enhancement down into sub-issues.

Relevant Deadlines

List relevant project deadlines here or state NONE.

Funding Source

Define the source of funding and account keys here or state NONE.

Define the Metadata

Assignee

Labels

Milestone and Projects

Define Related Issue(s)

Consider the impact to the other METplus components.

Enhancement Checklist

See the METplus Workflow for details.