Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAGA Grid Calculator does not work when "Use NoData" is set to "Yes" #16190

Closed
qgib opened this issue Feb 7, 2013 · 8 comments
Closed

SAGA Grid Calculator does not work when "Use NoData" is set to "Yes" #16190

qgib opened this issue Feb 7, 2013 · 8 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Feb 7, 2013

Author Name: Michal Belcik (Michal Belcik)
Original Redmine Issue: 7117
Affected QGIS version: 2.4.0
Redmine category:processing/saga
Assignee: Victor Olaya


When "Use NoData" is set to "Yes", it is not working - works fine only if it is set to "No".

@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2013

Author Name: Giovanni Manghi (@gioman)


  • subject was changed from SAGA Grid Calculator to SAGA Grid Calculator does not work when "Use NoData" is set to "Yes"

@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2013

Author Name: Victor Olaya (@volaya)


Works fine for me here in both cases. Can you tell us if you have no data values or not in your layer, and the formula used? The SAGA console ouput will also be helpful

Thanks!


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2013

Author Name: Giovanni Manghi (@gioman)


Victor Olaya wrote:

Works fine for me here in both cases. Can you tell us if you have no data values or not in your layer, and the formula used? The SAGA console ouput will also be helpful

Thanks!

the operation is like

a*(-0.1)

the sample raster is uploading (will post the link in a few minutes)

and the saga output is

SAGA execution console output


## #####

### ##

# ## ## #### #

##### ## #

# ## ##### #

library path: /usr/lib/saga
library name: libio_gdal
module name : GDAL: Import Raster
author : (c) 2007 by O.Conrad (A.Ringeler)


go...

Parameters

Grids: No objects
Files: "/home/gio/Desktop/rivers_d_r.tif"

loading: /home/gio/Desktop/rivers_d_r.tif

Driver: ????????/(null)

Cells: x 2799, y 2786
Bands: 1
Transformation x' = 797460.170000 + x * 10.001518 + y * 0.000000
Transformation y' = 417040.130000 + x * 0.000000 + y * -10.000808

Save grid: /tmp/sextante/1360306986.594.sgrd...

ready

okay
Unknown option 'USE_NODATA'
Usage: Grid Calculator -GRIDS -RESULT [-FORMULA ] [-NAME ] [-FNAME]
-GRIDS: Grids
Grid list (input)
-RESULT: Result
Grid (output)
-FORMULA: Formula
Text
-NAME: Name
Text
-FNAME Take Formula
Boolean


## #####

### ##

# ## ## #### #

##### ## #

# ## ##### #

library path: /usr/lib/saga
library name: libgrid_calculus
module name : Grid Calculator
author : Copyrights (c) 2003 by Andre Ringeler


go...

error: Grid file could not be opened.

error: input file [/tmp/sextante/sagagridcalculator73b52d704b404e27963bd67673f69357.tif.sgrd]

error: empty input list [GRIDS]

error: executing module [GDAL: Export Raster]


## #####

### ##

# ## ## #### #

##### ## #

# ## ##### #

library path: /usr/lib/saga
library name: libio_gdal
module name : GDAL: Export Raster
author : O.Conrad (c) 2007


go...

Load grid: /tmp/sextante/sagagridcalculator73b52d704b404e27963bd67673f69357.tif.sgrd...

failed

@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2013

Author Name: Giovanni Manghi (@gioman)


Victor Olaya wrote:

Works fine for me here in both cases. Can you tell us if you have no data values or not in your layer, and the formula used? The SAGA console ouput will also be helpful

Thanks!

Oh well,
the sample data may not be necessary after all, the culprit seems to be te

Unknown option 'USE_NODATA'

does this depends on the SAGA version?

I'm on Ubuntu but pretty sure that the same issue comes up also on Windows...

@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2013

Author Name: Giovanni Manghi (@gioman)


Victor Olaya wrote:

Works fine for me here in both cases. Can you tell us if you have no data values or not in your layer, and the formula used? The SAGA console ouput will also be helpful

Thanks!

https://www.dropbox.com/s/ly0zvsxvo4uss6e/rivers.tar.bz2

@qgib
Copy link
Contributor Author

qgib commented Oct 4, 2014

Author Name: Giovanni Manghi (@gioman)


  • project_id was changed from 78 to 17
  • crashes_corrupts_data was configured as 0
  • version was configured as 2.4.0
  • category_id removed 56

@qgib
Copy link
Contributor Author

qgib commented Oct 4, 2014

Author Name: Giovanni Manghi (@gioman)


  • category_id was configured as Processing/SAGA

@qgib
Copy link
Contributor Author

qgib commented May 24, 2015

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant