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

Enhance MET to parse the set_attr options prior reading data from gridded data files #2826

Open
7 of 21 tasks
JohnHalleyGotway opened this issue Feb 23, 2024 · 0 comments
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

Comments

@JohnHalleyGotway
Copy link
Collaborator

JohnHalleyGotway commented Feb 23, 2024

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, including set_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 through plot_data_plane with file_type=NETCDF_NCCF; produces this error message:

ERROR  : NcCfFile::read_netcdf_grid() -> Couldn't figure out projection from information in netCDF file.

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 the set_attr options. Modify this logic so that if set_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

  • Select engineer(s) or no engineer required
  • Select scientist(s) or no scientist required

Labels

  • Review default alert labels
  • Select component(s)
  • Select priority
  • Select requestor(s)

Milestone and Projects

  • Select Milestone as the next official version or Backlog of Development Ideas
  • For the next official version, select the MET-X.Y.Z Development project

Define Related Issue(s)

Consider the impact to the other METplus components.

Enhancement Checklist

See the METplus Workflow for details.

  • Complete the issue definition above, including the Time Estimate and Funding Source.
  • Fork this repository or create a branch of develop.
    Branch name: feature_<Issue Number>_<Description>
  • Complete the development and test your changes.
  • Add/update log messages for easier debugging.
  • Add/update unit tests.
  • Add/update documentation.
  • Push local changes to GitHub.
  • Submit a pull request to merge into develop.
    Pull request: feature <Issue Number> <Description>
  • Define the pull request metadata, as permissions allow.
    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
  • Iterate until the reviewer(s) accept and merge your changes.
  • Delete your fork or branch.
  • Close this issue.
@JohnHalleyGotway JohnHalleyGotway added type: enhancement Improve something that it is currently doing requestor: NOAA/EMC NOAA Environmental Modeling Center priority: medium Medium Priority alert: NEED ACCOUNT KEY Need to assign an account key to this issue MET: Library Code component: input data Input data issue labels Feb 23, 2024
@JohnHalleyGotway JohnHalleyGotway added this to the MET 12.0.0 milestone Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Status: 🔖 Ready
Development

No branches or pull requests

1 participant