Closed OnnoEbbens closed 1 year ago
This should not be too difficult. The interpolate function is set up in a very general manner. Taking a list of [x,y] coordinates (locations of interest) and a DataFrame with the measurements as columns and observation times as index. The measurements locations are now retrieved from the KNMI list of stations but these are present in the obscollection so should be no problem to change this.
The function
get_knmi_obslist
has an option to get a time series at any location by using spline interpolation. In order to clean up the io_knmi module I propose to remove it from there and make a more general function that does the trick for any ObsCollection. I am aware that it would probably give bad results on most ObsCollections but I would like to try it anyway. Furthermore we could add more methods than just the spline interpolation in the future.Than the function would probably look something like this:
Curious what your thought are on this @martinvonk