Timothy Hodson

Results 55 comments of Timothy Hodson

@martindurant, I'm bringing you into this discussion with the `xbitinfo` team before continuing on the `numcodecs` side. The two options I'd like both camps to mull over are: 1. Reimplementing...

Rather than including this in `bitround`, lets create a `bitinfo` codec that calls `bitround`. Here's my draft proposal: https://github.com/thodson-usgs/numcodecs/blob/adaptive-bitrounding/numcodecs/bitinfo.py (ah, still a couple bugs here, but you'll get the gist)

Okay works now. Going for multithread.

I sense that could get complicated, but I defer to the respective maintainers for guidance. Currently, ```python import xarray as xr ds = xr.tutorial.open_dataset("air_temperature") from numcodecs import Blosc, BitInfo compressor...

@observingClouds, I'm also new to `numcodecs`, but I think it's designed to prohibit our initial proposal (probably a sign of a good codec). But you too can join the ranks...

Maybe `register_codec` is the route to adding the codec to `xbitinfo`. For example, https://github.com/cgohlke/tifffile/blob/master/tifffile/numcodecs.py

I take that back, `register_codec` might be the wrong approach here. I believe the plan is: 1. implement a numpy-based codec in `numcodec` (basically done) 2. that codec could be...

Dequantizing works well. Try something like ```python import numpy as np def dequantize(array, sig_fig): a = 0.5 * 10**sig_fig noise = np.random.uniform(-a, a, size=array.shape) return array + noise ds =...

Ah, sorry for walking in without the correct context. I meant that the function above is a simple way to transform the black line into the purple line: ![image](https://github.com/observingClouds/xbitinfo/assets/34148978/f57ec703-11af-4772-bc73-5af58fa4a88f) Starting...

Hmm, I was following the instructions from the [README](https://github.com/pangeo-forge/staged-recipes/blob/master/README.md), but perhaps I should have created the issue before the PR