Mixing temporal resolutions when merging files with combine_first
Opened this issue · 1 comments
BaptisteVandecrux commented
If an hourly STM table covering 2022-2024 is retrieved from the field and is added after a raw 10 min file covering 2022-2023, then the merging of L1 datasets into the L1A dataset will have a strange behavior:
pypromice/src/pypromice/process/aws.py
Line 138 in 3813c77
The latest hourly data ds_latest_hourly = AWS.L1[-1]
will be merged with the previous raw dataset ds_previous_10min = AWS.L1[-2]
with :
ds_merged = ds_latest_hourly.combine_first(ds_previous_10min )
In that statement, the round-hours lines from the hourly file will be unchanged, but 10 min data will be inserted between these values.
BaptisteVandecrux commented