Skip to main content
added 19 characters in body; edited title
Source Link
Taras
  • 34k
  • 4
  • 73
  • 148

Dealing with no-data values in raster calculator of QGIS Raster Calculator

I am trying to patch two rasters with the raster calculator but I am not finding thea way to work with no-data values.

  • Lager@1Lager@1 has some information I need as the first option, this has as no-data -9999 (reading in the properties)

  • Lager@2Lager@2 has the information I want to complete what is nodatano data in Lager@1Lager@1

This command does not produce values where Lager@1Lager@1 is no-data

("Large@1" != -9999) * "Large@1" + ("Large@1" = -9999) * "Lager@2"

("Large@1" != -9999) * "Large@1" + ("Large@1" = -9999) * "Lager@2"

I would like to avoid or skip the reclasification becasereclassification because I might have many zeros and I need to perform this with diferrentdifferent rasters that might have different no-data formats, for instance Lager@2, Lager@2 has -99999 instead of -9999.

In GRASS this would be an r.patch task, but I cannot (or I do not know how to) control the order in the r.patch available in the Processing Toolbox.

r.patch input= Lager@1, Lager@2 output=Lager@3

r.patch input=Lager@1, Lager@2 output=Lager@3

Result of patching of two raster maps containing NULLs using the default settings

Dealing with no-data values in raster calculator of QGIS

I am trying to patch two rasters with raster calculator but I am not finding the way to work with no-data values.

  • Lager@1 has some information I need as first option, this has as no-data -9999 (reading in the properties)

  • Lager@2 has the information I want to complete what is nodata in Lager@1

This command does not produce values where Lager@1 is no-data

("Large@1" != -9999) * "Large@1" + ("Large@1" = -9999) * "Lager@2"

I would like to avoid or skip the reclasification becase I might have many zeros and I need to perform this with diferrent rasters that might have different no-data formats, for instance Lager@2 has -99999 instead of -9999.

In GRASS this would be an r.patch task, but I cannot (or I do not know how to) control the order in the r.patch available in the Processing Toolbox.

r.patch input= Lager@1, Lager@2 output=Lager@3

Result of patching of two raster maps containing NULLs using the default settings

Dealing with no-data values in QGIS Raster Calculator

I am trying to patch two rasters with the raster calculator but I am not finding a way to work with no-data values.

  • Lager@1 has some information I need as the first option, this has no-data -9999 (reading in the properties)

  • Lager@2 has the information I want to complete what is no data in Lager@1

This command does not produce values where Lager@1 is no-data

("Large@1" != -9999) * "Large@1" + ("Large@1" = -9999) * "Lager@2"

I would like to avoid or skip the reclassification because I might have many zeros and I need to perform this with different rasters that might have different no-data formats, for instance, Lager@2 has -99999 instead of -9999.

In GRASS this would be an r.patch task, but I cannot (or I do not know how to) control the order in the r.patch available in the Processing Toolbox.

r.patch input=Lager@1, Lager@2 output=Lager@3

Result of patching of two raster maps containing NULLs using the default settings

Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Tweeted twitter.com/StackGIS/status/1438653947393232900
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited tags
Link
markusN
  • 13k
  • 32
  • 49
naming
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

I am trying to patch two rasters with raster calculator but I am not finding the way to work with no-data values.

  • Lager@1 has some information I need as first option, this has as no-data -9999 (reading in the properties)

  • Lager@2 has the information I want to complete what is nodata in Lager@1

This command does not produce values where Lager@1 is no-data

("Large@1" != -9999) * "Large@1" + ("Large@1" = -9999) * "Lager@2"

I would like to avoid or skip the reclasification becase I might have many zeros and I need to perform this with diferrent rasters that might have different no-data formats, for instance Lager@2 has -99999 instead of -9999.

In GrassGRASS this would be an r.patch task, but I cannot (or I do not know how to) control the order in the r.patch available in the Processing Toolbox.

r.patch input= Lager@1, Lager@2 output=Lager@3

Result of patching of two raster maps containing NULLs using the default settings

I am trying to patch two rasters with raster calculator but I am not finding the way to work with no-data values.

  • Lager@1 has some information I need as first option, this has as no-data -9999 (reading in the properties)

  • Lager@2 has the information I want to complete what is nodata in Lager@1

This command does not produce values where Lager@1 is no-data

("Large@1" != -9999) * "Large@1" + ("Large@1" = -9999) * "Lager@2"

I would like to avoid or skip the reclasification becase I might have many zeros and I need to perform this with diferrent rasters that might have different no-data formats, for instance Lager@2 has -99999 instead of -9999.

In Grass this would be an r.patch task, but I cannot (or I do not know how to) control the order in the r.patch available in the Processing Toolbox.

r.patch input= Lager@1, Lager@2 output=Lager@3

Result of patching of two raster maps containing NULLs using the default settings

I am trying to patch two rasters with raster calculator but I am not finding the way to work with no-data values.

  • Lager@1 has some information I need as first option, this has as no-data -9999 (reading in the properties)

  • Lager@2 has the information I want to complete what is nodata in Lager@1

This command does not produce values where Lager@1 is no-data

("Large@1" != -9999) * "Large@1" + ("Large@1" = -9999) * "Lager@2"

I would like to avoid or skip the reclasification becase I might have many zeros and I need to perform this with diferrent rasters that might have different no-data formats, for instance Lager@2 has -99999 instead of -9999.

In GRASS this would be an r.patch task, but I cannot (or I do not know how to) control the order in the r.patch available in the Processing Toolbox.

r.patch input= Lager@1, Lager@2 output=Lager@3

Result of patching of two raster maps containing NULLs using the default settings

Source Link
Marco
  • 3.3k
  • 15
  • 37
Loading