Enhance MET to parse the set_attr
options prior reading data from gridded data files
#2826
Open
7 of 21 tasks
Labels
alert: NEED ACCOUNT KEY
Need to assign an account key to this issue
component: input data
Input data issue
MET: Library Code
priority: medium
Medium Priority
requestor: NOAA/EMC
NOAA Environmental Modeling Center
type: enhancement
Improve something that it is currently doing
Milestone
Describe the Enhancement
This enhancement request arose via GitHub discussion dtcenter/METplus#2507. The user provided a NetCDF file where the grid information is formatted in a way that MET does not expect. The
set_attr
options, includingset_attr_grid
are provided to enable the user to override the metadata defined in the input gridded data files. However, the current order of processing logic makes them less useful than they could be.Please see a sample input file in
seneca:/d1/projects/METplus/discussions/2507/phyf000.nc
. Running this throughplot_data_plane
withfile_type=NETCDF_NCCF;
produces this error message:Adding the
set_attr_grid
option to explicitly define the grid for the data still produces the same error message.This issue is to update the processing logic for reading data from gridded input file. Currently, MET opens the file, parses the metadata, and then updates the metadata based on the
set_attr
options. If errors are encountered when parsing the metadata from the file, MET exits with bad status prior to handling theset_attr
options. Modify this logic so that ifset_attr
options are defined, the code doesn't even try to parse that metadata from the file.Of course, such data could also be handled via Python embedding. But supporting it via the
set_atttr
options may be easier for some users.Time Estimate
3 days?
Sub-Issues
Consider breaking the enhancement down into sub-issues.
None needed.
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.
No impacts.
Enhancement Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Development issue
Select: Milestone as the next official version
Select: MET-X.Y.Z Development project for development toward the next official release
The text was updated successfully, but these errors were encountered: