Re: [GRASS-user] Python script for template creation -i.atcorr module-reg

2018-10-22 Thread Markus Metz
On Mon, Oct 22, 2018 at 1:32 PM Moritz Lennert 
wrote:
>
> Hi,
>
> Please keep discussions on the mailing list.
>
> On 22/10/18 13:07, kameswari devi wrote:
> > yes i have given a csv file but x_new is above the interpolation range
> > message is appeared.
> >> wav(nm),B10,B11
> >> 477,0.3744
> >> 478,0.6864
> >> 480,1
> >> 481,0.8624
> >> 482,0.6018
> >> 483,0.4434
> >> 484,
> >> 485,
> >> 486,,0.377
> >> 487,,0.667
> >> 488,,0.968
> >> 489,,1
> >> 490,,0.760
> >> 491,,0.590
> >> 492,,0.455
>
> AFAIK, you always need the same number of fields on every line, but the
> first 8 lines only have two fields while the rest has 3 fields.

Which GRASS version are you using? Please use a recent GRASS 7.4 version,
or better GRASS 7.6. Can you also post the full output of create_iwave.py?
That could help to find out what goes wrong.

Markus M

>
> Moritz
>
> > On Mon, Oct 22, 2018 at 1:32 PM Moritz Lennert
> >  wrote:
> >>
> >> On 22/10/18 06:02, kameswari devi wrote:
> >>> Hello all,
> >>> I m trying to use Create_iwave.py for template creation in grass for
> >>> atmopsheric correction.But due to the spectral response values errors
> >>> are thrown. here i am sending the rsr i used and error i got .please
> >>> suggest me. thakn you
> >>>
> >>> wav(nm)  B10
> >>> 477 0.3744
> >>> 478 0.6864
> >>> 480 1
> >>> 481 0.8624
> >>> 482 0.6018
> >>> 483 0.4434
> >>> 484
> >>> 485
> >>> 486 0.377
> >>> 487 0.667
> >>> 488 0.968
> >>> 489 1
> >>> 490 0.760
> >>> 491 0.590
> >>> 492 0.455
> >>
> >>
> >> AFAIR, you need to separate fields by a comma, not a space.
> >>
> >> Moritz
> >
> >
> >
>
>
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Python script for template creation -i.atcorr module-reg

2018-10-22 Thread Moritz Lennert

Hi,

Please keep discussions on the mailing list.

On 22/10/18 13:07, kameswari devi wrote:

yes i have given a csv file but x_new is above the interpolation range
message is appeared.

wav(nm),B10,B11
477,0.3744
478,0.6864
480,1
481,0.8624
482,0.6018
483,0.4434
484,
485,
486,,0.377
487,,0.667
488,,0.968
489,,1
490,,0.760
491,,0.590
492,,0.455


AFAIK, you always need the same number of fields on every line, but the 
first 8 lines only have two fields while the rest has 3 fields.


Moritz


On Mon, Oct 22, 2018 at 1:32 PM Moritz Lennert
 wrote:


On 22/10/18 06:02, kameswari devi wrote:

Hello all,
I m trying to use Create_iwave.py for template creation in grass for
atmopsheric correction.But due to the spectral response values errors
are thrown. here i am sending the rsr i used and error i got .please
suggest me. thakn you

wav(nm)  B10
477 0.3744
478 0.6864
480 1
481 0.8624
482 0.6018
483 0.4434
484
485
486 0.377
487 0.667
488 0.968
489 1
490 0.760
491 0.590
492 0.455



AFAIR, you need to separate fields by a comma, not a space.

Moritz







___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Python script for template creation -i.atcorr module-reg

2018-10-22 Thread Moritz Lennert

On 22/10/18 06:02, kameswari devi wrote:

Hello all,
I m trying to use Create_iwave.py for template creation in grass for
atmopsheric correction.But due to the spectral response values errors
are thrown. here i am sending the rsr i used and error i got .please
suggest me. thakn you

wav(nm)  B10
477 0.3744
478 0.6864
480 1
481 0.8624
482 0.6018
483 0.4434
484
485
486 0.377
487 0.667
488 0.968
489 1
490 0.760
491 0.590
492 0.455



AFAIR, you need to separate fields by a comma, not a space.

Moritz
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

[GRASS-user] Python script for template creation -i.atcorr module-reg

2018-10-21 Thread kameswari devi
Hello all,
I m trying to use Create_iwave.py for template creation in grass for
atmopsheric correction.But due to the spectral response values errors
are thrown. here i am sending the rsr i used and error i got .please
suggest me. thakn you

wav(nm)  B10
477 0.3744
478 0.6864
480 1
481 0.8624
482 0.6018
483 0.4434
484
485
486 0.377
487 0.667
488 0.968
489 1
490 0.760
491 0.590
492 0.455

ERROR:
python 2.7.13
y=self._evaluate(x)
File"C"\*\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.

I have given rsr of hyperspectral sensor with narrow wavelength ranges
initially but same error is coming.I tried truncate bounds but of no
use.
Actually i am new to python. so what function it internally using for
generation of interpolated template is not understood.Values should be
of 10nm or lesser or also can be used?
please provide me the solution.


-- 
Regards
kameswari devi P
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user