Skip to main content

Python-based command line interface for TIMESAT

Project description

TIMESAT CLI

TIMESAT CLI is a command line interface and workflow manager for the TIMESAT package. It provides a convenient way to configure and execute TIMESAT processing pipelines directly from the command line or automated scripts.


Requirements

Before you begin, make sure you have:


Installation

timesat-cli is available on PyPI and can be installed using pip or uv.
Although it is not published on Conda, you can safely install it inside a Conda environment.

Option 1 — Install inside a Conda environment

conda create -n timesat-cli python=3.12
conda activate timesat-cli
pip install timesat-cli

This approach uses Conda only for environment isolation.
The installation itself is handled by pip, which will automatically install timesat and all required dependencies.


Option 2 — Install via uv (recommended for pure Python environments)

uv is a modern, high-performance alternative to pip and venv.

  1. Install uv:

    pip install uv
    # or
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  2. Create a virtual environment and install the package:

    uv venv .venv
    source .venv/bin/activate
    uv pip install timesat-cli
    

uv provides faster dependency resolution and caching.
It will automatically install timesat and related dependencies.


Option 3 — Direct installation with pip

If you already have Python 3.10+ installed:

pip install timesat-cli

Running the Application

After installation, start the CLI with:

timesat-cli path/to/settings.json

or equivalently:

python -m timesat_cli path/to/settings.json

Advanced Usage

If you wish to customize or extend the workflow, you can also run or modify the main script directly:

python timesat_run.py

The file 'timesat_run.py' contains the full example pipeline that invokes core modules from the 'timesat_cli' package, including configuration loading, file management, TIMESAT processing, and output writing.


HRVPP Notes — QFLAG2 weights

If you work with HRVPP quality flags (QFLAG2), the following weights w are commonly applied:

QFLAG2 value Weight w
1 1.0
4097 1.0
8193 1.0
12289 1.0
1025 0.5
9217 0.5
2049 0.5
6145 0.5
3073 0.5

Example (settings.json):

"p_a": {
  "value": [
    [1, 1.0],
    [4097, 1.0],
    [8193, 1.0],
    [12289, 1.0],
    [1025, 0.5],
    [9217, 0.5],
    [2049, 0.5],
    [6145, 0.5],
    [3073, 0.5]
  ],
  "description": "QA weighting rules. Leave empty [] to keep original QA values. Use [qa_value, weight] for exact matches or [min, max, weight] for ranges."
}

License

TIMESAT-CLI is released under the MIT License.

You are free to use, modify, and distribute this software under the terms of the MIT License.

The MIT License applies only to the source code and assets provided in this repository.

📦 Dependency and Usage Notice

TIMESAT-CLI is an open-source command-line interface that depends on the TIMESAT core, which is proprietary software and licensed separately.

Use of TIMESAT-CLI does not grant any rights to use the TIMESAT core beyond the terms of the TIMESAT license.

  • The TIMESAT core is freely available for non-commercial scientific research, academic teaching, and personal use.
  • Commercial use of the TIMESAT core requires a separate written agreement with the authors.

Each dependency installed with this software retains its own license (MIT, BSD, Apache, etc.). Users are responsible for complying with the license terms of all installed components.

⚖️ License Summary

Component License Type Notes
TIMESAT-CLI MIT License Open-source CLI and workflow manager.
TIMESAT core Proprietary Licensed separately; commercial use requires agreement.
Other dependencies Various (MIT/BSD/Apache) See individual package licenses.

For full license texts, see the LICENSE and NOTICE files included with this repository and installed packages.


Citation

If you use TIMESAT, TIMESAT-CLI or TIMESAT-GUI in your research, please cite the corresponding release on Zenodo:

Cai, Z., Eklundh, L., & Jönsson, P. (2025). TIMESAT4: is a software package for analysing time-series of satellite sensor data (Version 4.1.x) [Computer software]. Zenodo.
https://doi.org/10.5281/zenodo.17369757


Acknowledgments

  • This project acknowledges the Swedish National Space Agency (SNSA), the European Environment Agency (EEA), and the European Space Agency (ESA) for their support and for providing access to satellite data and related resources that made this software possible.

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

timesat_cli-1.6.1.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

timesat_cli-1.6.1-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file timesat_cli-1.6.1.tar.gz.

File metadata

  • Download URL: timesat_cli-1.6.1.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for timesat_cli-1.6.1.tar.gz
Algorithm Hash digest
SHA256 7d6a21b6f99f1accc5abca024e48771dcb48c6bf5a63f659fbd4f19e9265d4ac
MD5 62f28c3bf3a8d35dea1c32466f2b3a2e
BLAKE2b-256 0ca4334d0e4a40f0e9c946cf4253c80ea01193b75ad47d6f09cac029006591a2

See more details on using hashes here.

File details

Details for the file timesat_cli-1.6.1-py3-none-any.whl.

File metadata

  • Download URL: timesat_cli-1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for timesat_cli-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ccf6ed9899e56faf97810c025782e60b74098b2710724d06ea561861f2bc2bc5
MD5 c6f8b1f769c8e7cdc0b3fe104bde09a7
BLAKE2b-256 606254c7518fd914a34f8b52c0148357b60a55c67ac399f262c15bc906b46b14

See more details on using hashes here.

Supported by

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