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

better handle vegetation_type when vegetation_type is missing from grib file and also convert vegetation_type to string #315

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

randytpierce
Copy link
Contributor

I discovered that I had not handled the case where a model didn't have any vegetation_type in the grib file, and i also realized that the handle_vegetation_type was not using the string value of veg_type in the json output. This PR corrects those oversights. I also adds a .prev and .tmp to the unit test for get_files.

…ib file and also convert vegetation_type to string
@randytpierce randytpierce linked an issue Jan 29, 2024 that may be closed by this pull request
@randytpierce randytpierce self-assigned this Jan 29, 2024
Copy link
Contributor Author

@randytpierce randytpierce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better handle vegetation_type

Copy link
Contributor

@ian-noaa ian-noaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks okay. However, there was a comment that caused me some concern that I'd like to understand better. I'm hoping it's just leftover from development and can be deleted. 😄

I also had a comment about splitting one of our tests out so each test is more focused and gives us a better indication of what went wrong. It's up to you if you want to do that now Randy. I understand you want to get this merged soon.

src/vxingest/grib2_to_cb/grib_builder.py Outdated Show resolved Hide resolved
@ian-noaa ian-noaa requested review from gopa-noaa and removed request for JeffHamiltonNOAA January 30, 2024 19:32
@ian-noaa
Copy link
Contributor

Adding Gopa as a reviewer - I believe that was Randy's original intent.

Copy link

Code Coverage

Package Line Rate Branch Rate Health
vxingest 33% 42%
vxingest.builder_common 29% 17%
vxingest.ctc_to_cb 12% 1%
vxingest.grib2_to_cb 12% 1%
vxingest.netcdf_to_cb 13% 1%
vxingest.partial_sums_to_cb 12% 1%
vxingest.utilities 30% 32%
Summary 16% (488 / 3015) 6% (40 / 700)

@randytpierce randytpierce merged commit 22a7ab3 into main Jan 30, 2024
7 checks passed
@randytpierce randytpierce deleted the 278-errors-in-the-rap_ops-ingest branch January 30, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors in the RAP_OPS ingest
2 participants