pyPhenology.utils.load_test_data

pyPhenology.utils.load_test_data(name='vaccinium', phenophase='all')[source]

Pre-loaded phenology data

Datasets are available with the package. They include multiple phenophases and associated daily mean temperature data derived from the PRISM climate dataset.

Without any arguments it will return the vaccinium dataset for both phenophases.

Available datasets:
‘vaccinium’
Vaccinium corymbosum phenology from Harvard Forest Both flowers (phenophase 501) and budburst (phenophase 371)
‘aspen’
Populus tremuloides (aspen) phenology from the National Phenology Dataset. Has flowers (phenophase 501), budburst (phenophase 371), and colored leaves for fall senesence (phenophase 498)
Parameters:
name : str, optional
Name of the test dataset
phenophase : str | int, optional
Name of the phenophase. Either ‘budburst’,’flowers’, ‘colored_leaves’, or ‘all’. Or the phenophase id (371 or 501, or 498)
Returns:
obs, temp : tuple
Pandas dataframes of phenology observations and associated temperatures.