[GRASS-user] i.nightlights.intercalibration, Problem with running code

Gabriel Cotlier gabiklm01 at gmail.com
Tue Jun 19 08:44:33 PDT 2018


Problem with running *i.nightlights.intercalibration** for the
*Elvidge(2014) model-coefficients.

 Steps I have followed:

1.I have imported the following layers:

(Tue Jun 19 12:29:20 2018)

g.list type=raster

F101992

F101993

F101994

F121994

F121995

F121996

F121997

F121998

F121999

F141997

F141998

F141999

F142000

F142001

F142002

F142003

F152000

F152001

F152002

F152003

F152004

F152005

F152006

F152007

F162004

F162005

F162006

F162007

F162008

F162009

F182010

F182011

F182012

(Tue Jun 19 12:29:21 2018) Command finished (0 sec)



2. I have run the code on the dialog box of *i.nightlights.intercalibration**
:*



3. I got the following error message:


(Tue Jun 19 12:31:26 2018)


i.nightlights.intercalibration image=g.list type=raster
                                           suffix=c model=elvidge2014

|i Inter-satellite calibration of DMSP-OLS Nighttime Stable Lights

WARNING: Operating on current region


|> Calibrating average visible Digital Number values

WARNING: No data base element files found

Traceback (most recent call last):

  File "C:\Users\Gabriel\AppData\Roaming\GRASS7\addons/scrip

ts/i.nightlights.intercalibration.py", line 525, in <module>

    sys.exit(main())

  File "C:\Users\Gabriel\AppData\Roaming\GRASS7\addons/scrip

ts/i.nightlights.intercalibration.py", line 340, in main

    model_parameters = retrieve_model_parameters(Model,

*args)

  File "C:\Users\Gabriel\AppData\Roaming\GRASS7\addons/scrip

ts/i.nightlights.intercalibration.py", line 242, in

retrieve_model_parameters

    model = model_class(*args, **kwargs)

  File "C:\Users\Gabriel\AppData\Roaming\GRASS7\addons\etc\i

.nightlights.intercalibration\intercalibration_models.py",

line 155, in __init__

    CalibrationModel.__init__(self, author, satellite, year)

  File "C:\Users\Gabriel\AppData\Roaming\GRASS7\addons\etc\i

.nightlights.intercalibration\intercalibration_models.py",

line 43, in __init__

    year=self.year)

  File "C:\Users\Gabriel\AppData\Roaming\GRASS7\addons\etc\i

.nightlights.intercalibration\intercalibration_models.py",

line 63, in verify_year

    available_years = COEFFICIENTS[author][satellite].keys()

KeyError: 'g.l'

(Tue Jun 19 12:31:27 2018) Command finished (1 sec)


Thanks a lot for your help and assistance.

Best regards,

Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180619/7d34c50b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture2.JPG
Type: image/jpeg
Size: 109800 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180619/7d34c50b/attachment-0002.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture1.JPG
Type: image/jpeg
Size: 40847 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180619/7d34c50b/attachment-0003.jpe>


More information about the grass-user mailing list