Skip to main content
deleted 11 characters in body
Source Link
GforGIS
  • 3.3k
  • 4
  • 22
  • 39

I am trying to resample two raster layers with Python console in QGIS with this code:

outputs_0=Processing.runAlgorithm("saga:resampling", 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/UTM30N/2012153_day.tif', True, 0, 0, 0, "-81084.51, 1138915.49, 3972094.6, 4861094.6", 1000.0, 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/FINALS/2012153_day_FINAL.tif')

I got this:

Error: Wrong number of parameters

However, it seems to contain all needed parameters:

INPUT <ParameterRaster>
KEEP_TYPE <ParameterBoolean>
TARGET <ParameterSelection>
SCALE_UP_METHOD <ParameterSelection>
SCALE_DOWN_METHOD <ParameterSelection>
OUTPUT_EXTENT <ParameterExtent>
USER_SIZE <ParameterNumber>
USER_GRID <OutputRaster>

Someone could please help me?

Thanks!

I am trying to resample two raster layers with Python console in QGIS with this code:

outputs_0=Processing.runAlgorithm("saga:resampling", 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/UTM30N/2012153_day.tif', True, 0, 0, 0, "-81084.51, 1138915.49, 3972094.6, 4861094.6", 1000.0, 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/FINALS/2012153_day_FINAL.tif')

I got this:

Error: Wrong number of parameters

However, it seems to contain all needed parameters:

INPUT <ParameterRaster>
KEEP_TYPE <ParameterBoolean>
TARGET <ParameterSelection>
SCALE_UP_METHOD <ParameterSelection>
SCALE_DOWN_METHOD <ParameterSelection>
OUTPUT_EXTENT <ParameterExtent>
USER_SIZE <ParameterNumber>
USER_GRID <OutputRaster>

Someone could please help me?

Thanks!

I am trying to resample two raster layers with Python console in QGIS with this code:

outputs_0=Processing.runAlgorithm("saga:resampling", 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/UTM30N/2012153_day.tif', True, 0, 0, 0, "-81084.51, 1138915.49, 3972094.6, 4861094.6", 1000.0, 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/FINALS/2012153_day_FINAL.tif')

I got this:

Error: Wrong number of parameters

However, it seems to contain all needed parameters:

INPUT <ParameterRaster>
KEEP_TYPE <ParameterBoolean>
TARGET <ParameterSelection>
SCALE_UP_METHOD <ParameterSelection>
SCALE_DOWN_METHOD <ParameterSelection>
OUTPUT_EXTENT <ParameterExtent>
USER_SIZE <ParameterNumber>
USER_GRID <OutputRaster>

Someone could please help me?

Code formatting, removed signature.
Source Link
Paul
  • 11.6k
  • 1
  • 30
  • 47

I am trying to resample two raster layers with Python console in QGIS with this code:

outputs_0=Processing.runAlgorithm("saga:resampling", 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/UTM30N/2012153_day.tif', True, 0, 0, 0, "-81084.51, 1138915.49, 3972094.6, 4861094.6", 1000.0, 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/FINALS/2012153_day_FINAL.tif')

outputs_0=Processing.runAlgorithm("saga:resampling", 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/UTM30N/2012153_day.tif', True, 0, 0, 0, "-81084.51, 1138915.49, 3972094.6, 4861094.6", 1000.0, 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/FINALS/2012153_day_FINAL.tif')

I got this:

Error: Wrong number of parameters

Error: Wrong number of parameters

However, it seems to contain all needed parameters:

INPUT <ParameterRaster>
KEEP_TYPE               <ParameterBoolean>
TARGET <ParameterSelection>
SCALE_UP_METHOD <ParameterSelection>
SCALE_DOWN_METHOD <ParameterSelection>
OUTPUT_EXTENT <ParameterExtent>
USER_SIZE <ParameterNumber>
USER_GRID <OutputRaster>

Someone could please help me?

Thanks!

David

I am trying to resample two raster layers with Python console in QGIS with this code:

outputs_0=Processing.runAlgorithm("saga:resampling", 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/UTM30N/2012153_day.tif', True, 0, 0, 0, "-81084.51, 1138915.49, 3972094.6, 4861094.6", 1000.0, 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/FINALS/2012153_day_FINAL.tif')

I got this:

Error: Wrong number of parameters

However, it seems to contain all needed parameters:

INPUT <ParameterRaster>
KEEP_TYPE               <ParameterBoolean>
TARGET <ParameterSelection>
SCALE_UP_METHOD <ParameterSelection>
SCALE_DOWN_METHOD <ParameterSelection>
OUTPUT_EXTENT <ParameterExtent>
USER_SIZE <ParameterNumber>
USER_GRID <OutputRaster>

Someone could please help me?

Thanks!

David

I am trying to resample two raster layers with Python console in QGIS with this code:

outputs_0=Processing.runAlgorithm("saga:resampling", 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/UTM30N/2012153_day.tif', True, 0, 0, 0, "-81084.51, 1138915.49, 3972094.6, 4861094.6", 1000.0, 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/FINALS/2012153_day_FINAL.tif')

I got this:

Error: Wrong number of parameters

However, it seems to contain all needed parameters:

INPUT <ParameterRaster>
KEEP_TYPE <ParameterBoolean>
TARGET <ParameterSelection>
SCALE_UP_METHOD <ParameterSelection>
SCALE_DOWN_METHOD <ParameterSelection>
OUTPUT_EXTENT <ParameterExtent>
USER_SIZE <ParameterNumber>
USER_GRID <OutputRaster>

Someone could please help me?

Thanks!

Source Link

Resampling with Python console (QGIS): number of parameters

I am trying to resample two raster layers with Python console in QGIS with this code:

outputs_0=Processing.runAlgorithm("saga:resampling", 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/UTM30N/2012153_day.tif', True, 0, 0, 0, "-81084.51, 1138915.49, 3972094.6, 4861094.6", 1000.0, 'G:/DOCTORAT/2014/Incendis/Dades/LST/LST_TERRA/Tiff/2012/FINALS/2012153_day_FINAL.tif')

I got this:

Error: Wrong number of parameters

However, it seems to contain all needed parameters:

INPUT <ParameterRaster>
KEEP_TYPE               <ParameterBoolean>
TARGET <ParameterSelection>
SCALE_UP_METHOD <ParameterSelection>
SCALE_DOWN_METHOD <ParameterSelection>
OUTPUT_EXTENT <ParameterExtent>
USER_SIZE <ParameterNumber>
USER_GRID <OutputRaster>

Someone could please help me?

Thanks!

David