metobs_toolkit.station.Station.fill_gaps_with_raw_modeldata#
- Station.fill_gaps_with_raw_modeldata(target_obstype: str, overwrite_fill: bool = False) None[source]#
Fill the gap(s) using model data without correction.
This method fills all the gaps of a specific target_obstype, by directly interpolating the model data to the missing records.
- Parameters:
target_obstype (str) – The target obstype to fill the gaps for.
overwrite_fill (bool, optional) – If True, the status of a gap and present gapfill info will be ignored and overwritten. If False, only gaps without gapfill data are filled. Defaults to False.
- Return type:
None
Notes
A schematic description of the raw model data gap fill:
Check if the target_obstype is known, and if the corresponding model data is present.
Iterate over the gaps of the target_obstype.
Check the compatibility of the ModelTimeSeries with the gap.
Ensure both the ModelTimeSeries and gap have the same timezone.
Interpolate the model data to match the missing records in the gap.
Update the gap attributes with the interpolated values, labels, and details.