RepositoryPythonDEGermany
NM

nmileva/starfm4py

The STARFM fusion model for Python

151stars
33forks
1issues
3views

STARFM for Python (starfm4py)

Remote sensing image fusion allows the spectral, spatial and temporal enhancement of images. New techniques for image fusion are constantly emerging shifting the focus from pan-sharpening to spatiotemporal fusion of data originating from different sensors and platforms. However, the application of image fusion in the field of Earth observation still remains limited. The number and complexity of the different techniques available today can be overwhelming thus preventing users from fully exploiting the potential of fusion products.

The aim of this study is to make fusion products more accessible to users by providing them with a simple tool for spatiotemporal fusion. This tool will contribute to the better exploitation of data from available sensors making possible to bring the images to the spectral, spatial and temporal resolution required by the user. The fusion algorithm implemented in the tool is based on the spatial and temporal adaptive reflectance fusion model (STARFM) – a well established fusion technique in the field of remote sensing often used as benchmark by other algorithms.

How to cite?

If you use this code for published work, please cite it using the reference below or the BibTex file:

Mileva, N., Mecklenburg, S. & Gascon, F. (2018). New tool for spatiotemporal image fusion in remote sensing - a case study approach using Sentinel-2 and Sentinel-3 data. In Bruzzone, L. & Bovolo, F. (Eds.), SPIE Proceedings Vol. 10789: Image and Signal Processing for Remote Sensing XXIV. Berlin, Germany: International Society for Optics and Photonics. doi: 10.1117/12.2327091; https://doi.org/10.1117/12.2327091

A copy of the paper can be downloaded here: https://opus.bibliothek.uni-augsburg.de/opus4/frontdoor/index/index/docId/78805

Installation

It is recommended to use the Anaconda distribution for Python 3. Run the below code from the Anaconda prompt by replacing myenv with a name of your choice. For the full list of requirements, check the requirements file.

conda create -n myenv dask rasterio zarr matplotlib

Usage

STARFM was initially developed to blend Landsat and MODIS images. The current implementation is not sensor specific and can be used for other sensor pairs such as Sentinel-2 and Sentinel-3 (OLCI). However, certain degree of similarity between the images is needed before they can be blended. The most common harmonization steps are:

  • atmospheric correction - in case a surface reflectance product is not already available, the atmospheric correction will be the first step to be performed; the algorithm to be used depends on the satellite sensor; popular atmospheric correction models for Sentinel-2 and Sentinel-3 (OLCI) are iCor, Sen2Cor, SMAC, etc.
  • cloud masking - cloud pixels should be excluded;
  • re-projection - all images should be in the same cartographic coordinate system (e.g. WGS84 UTM 35N);
  • resampling to same pixel size, that is usually the pixel size of the fine resolution image;
  • co-registration of the images - the images should not only have the exact same extent but they should also match on (sub-)pixel level; useful tools for co-registration are AROSICS, GeFolki, eo-learn, pyelastix, etc.
  • bandpass adjustment (not mandatory);
  • BRDF normalization (not mandatory);

For an example of usage check test.py. To apply the algorithm on other images, make sure to adjust the variables in parameters.py.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
torchgeo/torchgeo

TorchGeo: datasets, samplers, transforms, and pre-trained models for geospatial data

4.3k
Nov 29, 2026
RepositoryPython
Clay-foundation/model

The Clay Foundation Model - An open source AI model and interface for Earth

638
May 11, 2026
RepositoryPython
johntruckenbrodt/pyroSAR

framework for large-scale SAR satellite data processing

616
Nov 30, 2026
RepositoryPython
CS-SI/eodag

Earth Observation Data Access Gateway

441
Nov 26, 2026
RepositoryPython
sertit/eoreader

Remote-sensing opensource python library reading optical and SAR sensors, loading and stacking bands, clouds, DEM and spectral indices in a sensor-agnostic way.

357
Nov 26, 2026
RepositoryPython
bopen/elevation

Download, cache and clip global terrain digital elevation models: Mapzen terrain tiles, Copernicus DEM, ALOS World 3D, GEDTM30 and SRTM 30m and 90m DEMs.

356
Nov 15, 2026
RepositoryPython
ChenHongruixuan/BRIGHT

[ESSD 2025 & IEEE DFC 2025 & CVPRW 2026] Bright: A globally distributed multimodal VHR dataset for all-weather disaster response

263
Jul 21, 2026
Repository
sacridini/Awesome-Geospatial

Long list of geospatial tools and resources

5.4k
Nov 18, 2026
RepositoryHTML
acgeospatial/awesome-earthobservation-code

A curated list of awesome tools, tutorials, code, projects, links, stuff about Earth Observation, Geospatial Satellite Imagery

1.4k
May 13, 2026