Skip to content

Ppo

This module contains functionality to download data from the Plant Phenology Ontology data portal.

Uses rppo to get data from http://plantphenology.org/

Example
from springtime.datasets.insitu.ppo import RPPO
dataset = RPPO(
    genus="Quercus Pinus",
    termID="obo:PPO_0002313",
    limit=10,
    years=[2019, 2020]
    # area=dict(name="somewhere", bbox=[-83, 27,-82, 28])
)
dataset.download()
df = dataset.load()
df

PPOVariables = Literal['dayOfYear'] module-attribute

Variables available in the PPO dataset.

RPPO

Bases: Dataset

Download and load PPO data.

Attributes:

Name Type Description
years

timerange. For example years=[2000, 2002] downloads data for three years.

resample

Resample the dataset to a different time resolution. If None, no resampling.

genus str

plant genus, e.g. "Quercus Pinus". See PPO documentation.

termID str

plant development stage, e.g. "obo:PPO_0002313" means "true leaves present". See PPO documentation.

area Optional[NamedArea]

A dictionary of the form {"name": "yourname", "bbox": [xmin, ymin, xmax, ymax]}.

limit PositiveInt

Maximum number of records to retreive

timeLimit PositiveInt

Number of seconds to wait for the server to respond

variables Sequence[PPOVariables]

Variables you want to load. When empty will load all the variables.

download()

Download data.

load()

Load data from disk.