phenology / springtime

Spatiotemporal phenology research with interpretable models
https://springtime.readthedocs.io
Apache License 2.0
3 stars 2 forks source link

Resample not handled through API #190

Closed Peter9192 closed 5 months ago

Peter9192 commented 7 months ago

This works, but does nothing with the resampe:

datasource = EOBSMultiplePoints(
    points=((5.740135, 47.751076), (4.740135, 46.751076)),
    # points=get_points(df_obs),
    product_type="ensemble_mean",
    grid_resolution="0.1deg",
    years=[2000, 2016],
    variables=["mean_temperature", "maximum_temperature", "minimum_temperature"],
    resample={'frequency': 'month', 'operator': 'median'}
)
datasource.download()
df_meteo = datasource.load()

The resample is only picked up when run through a recipe.