pep725
This module contains functionality to download PEP725 data using phenor as client.
PEP725 is the Pan-European Phenology network (http://www.pep725.eu/).
Requires phenor R package. Install with
devtools::install_github("bluegreen-labs/phenor@v1.3.1")
Requires ~/.config/springtime/pep725_credentials.txt
file with your
PEP725 credentials. Email adress on first line, password on second line.
Example:
```python
from springtime.datasets.pep725 import PEP725Phenor
dataset = PEP725Phenor(species='Syringa vulgaris', years=[2000, 2000])
dataset.download()
df = dataset.load()
# or with filters
dataset = PEP725Phenor(
species='Syringa vulgaris',
years=[2000, 2000],
area={'name':'some', 'bbox':(4, 45, 8, 50)}
)
```
PEP725Phenor
Bases: Dataset
Download and load data from PEP725.
Attributes:
Name | Type | Description |
---|---|---|
species |
str
|
Full species name, see http://www.pep725.eu/pep725_gss.php for options. |
credential_file |
Path
|
Path to PEP725 credentials file. Email adress on first line, password on second line. |
phenophase |
int | None
|
Phenological development stage according to BBCH scale. See http://www.pep725.eu/pep725_phase.php for options. Default is 60: 'Beginning of flowering'. |
include_cols |
List[str] | Literal['all']
|
which columns to include in the final dataframe |
area |
NamedArea | None
|
bounding box for filtering observations |
years |
YearRange | None
|
year range for filtering observations |
to_recipe()
Print out a recipe to reproduce this dataset.
download()
Download the data.
load()
Load the dataset from disk into memory.