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

scale_factor and offset applied twice #1

Open
ELE3E opened this issue Jan 10, 2017 · 0 comments
Open

scale_factor and offset applied twice #1

ELE3E opened this issue Jan 10, 2017 · 0 comments

Comments

@ELE3E
Copy link

ELE3E commented Jan 10, 2017

I'm running a DAP server of the newest version of pydap==3.2.0 with the latest pydap.handlers.netcdf from the master branch. I've noticed that when you have a netCDF4 file where (some) of the variables have a 'scale_factor' and 'offset' attribute set, they are applied twice.
I did some investigation and I think when actually reading out the values from the netCDF file, it should read the raw value and not the scaled value (which is the default as far as I know).
A temporary fix for me was to remove the 'scale_factor' and 'offset from the attributes to be read from the netCDF file, but I don't think this is the optimal solution.

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

No branches or pull requests

1 participant