Skip to main content
MODAPE
=====

|CI| |version| |pyversions| |downloads| |license|

.. |CI| image:: https://travis-ci.org/WFP-VAM/modape.svg?branch=master
:target: https://travis-ci.org/WFP-VAM/modape

.. |version| image:: https://img.shields.io/pypi/v/modape.svg
:target: https://pypi.org/project/modape/

.. |pyversions| image:: https://img.shields.io/pypi/pyversions/modape.svg
:target: https://pypi.org/project/modape/

.. |downloads| image:: https://img.shields.io/pypi/dm/modape.svg
:target: https://pypi.org/project/modape/

.. |license| image:: https://img.shields.io/github/license/WFP-VAM/modape.svg
:target: https://github.com/WFP-VAM/modape/blob/master/LICENSE
|

The **M**\ ODIS **A**\ ssimilation and **P**\ rocessing **E**\ ngine combines a state-of-the art whittaker smoother, implemented as fast C-extension through Cython and including a V-curve optimization of the smoothing parameter, with a HDF5 based processing chain optimized for MODIS data.

The sub-module ``modape.whittaker`` includes the following variations of the whittaker smoother with 2nd order differences:

- **ws2d**: Whittaker with fixed smoothing parameter (``s``)
- **ws2doptv**: Whittaker with V-curve optimization of the smoothing parameter (``s``)
- **ws2doptvp**: Whittaker with V-curve optimization of the smoothing parameter (``s``) and expectile smoothing using asymmetric weights

The MODIS processing chain consists of the following executables, which can be called through commandline:

- ``modis_download``: Query and download raw MODIS products (requires Earthdata credentials)
- ``modis_collect``: Collect raw MODIS data into daily datacubes stored in an HDF5 file
- ``modis_smooth``: Smooth, gapfill and interpolate raw MODIS data using the implemented whittaker smoother
- ``modis_window``: Extract mosaic(s) of multiple MODIS tiles, or subset(s) of a global/tiled MODIS product and export it as GeoTIFF raster in WGS1984 coordinate system

Additional executables:

- ``csv_smooth``: Smooth timeseries stored within a CSV file
- ``rts_smooth``: Smooth a series of raster files stored in a local directory
- ``modis_info``: Retrieve metadata from created HDF5 files
- ``modis_product_table``: MODIS Version 6.0 product table


Installation
------------
**Dependencies:**

modape depends on these packages:

- numpy
- gdal
- h5py
- beautifulsoup4
- requests
- progress
- pandas

Some of these packages (eg. GDAL) can be difficult to build, especially on windows machines. In the latter case it's advisable to download an unofficial binary wheel from `Christoph Gohlke's Unofficial Windows Binaries for Python Extension Packages <https://www.lfd.uci.edu/~gohlke/pythonlibs/>`_ and install it locally with ``pip install`` before installing modape.

**Installation from github:**

.. code:: bash

$ git clone https://github.com/WFP-VAM/modape
$ cd modape
$ pip install .

**Installation from PyPi:**

.. code:: bash

$ pip install modape


Bugs, typos & feature requests
-----

If you find a bug, see a typo, have some kind of troubles running the module or just simply want to have a feature added, please `submit an issue! <https://github.com/WFP-VAM/modape/issues/new>`_


Usage tutorial
-----

All executables can be called with a ``-h`` flag for detailed usage.

For a more detailed tutorial on how to use the executables, please visit `WFP-VAM.github.io/modape <https://wfp-vam.github.io/modape/>`_.


CHANGES
-----
- v0.1.1/2/3:
- changes to MANIFEST.in
- fix issues with pytest and dates in HDF5 for PYTHON 2.7
- fix bug for updating smoothed datasets

- v0.1.0:
- initial release

-----

References:

P. H. C. Eilers, V. Pesendorfer and R. Bonifacio, "Automatic smoothing of remote sensing data," 2017 9th International Workshop on the Analysis of Multitemporal Remote Sensing Images (MultiTemp), Brugge, 2017, pp. 1-3.
doi: 10.1109/Multi-Temp.2017.8076705
URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8076705&isnumber=8035194

Core Whittaker function adapted from ``whit2`` function from `R` package `ptw <https://cran.r-project.org/package=ptw>`_:

Bloemberg, T. G. et al. (2010) "Improved Parametric Time Warping for Proteomics", Chemometrics and Intelligent Laboratory Systems, 104 (1), 65-74

Wehrens, R. et al. (2015) "Fast parametric warping of peak lists", Bioinformatics, in press.

-----

Author & maintainer:

Valentin Pesendorfer

valentin.pesendorfer@wfp.org

Metadata

Release files for modape 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modape 0.1.3
File Size Uploaded
modape-0.1.3.tar.gz 9.3 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for modape 0.1.3
File
modape-0.1.3-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
modape-0.1.3-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details
modape-0.1.3-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details
modape-0.1.3-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details

Total release size: 46.6 MB

Release files / modape-0.1.3.tar.gz

Download URL modape-0.1.3.tar.gz
Size 9.3 MB
Tags Source
SHA-256 checksum
How to use checksums
412d0ed85edab5fa1e6ae37f3061cbf45c72630dbd2dede7d4c80b7d8e52629d
BLAKE2b-256 checksum
How to use checksums
3388631e18cbc46dff0ecc9f2eaf4f590ad0f526b7a2328a412bf2cd71243786
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/36.6.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

Release files / modape-0.1.3-cp36-cp36m-win_amd64.whl

Download URL modape-0.1.3-cp36-cp36m-win_amd64.whl
Size 9.3 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
a654a345acae68cfd89bf790a0e654f91b06f9641581c0905be5cf645ce836e8
BLAKE2b-256 checksum
How to use checksums
27165667ebc417d527fae0cf968b568d16516523ed8ebf80f9d81c412c09d9d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Release files / modape-0.1.3-cp36-cp36m-win32.whl

Download URL modape-0.1.3-cp36-cp36m-win32.whl
Size 9.3 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
b125acf3730ba9ec73c202df7ecc41125f27bb067fac2bfe83e191c57480173f
BLAKE2b-256 checksum
How to use checksums
696cdd32f8df3c4ff2af976d45065d615d44664c529d8fb6793001bcdcfd69d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Release files / modape-0.1.3-cp27-cp27m-win_amd64.whl

Download URL modape-0.1.3-cp27-cp27m-win_amd64.whl
Size 9.3 MB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
83565e82546f0d1fc1918a7884f3426a18144af155a2f9843be1aa9a1c0b9d13
BLAKE2b-256 checksum
How to use checksums
4b2f5b935a3628ecfba9bc0c38f6e32ee1cf7013636e893f7348996fdf0a76ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Release files / modape-0.1.3-cp27-cp27m-win32.whl

Download URL modape-0.1.3-cp27-cp27m-win32.whl
Size 9.3 MB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
bc3fa670e8bf2ce15e091aa3cd6450263910ce493cbddf8ed7f26f7a830005a2
BLAKE2b-256 checksum
How to use checksums
2d750a7c677cb1479d01c66c605e9e450081d3e7f02434f1fb9afea4f284225d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Release history Release notifications | RSS feed

1.0.0

13 release files

0.3.2

5 release files

0.3.1

5 release files

0.3.0

6 release files

0.2.1

6 release files

0.2.0

5 release files

0.1.7

5 release files

0.1.6

5 release files

0.1.5

5 release files

0.1.4

5 release files

This release

0.1.3 This release

5 release files

0.1.2

5 release files

0.1.1

5 release files

0.1.0

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page