Skip to main content

Package for image to timeseries to image conversion

Project description

ci cov pip doc

This package provides routines for the conversion of image formats to time series and vice versa. It works best with the readers and writers supported by pynetcf. The main use case is for data that is sampled irregularly in space or time. If you have data that is sampled in regular intervals then there are alternatives to this package which might be better for your use case. See Alternatives for more detail.

The readers and writers have to conform to the API specifications of the base classes defined in pygeobase to work without adpation.

Installation

This package requires python>=3.9 and depends on the following libraries that should be installed with conda or mamba

conda install -c conda-forge numpy netCDF4 pyresample

Afterwards you can install this package and all remaining dependencies via:

pip install repurpose

On macOS if you get ImportError: Pykdtree failed to import its C extension, then it might be necessary to install the pykdtree package from conda-forge

conda install -c conda-forge pykdtree

Optional Dependencies

Some packages are only needed to run unit tests and build docs of this package. They can be installed via pip install repurpose[testing] and/or pip install repurpose[docs].

Citation

https://zenodo.org/badge/DOI/10.5281/zenodo.593577.svg

If you use the software in a publication then please cite it using the Zenodo DOI. Be aware that this badge links to the latest package version.

Modules

It includes the main modules:

  • img2ts for image/swath to time series conversion, including support for spatial resampling.

  • ts2img for time series to image conversion, including support for temporal resampling.

  • resample for spatial resampling of (regular or irregular) gridded data to different resolutions.

  • process contains a framework for parallel processing, error handling and logging based on joblib

Alternatives

If you have data that can be represented as a 3D datacube then these projects might be better suited to your needs.

  • Climate Data Operators (CDO) can work with several input formats, stack them and change the chunking to allow time series optimized access. It assumes regular sampling in space and time as far as we know.

  • netCDF Operators (NCO) are similar to CDO with a stronger focus on netCDF.

  • xarray can read, restructure, write netcdf data as datacubes and apply functions across dimensions.

Contribute

We are happy if you want to contribute. Please raise an issue explaining what is missing or if you find a bug. We will also gladly accept pull requests against our master branch for new features or bug fixes.

Guidelines

If you want to contribute please follow these steps:

  • Fork the repurpose repository to your account

  • make a new feature branch from the repurpose master branch

  • Add your feature

  • Please include tests for your contributions in one of the test directories. We use py.test so a simple function called test_my_feature is enough

  • submit a pull request to our master branch

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

repurpose-0.13.tar.gz (285.9 kB view details)

Uploaded Source

Built Distribution

repurpose-0.13-py2.py3-none-any.whl (34.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file repurpose-0.13.tar.gz.

File metadata

  • Download URL: repurpose-0.13.tar.gz
  • Upload date:
  • Size: 285.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for repurpose-0.13.tar.gz
Algorithm Hash digest
SHA256 f20244ecfae5a4a83881f3414a4e76f9725b4e0d223e7439ed092a908978ddfc
MD5 faeb28ca2fcb6333a412b4e8eb6bbd0e
BLAKE2b-256 e4a55c2b40a3bfc8e75dccade0a8057d1163ad5a097d46dfa7bb4d60cd297b0c

See more details on using hashes here.

File details

Details for the file repurpose-0.13-py2.py3-none-any.whl.

File metadata

  • Download URL: repurpose-0.13-py2.py3-none-any.whl
  • Upload date:
  • Size: 34.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for repurpose-0.13-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7b296536ae17e5448e5414ce7cb4220e63b0acee232ffa79c96c66cfe2fc1d03
MD5 a9f228825b52f1926a9d405a3af6c243
BLAKE2b-256 8a985e919b88286431f8fe295e5786d41a57a468382755611754eb682ed696cb

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