Skip to content

phenology/platform-for-pheno-products

Repository files navigation

Big Data platform to derive large-scale phenological products.

This repository contains Scala JupytherHub notebooks to extract and validate phenology metrics on a continental scale using the existing software package TimeSat. We provide a Spark-based solution to extract phenology metrics (e.g. Start-of-Season) in a distributed cluster environment and produce GeoTIFF Start-of-Season products. The project is associated with the High spatial resolution phenological modelling at continental scales and is a part of a Master's thesis at the University of Amsterdam. The full version of the thesis is available at TODO:Links

Getting Started

The infrastructure used for the project was designed and implemented by The Netherlands eScience Center and University of Twente (https://github.com/phenology/infrastructure). For deployment in a cluster environment we recommend installing the platform by following its guide, however, the notebooks can be run in any private cluster provided the prerequisites are met.

A restriction of TimeSat is that it can only work with files on the local POSIX file system. We used Minio (an object storage server) and "stfs" fuse to provide the vegetation indices(VIs) data on each of the machines to be used as input to TimeSat. With the"stfs" fuse one can remotely assess files stored in commercial storage, such as Amazon S3. An alternative is to locally copy the files on each of the machines provided they have the same local path on each of the machines in the cluster.

Prerequisites

The prerequisites and the versions used can be found below:

  • Scale: 2.11
  • Spark: 2.1.1
  • Hadoop: 2.8.3
  • JupyherHub
  • Geotrellis

Contents

The functionality is divided into several notebooks:

vegetation indices(VI) calculation notebook

The NDVI and EVI calculation is performed on the SPOT-VEGETATION and PROBA-V radiometric data provided by the Copernicus Global Land Service. The data was pre-processed and the required layers extracted (red,blue,near-infrared channels). The files were transformed to the ENVI format and put on HDFS. The notebook processes the input data from HDFS and applies the formula either for NDVI or EVI in order the generate the vegetation indices. Additionally, a status map is applied to filter out bad pixels. The VI products are

SOS phenology extraction notebook

The distribute the load in our cluster, a spatial load-separation is perfromed with the "settings file". The whole region of interest is devided on tiles and for each tile the "TSF_process" is run. For eah instance the corresponding "setting files" is provided as an input to define the area on which the executable will produce results. Each instance will output the results in a seasonality(.tpa) and an index (.ndx) files which will be later read-in in Spark for furhter processing. The generated SOS products are in a GeoTIFF format.

To run the notebooks two additioan requirements should be met:

  • The phenology extraction relies on the TimeSat's module "TSF_process", and as such the path to the executable should be provided.
  • The "list of files" for processing should be supplied in a separate file as required by the "settigs file". On Linux system the command "find -name '*.img' | sort -k11 > <list_of_files.txt>" can be used.

compare VIs products with ground observations

To evaluate the SOS products the results were compared with ground observations provided by volunteers, and curated by the USA-National Phenology Network (USA-NPN). The comparison is done on the top 5 speies with highest number of matches between TimeSat predictions and ground observations.

phenology analysis

The phenology_analysis notebook computes the average and standard deviation (per pixel) for all the provided GeoTIFF images. We load the images from HDFS and save the results to the local file system.

Authors

  • Viktor Bakayov

About

Big Data platform to derive large scale phenological products.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published