jkall / qgis-midvatten-plugin

Midvatten plugin for QGIS
23 stars 8 forks source link

Custom Plot Resampling #351

Closed mabi38 closed 8 months ago

mabi38 commented 8 months ago

I tried to resample a data set using the resample option provided in the custom plot generator. The dateset includes daily data for a period of 3 months, each day one value. By the resampling I would like to convert the daily data to weekly data. Following the short description which pops up entering the fields in the resampling section I added:

It would be great getting some help to understand what went wrong.

Thank you very much.

Martin

HenrikSpa commented 8 months ago

You are using it correctly. The error is caused by a change in the Python pandas library in one of the later QGIS LTR-versions. I have made a fix for this and will upload a new Midvatten version very soon.

Resample base: If you resample to rule '24h', base is the hour to start the resampling.

Base=0 gives a daily aggregate like 2024-01-09 00:00 to 2024-01-10 00:00 Base=6 gives instead a daily aggregate like 2024-01-09 06:00 to 2024-01-10 06:00

If you resample to 60T (60 minutes), base=30 will (probably, I have not tested) give you 2024-01-09 00:30 to 2024-01-09 01:30.

Regards, Henrik

HenrikSpa commented 8 months ago

There is now a Midvatten plugin version 1.7.18 available which requires QGIS >= 3.28.13.