|
Jerry Wilwerding created an issue |
Incorrect packing formula used in NetCDF scalefactor and add_offset calculations |
Issue Type: |
|
---|---|
Affects Versions: |
2.12.2 |
Assignee: |
Unassigned |
Created: |
14/Mar/18 12:55 PM |
Priority: |
|
Reporter: |
I am using geoserver v2.12.2 with the JVM system property to have geoserver I would recommend that the formula be updated to use the “signed” If changing the formula is not an option, then the one really should describe the data type as unsigned since using unsigned datatypes is contrary to netCDF conventions. Impact to this bug is that any data value in the upper half of the range will be interpreted as a negative value by most clients since data types are signed by convention. For reference, the formulas are defined in DataPacking.java There is more information at the link below, but these seem to be the two In either the signed or unsigned case, an alternate formula may be used for > scale_factor =(dataMax - dataMin) / (2^n^ - 2) > add_offset = (dataMax + dataMin) / 2 If the packed values are unsigned, then the analogous formula that reserves > scale_factor =(dataMax - dataMin) / (2^n^ - 2) > add_offset = dataMin - scale_factor |
Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS |
|
This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100082-sha1:b581f55) |
|