[GRASS-user] question on i.nightlights.intercalibration code

Gabriel Cotlier gabiklm01 at gmail.com
Thu Jun 21 14:24:38 PDT 2018


Hello Veronica,

Thanks a lot it worked!!

following the line you wrote:

i.nightlights.intercalibration image=img1,img2,img3 suffix=c elvidge2014


and got the error:

(Thu Jun 21 17:36:56
2018)
i.nightlights.intercalibration
image=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,F182013
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
Regression coefficients: (-2.057, 1.5903, -0.009) | Associated R^2: 0.9075
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
ERROR:
|* Timestamp is missing! Please add one to the input map if further times
series analysis is important. If you don't need it, you may use the -t flag.
(Thu Jun 21 17:37:47 2018) Command finished (51
sec)
(Thu Jun 21 17:39:49 2018)

So aggregating the flag -t, because an error that appeared, as follows:

i.nightlights.intercalibration
image=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,F182013
suffix=c model=elvidge2014 -t

And it finally worked!!

But as you can see bellow all inter-calibrated layers were created but
F182013 was not generate (F182013.c)

if you see at the end of this email it shows an error for the last layer
F182013 of the data set...

Why could this be happening?
Thanks a lot again.
Gabriel

|i Inter-satellite calibration of DMSP-OLS Nighttime Stable Lights
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-2.057, 1.5903, -0.009) | Associated R^2: 0.9075
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attem,pted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-1.0582, 1.5983, -0.0093) | Associated R^2: 0.936
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-0.3458, 1.4864, -0.0079) | Associated R^2: 0.9243
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-0.689, 1.177, -0.0025) | Associated R^2: 0.9071
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-0.0515, 1.2293, -0.0038) | Associated R^2: 0.9178
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-0.0959, 1.2727, -0.004) | Associated R^2: 0.9319
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-0.3321, 1.1782, -0.0026) | Associated R^2: 0.9245
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-0.0608, 1.0648, -0.0013) | Associated R^2: 0.9536
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.0, 1.0, 0.0) | Associated R^2: 1.0
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-1.1323, 1.7696, -0.0122) | Associated R^2: 0.9101
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-0.1917, 1.6321, -0.0101) | Associated R^2: 0.9723
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-0.1557, 1.5055, -0.0078) | Associated R^2: 0.9717
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (1.0988, 1.3155, -0.0053) | Associated R^2: 0.9278
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.1943, 1.3219, -0.0051) | Associated R^2: 0.9448
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (1.0517, 1.1905, -0.0036) | Associated R^2: 0.9203
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.739, 1.2416, -0.004) | Associated R^2: 0.9432
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.1254, 1.0452, -0.001) | Associated R^2: 0.932
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-0.7024, 1.1081, -0.0012) | Associated R^2: 0.9593
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.0491, 0.9568, 0.001) | Associated R^2: 0.9658
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.2217, 1.5122, -0.008) | Associated R^2: 0.9314
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.5751, 1.3335, -0.0051) | Associated R^2: 0.9479
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.6367, 1.2838, -0.0041) | Associated R^2: 0.9335
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.8261, 1.279, -0.0041) | Associated R^2: 0.9387
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (1.3606, 1.2974, -0.0045) | Associated R^2: 0.9013
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.2853, 1.1955, -0.0034) | Associated R^2: 0.9039
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (-0.0001, 1.4159, -0.0063) | Associated R^2: 0.939
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.1065, 1.1371, -0.0016) | Associated R^2: 0.9199
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.6394, 0.9114, 0.0014) | Associated R^2: 0.9511
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.5564, 0.9931, 0.0) | Associated R^2: 0.945
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (0.9492, 1.0683, -0.0016) | Associated R^2: 0.8918
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (2.343, 0.5102, 0.0065) | Associated R^2: 0.8462
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (1.8956, 0.7345, 0.003) | Associated R^2: 0.9095
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
WARNING: Operating on current region

|> Calibrating average visible Digital Number values
Regression coefficients: (1.875, 0.6203, 0.0052) | Associated R^2: 0.9392
360 degree EW extent is exceeded by 0.999827 cells
360 degree EW extent is exceeded by 0.999827 cells
WARNING: As requested, timestamp transferring not attempted.
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 67, in verify_year
    raise ValueError('The selected model does not know about
'
ValueError: The selected model does not know about this
combination of Satellite + Year!
(Thu Jun 21 18:08:00 2018) Command finished (28 min 10
sec)









On Thu, Jun 21, 2018 at 1:50 PM, Veronica Andreo <veroandreo at gmail.com>
wrote:

> It is a bit difficult to read, can you post the command you used? It seems
> you typed image twice, suffic instead of suffix and you are using $() to
> pass the list of map names which is not necesary, AFAIU. Try the following:
>
> i.nightlights.intercalibration image=img1,img2,img3 suffix=c model=liu2012
>
> if that does not work, then, Nikos will know ;)
>
> best,
> Vero
>
> El jue., 21 jun. 2018 a las 18:34, Gabriel Cotlier (<gabiklm01 at gmail.com>)
> escribió:
>
>> Hello Vero,
>> Thanks a lot for your response.
>> I have tried that with no results, with the error in the image bellow:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Thu, Jun 21, 2018 at 12:12 PM, Veronica Andreo <veroandreo at gmail.com>
>> wrote:
>>
>>> Hi Gabriel,
>>>
>>> Are you using Windows? I think you cannot use g.list inside a command as
>>> we do in Linux. Solution would be to first get the list of comma separated
>>> map names and then paste it in the i.nightlights command.
>>>
>>> HTH,
>>> Vero
>>>
>>> El jue., 21 jun. 2018 11:05, Gabriel Cotlier <gabiklm01 at gmail.com>
>>> escribió:
>>>
>>>> I have tried to run i.i.nightlights.intercalibration on the command
>>>> line and got the following error:
>>>> What could be happening?
>>>> Thanks a lot
>>>>
>>>>
>>>> _______________________________________________
>>>> grass-user mailing list
>>>> grass-user at lists.osgeo.org
>>>> https://lists.osgeo.org/mailman/listinfo/grass-user
>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180621/6b181207/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 24842 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180621/6b181207/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 27766 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180621/6b181207/attachment-0003.png>


More information about the grass-user mailing list