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

n5-downsample.py does not write pixelResolution in downsampled attributes.json #30

Open
orena1 opened this issue Sep 19, 2022 · 0 comments

Comments

@orena1
Copy link

orena1 commented Sep 19, 2022

Hi,
I have an n5 files with the following attributes.json (created with fiji n5 save function)

{"pixelResolution":{"unit":"µm","dimensions":[0.9090925619864764,0.9090925619864764,1.0]},"compression":{"type":"gzip","useZlib":false,"level":-1},"downsamplingFactors":[1.0,1.0,1.0],"blockSize":[150,150,150],"dataType":"uint8","dimensions":[2865,3792,32]}

When I downsample it with the following command:
./spark-local/n5-downsample.py -n /mnt/nasquatch/data/EASI_FISH/registration_test/220909/test.n5/ -i image/c0/s0 -o image/c0/s1 -f 2,2,2
I get a new dataset, but the s1 dataset does not contain the pixelResolution:

{"compression":{"type":"gzip","useZlib":false,"level":-1},"downsamplingFactors":[2,2,2],"blockSize":[150,150,150],"dataType":"uint8","dimensions":[1432,1896,16]}

Shouldn't n5-downsample.py also need to infer the pixelResolution?
Thanks

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