Skip to main content

Writer plugin for napari to save Sentinel tiffs into ome-zarr format

Project description

napari-sentinel-to-zarr

License: MIT PyPI Python Version tests

Writer plugin for napari to save Sentinel tiffs into ome-zarr format


This napari plugin was generated with Cookiecutter using with @napari's cookiecutter-napari-plugin template.

Installation

You can install napari-sentinel-to-zarr via pip:

`pip install napari-sentinel-to-zarr`

Usage

This package provides command-line utilities for:

  • Processing raw Sentinel zips of a tile into multiscale zarr
  • Processing interpolated “GapFilled” tif for that tile into zarr, rechunking along time axis
  • Processing the zarr from step 2 into multiscale OME-zarr

Raw Zipped Images to Zarr

Install the latest version of napari using

pip install -U napari

Install napari-sentinel-to-zarr using

pip install napari-sentinel-to-zarr

Run sentinel-to-zarr zip-to-zarr path/to/tile/55HBU out/path/dir/55HBU.zarr

where path/to/tile/55HBU is a directory full of Sentinel zips

Interpolated Images to Zarr

Run sentinel-to-zarr interpolated-to-zarr path/to/interpolated/55HBU_GapFilled_Image.tif out/dir/Image.zarr

You can pass in optional arguments:

  • --step-size - how many slices to convert at once. The default is 20 which will require ~5GB RAM. A larger step size means more slices can be loaded at once, and will speed up performance. A full image is typically ~175GB.
  • --chunk-size - the chunk size of the resulting zarr. Default is 1024 which is typically considered a good option and provides good performance

Interpolated Zarr to Multiscale Zarr

Run sentinel-to-zarr zarr-to-multiscale-zarr path/to/interpolated/zarr out/path/interpolated_multiscale.zarr tilename

Where path/to/interpolated/zarr is the output file from step 2

You can pass in optional arguments

  • --min-shape- the smallest pyramid level you wish to generate. Default is 1024px

Napari Plugin

This package also comes with a napari writer plugin which allows you to open the raw tiles directly by dragging one into a napari viewer, and saving out while you browse using File>Save Layers <<<<<<< HEAD

Stashed changes ======= fb66ae98f8a36fe3d90cd02f1892b326fc180b52

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT license, "napari-sentinel-to-zarr" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari-sentinel-to-zarr-0.0.3.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

napari_sentinel_to_zarr-0.0.3-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file napari-sentinel-to-zarr-0.0.3.tar.gz.

File metadata

  • Download URL: napari-sentinel-to-zarr-0.0.3.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for napari-sentinel-to-zarr-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e4b05748138b283b99e4e921aaed0b868c8ee80697ce1238799a72fee8aad233
MD5 3ed5bfe488272d0521dc9be446c5fbb2
BLAKE2b-256 6cdaa66bcc5126306621a53ac39926cf12e583a2e51113070d5313270b91e8e7

See more details on using hashes here.

File details

Details for the file napari_sentinel_to_zarr-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: napari_sentinel_to_zarr-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for napari_sentinel_to_zarr-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fc6ac0e2431c1faf3e3acaa184e9ff06aa60ffb4a1d5326770e8ec6c0ee47810
MD5 225b3bf7e637a610da1fa01fd3c89c4e
BLAKE2b-256 17a060abd14016694fd6546b1bd43a5ba38a4bff52c03a09ade88cd7caf41446

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page