-
Notifications
You must be signed in to change notification settings - Fork 88
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
Codec for LogScale #661
Comments
I don't know the details of the ocean model, but the floating-point number expression seems reasonable in your case. |
That's a very good point. The next question is whether float16 is supported? |
Numpy support import numpy as np
from numcodecs import AsType
x = np.arange(100,120,2,dtype = np.float32)
f = AsType(encode_dtype=np.float16, decode_dtype=np.float32)
y = f.encode(x)
print(y, y.dtype)
# [100. 102. 104. 106. 108. 110. 112. 114. 116. 118.] float16 |
By the way, a similar issue was raised in #237. |
Hi,
We're thinking about how to improve compression of values of ocean models with large value spans. We would like to encode them using a log-scale/ln-scale. Would it be interesting to add official support for a LogScale(base, offset,etc..) codec?
Regards, Gaute
The text was updated successfully, but these errors were encountered: