I want to apply these two interpolations for missing temperature data in text files
- nearest neighbor interpolation
- bilinear interpolation
My text files are named with Output_00 to Output_23 in a folder. Each text file contains three columns
- First column is latitude
- Second column is longitude
- Third column consist on air temperature corresponding to that latitude and longitude.
In temperature column there are -9999.000 values which representing missing or NaN values.
I want to interpolate these values with above mentioned techniques in such a way that
- Each interpolation technique interpolate temperature(3rd column) in text file and save this interpolated text file with inter_NNH(means this text file has been interpolated with nearest neighbor) and inter_BILIN(means this text file has been interpolated with bi-linear interpolations).
- After that, there will be 72 text files remains in my folder. (24 for uninterpreted and 48 of interpolated.)
I able to attached ten text files(due to size limit) with this question. If any more requirement need tell me first.
Thanks in advance for this kind effort.
Best Answer