-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Describe the Problem
This issue arose via this dtcenter/METplus#2691 GitHub discussion.
Currently the MTD tool utilizes a specialized code to create output netCDFs (the write_nc_grid function). During the code creation, support was only given to a small subset of grid projections ( lat/lon, lambert conformal, and polar stereographic).
As a result, passing in any of the other MET-supported grid projections (for example, rotated lat/lon) and requesting output in those same projections results in an error:
ERROR :
ERROR : bool write_nc_grid(NcFile &, const Grid &) -> unsupported projection type
ERROR :
Expected Behavior
Because MET and METplus as a whole support more grid projections than what write_nc_grid supports, users should be able to pass any of the supported grid projections and receive output in their desired (and supported) grid projections.
We should update MTD's logic to use the common library code write_netcdf_proj function which would fix this issue (ie support all METplus supported projections).
This bugfix should be applied to the develop branch, as well as a 11.1 bugfix patch.
Environment
Describe your runtime environment:
*1. Machine: Seneca
*2. OS: Linux
*3. MET-12.0 NB09232024
To Reproduce
Describe the steps to reproduce the behavior:
*1. Use input data not in one of the 3 listed projections: lat/lon, lambert conformal, or polar stereographic
*2. Call the MTD tool
Note: @j-opatz can provide testing data and configuration file as needed.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
2782544 (NOAA Base FY24)
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 bugfix version
- Select Coordinated METplus-X.Y Support project for support of the current coordinated release
- Select MET-X.Y.Z Development project for development toward the next official release
Define Related Issue(s)
Consider the impact to the other METplus components.
Bugfix 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 main_<Version>.
Branch name:bugfix_<Issue Number>_main_<Version>_<Description>
- Fix the bug 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 main_<Version>.
Pull request:bugfix <Issue Number> main_<Version> <Description>
- Define the pull request metadata, as permissions allow.
Select: Reviewer(s) and Development issue
Select: Milestone as the next bugfix version
Select: Coordinated METplus-X.Y Support project for support of the current coordinated release - Iterate until the reviewer(s) accept and merge your changes.
- Delete your fork or branch.
- Complete the steps above to fix the bug on the develop branch.
Branch name:bugfix_<Issue Number>_develop_<Description>
Pull request:bugfix <Issue Number> develop <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 - Close this issue.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status