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

How to Run in 2024 #85

Open
kmarsh opened this issue Sep 20, 2024 · 2 comments
Open

How to Run in 2024 #85

kmarsh opened this issue Sep 20, 2024 · 2 comments

Comments

@kmarsh
Copy link

kmarsh commented Sep 20, 2024

It seems this library has fallen behind in maintenance... I don't have the Python chops to get it up to date (ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject 🤷‍♂️) but I was able to get it to just run in a modern Docker container using uv. uv creates virtual environments with older Python versions on the fly.

So in case anyone just has some rasters they need to adjust color for in 2024 without forking or patching:

# install uv
curl -L https://astral.sh/uv/install.sh | sh

# run your command
uvx -p 3.8 --from rasterio --with rio-color rio color -j8 in.tif out.tif "gamma 1 1.3"
@kylebarron
Copy link

https://github.com/vincentsarago/color-operations
from @vincentsarago is an updated fork

@wboykinm
Copy link
Contributor

@kmarsh Hopefully Vincent's fork has done the job for you in the meantime, but we've also just brought rio-color up to date: #92

. . . so you may have more luck running it now.

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

3 participants