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
Supporting unsigned data type for the input NetCDF files #1492
Comments
How to handle a missing value for unsigned data type? |
Howard, I assumed we were enhancing MET to READ unsigned data type inputs but STORE them into DataPlane objects as doubles. If that's the case, storing bad data as -9999 would not be a problem. But if there's a particular line of code or function that's causing a problem in the logic, please point me to it. |
* #1492 Renamed get_global_att_double to get_global_att * #1492 Changed qc_value as unsigned char * #1492 Renamed get_global_att_double to get_global_att. Passing reference for performance * #1492 Implemented unsigned data type. Reduced duplicated code by using template * #1492 Added a unit test, point2grid_GOES_16_AOD_TO_G212_unsigned * #1492 Refactoring: calls has_unsigned_attribute fir _Unsigned attribute handling * #1492 Got the double attribute value from double and float data type
On 10/15/2020, I recreated the develop-ref tag to get past the addition to the unit tests for this work. But it was actually a little messier than that. On kiowa in NB20201015, the regression test for develop-ref actually failed because of bug #1508. So I manually ran comp_dir.sh to compare NB20201014/develop-ref (which succeeded) to NB20201015/develop. The only difference was the addition of one new output file: ERROR: folder ../NB20201014/MET-develop-ref/test_output missing 1 files |
MET does not support the unsigned data types for NetCDF file. MET only supported the unsigned values by applying "_Unsigned" attribute at the signed data type. Ho-Chun reported the data type changes at GOES16 AOD daata (https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=96687). It's changed to the "unsigned short" and the "unsigned byte" type without "_Unsigned" attribute. The point2grid does not work with new AOD data file.
Describe the New Feature
MET library should support unsigned data types (unsigned byte/short/int/int64) and point2grid should check if the the data type is signed or unsigned before reading the NetCDF variables.
Acceptance Testing
point2grid should process the new GOES data file (dakota:/d3/personal/hsoh/data/RT-96687/OR_ABI-L2-AODC-M6_G16_s20202581441152_e20202581443525_c20202581445493.nc)
Time Estimate
2 or 3 days
Sub-Issues
Consider breaking the new feature down into sub-issues.
Relevant Deadlines
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.
New Feature Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s), Project(s), Milestone, and Linked issues
The text was updated successfully, but these errors were encountered: