Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> RESTART: F:\grass_compilation\ssll4_comb_L4bands\ssll4_comb_L4bands\ssll4\sensors_csv\create_iwave_for_hyperion_required_bands242.py Getting sensor name from csv file: hs-rsr-final-aug2-2018-completed_with_upto2.4mm_131o142 Sensor: hs-rsr-final-aug2-2018-completed_with_upto2.4mm_131o142 0 1 2 3 4 5 6 Traceback (most recent call last): File "F:\grass_compilation\ssll4_comb_L4bands\ssll4_comb_L4bands\ssll4\sensors_csv\create_iwave_for_hyperion_required_bands242.py", line 249, in main() File "F:\grass_compilation\ssll4_comb_L4bands\ssll4_comb_L4bands\ssll4\sensors_csv\create_iwave_for_hyperion_required_bands242.py", line 240, in main write_cpp(bands, values, sensor, os.path.dirname(inputfile)) File "F:\grass_compilation\ssll4_comb_L4bands\ssll4_comb_L4bands\ssll4\sensors_csv\create_iwave_for_hyperion_required_bands242.py", line 157, in write_cpp fi, li = interpolate_band(values[:,[0,b+1]]) File "F:\grass_compilation\ssll4_comb_L4bands\ssll4_comb_L4bands\ssll4\sensors_csv\create_iwave_for_hyperion_required_bands242.py", line 94, in interpolate_band filter_f = f(np.arange(response[0,0], response[-1,0] + 2.5, 2.5)) File "C:\Python27\ArcGIS10.5\lib\site-packages\scipy\interpolate\polyint.py", line 80, in __call__ y = self._evaluate(x) File "C:\Python27\ArcGIS10.5\lib\site-packages\scipy\interpolate\interpolate.py", line 586, in _evaluate below_bounds, above_bounds = self._check_bounds(x_new) File "C:\Python27\ArcGIS10.5\lib\site-packages\scipy\interpolate\interpolate.py", line 618, in _check_bounds raise ValueError("A value in x_new is above the interpolation " ValueError: A value in x_new is above the interpolation range. >>>