[GRASS-user] Create_iwave.py script error for template creation -i.atcorr module-reg

kameswari devi kams.devi at gmail.com
Tue Oct 23 11:15:38 PDT 2018


Please check the file i have used and error received as an
attachment.I tried to interpolate using Create_iwave.py script for
i.atcorr module but errors are observed. please suggest me thank you

-- 
Regards
kameswari devi P
-------------- next part --------------
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 <module>
    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.
>>> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testint_B131to142.csv
Type: text/csv
Size: 1783 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20181023/49e6b050/attachment.csv>


More information about the grass-user mailing list