Bugfix #2187 develop add_offset_and_scale_factor #2194
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Expected Differences
The main issue was add_offset and scale_factor were applied only both attributes are defined. Now they are applied when any attribute is defined.
Note: The data_type for add_offset and scale_factor was changed from float to double. Some computed values are different.
Do these changes introduce new tools, command line arguments, or configuration file options? [No]
If yes, please describe:
Do these changes modify the structure of existing or add new output data types (e.g. statistic line types or NetCDF variables)? [No]
If yes, please describe:
Pull Request Testing
Note: this is an example: scale_factor is defined, but not add_offset attribute.
Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [No]
Do these changes include sufficient testing updates? [No]
Will this PR result in changes to the test suite? [Yes]
If yes, describe the new output and/or changes to the existing output:
The computed values are slightly different for following outputs:
point2grid_GOES_16_ADP.nc
point2grid_GOES_16_AOD_TO_G212_compute.nc
point2grid_GOES_16_AOD_TO_G212_gaussian.nc
point2grid_GOES_16_AOD_TO_G212_grid_map.nc
point2grid_GOES_16_AOD_TO_G212.nc
point2grid_GOES_16_AOD_TO_G212_unsigned.nc
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s)
Select: Organization level software support Project or Repository level development cycle Project
Select: Milestone as the version that will include these changes