-
Notifications
You must be signed in to change notification settings - Fork 24
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
Update the PB2NC configuration to correct the obs_prefbufr_map name as obs_prepbufr_map. #2044
Comments
It's not simple to use it's value instead of "obs_prepbufr_map" if "obs_prefbufr_map" is defined. So the reading order will be:
|
@hsoh-u, I'm moving your email over to the GitHub issue comments section... Cases to handle the bad key and some questions: Two questions: [default configuration] If bad key (obs_prefbufr_map) exists at the default configuration:
[user configuration] If bad key exist at the user configuration, give a warning to correct key name
@hsoh-u there is NO distinction between "default configuration" and "user configuration", nor does there need to be. In pb2nc. This line of pb2nc_conf_info.cc calls parse_conf_obs_bufr_map(). And this is the only code that actually needs to change (along with defining conf_key_obs_prepbufr_map)... Existing:
New:
Shoot, looks like I'm wrong. The "parse_add_conf_key_value_map()" does NOT have the optional "error_out" argument. Perhaps you'll need to add that as well. Otherwise, when you lookup "conf_key_obs_prefbufr_map", that lookup will fail and exit. We do not want to exit if its not present. |
I'm thinking not to change parse_conf_obs_bufr_map which is in the library code. The code will do following way:
|
…ar entry should really be obs_bufr_map and not commented out.
Replace italics below with details for this issue.
Describe the Problem
Provide a clear and concise description of the bug here.
The configuration name "obs_prefbufr_map" should be renamed to "obs_prefbufr_map".
Will do it for the develop branch, not main_v10.0.
Expected Behavior
Provide a clear and concise description of what you expected to happen here.
For the backward compatibility support both "obs_prefbufr_map" and "obs_prefbufr_map".
Environment
Describe your runtime environment:
1. Machine: (e.g. HPC name, Linux Workstation, Mac Laptop)
2. OS: (e.g. RedHat Linux, MacOS)
3. Software version number(s)
To Reproduce
Describe the steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
Post relevant sample data following these instructions:
https://dtcenter.org/community-code/model-evaluation-tools-met/met-help-desk#ftp
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
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
Bugfix Checklist
See the METplus Workflow for details.
Branch name:
bugfix_<Issue Number>_main_<Version>_<Description>
Pull request:
bugfix <Issue Number> main_<Version> <Description>
Select: Reviewer(s) and Linked issues
Select: Organization level software support Project for the current coordinated release
Select: Milestone as the next bugfix version
Branch name:
bugfix_<Issue Number>_develop_<Description>
Pull request:
bugfix <Issue Number> develop <Description>
Select: Reviewer(s) and Linked issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: