-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data interpolation function treats missing values as zero instead of throwing an error #29
Comments
Hi @chauenstein, Yes, interpolate refers only to filling the gaps in the given range, and does not perform extrapolation in the future. One can then provide both the interpolation and extrapolation methods as a list in the config. I no longer have access to the data repositories, but if I remember correctly some datasets are already processed like this. |
Thanks @CarrerF for your quick reply! Yes, there are examples for the extrapolation etc. Yet, what I meant with the issue above is, that in case an extrapolation would be the correct method, yet interpolation was chosen, the script does not throw an error if the target year of the interpolation does not exist. |
I see. The Read Parameter functions create an array of Os and then fill it with the values from the templates, before preprocessing.
checks that the starting and ending indexes of interpolation belong to the values from the template. |
Thank you @CarrerF! Is on the todo list for next year :) Happy holidays to you! |
Hi @stefanpauliuk @CarrerF, the automatic data processing (commit 455e89f) is of great help. One issue, however, arises, if in the config file in the cell for 'Data processing method' the given argument refers to a year not provided in the input data file. E.g., if it set to ['interpolate_c_1900_2060_linear'], however, the last year data is provided for in the input file is 2020, it assumes that all values for the year 2060 are zero. This might be true in some specific cases, however, probably better would be if an error is thrown and the user requested to either provide the relevant data in the input file or change the data processing method for this parameter.
The text was updated successfully, but these errors were encountered: