Questions tagged [nodata]
"NoData" is a term for null values in raster datasets.
270
questions
26
votes
3
answers
4k
views
Major bug in ArcGIS Zonal statistics?
Update: The bug has been fixed in the ArcGIS 10.4 release
I am using ArcGIS 10.2.2 to determine zonal statistics for a number of zones. If there is any NoData in the value raster, I want the zone ...
15
votes
16
answers
70k
views
Redefining nodata value into zero in QGIS
I have an image which I clipped with an AOI polygon. The contour area was set to pixel value = 0 and I have a nodata value of -32768. I want to redefine the nodata value into zero. I used to do this ...
15
votes
3
answers
13k
views
Changing NULL values of raster to 0 in QGIS
I'm having problems with QGIS. I have some rasters that appear to have NULL values, even though I reclassified them to obtain a Boolean raster.
How can I change the NULL values to 0?
13
votes
2
answers
10k
views
How to display NoData of a raster in QGIS
How can I show raster pixels with NoData value in QGIS?
In ArcMap there is a button to choose the color for the NoData value. Is there something like this in QGIS?
11
votes
4
answers
6k
views
Setting NoData for a multiband raster?
I have an RGB orthoimage that has black area instead of NoData, as pictured here:
When I use the SetNull tool, it does remove the black area, however it then turns it into a grayscale orthoimage, ...
11
votes
3
answers
5k
views
How to indicate nodata into gdal_calc formula
I have a recurrent problem with gdal_calc.
Say I have two rasters I need to sum together, in which the same nodatavalue is set (e.g. --NoDataValue = 0).
In order to account for the fact that nodata +...
9
votes
1
answer
442
views
Dealing with NODATA_VALUE of ascii grid in qgis2threejs plugin?
For a project I have modelled the upper and lower boundaries of geologic layers in the subsurface. The resulting rasters are stored as ASCII files with a NODATA_VALUE of -999. However, when I ...
8
votes
2
answers
6k
views
Interpolate smoothly nodata values in QGIS
I have a DEM raster where all the buildings have been extruded and now contain "nodata" values. I'd like fill the holes and get a nice and continuous surface (which would approximately correspond to ...
8
votes
2
answers
6k
views
Filling NA gaps in raster with R?
I have soil data rasters from SoilGrids.org that have some small holes with NA cells (White spaces in the image) that I want to fill using some interpolation method to get a more spatially continuous ...
8
votes
2
answers
5k
views
Setting transparency for no data in raster in geoserver
I have a raster published in my geoserver with default raster style as below
<NamedLayer>
<Name>default_raster</Name>
<UserStyle>
<!-- Styles can have names, titles and ...
8
votes
1
answer
769
views
Raster calculator creates strange output
I am trying to combine two raster layers (one is nighttime satellite data, the other is the GPW population density data). I am using raster calculator to combine the two (the following is for a ...
7
votes
2
answers
13k
views
Inserting nodata value using GDAL?
I'd like to edit the nodata values in several raster files, but big number of these file doesn't have any nodata value defined, there is nothing to edit.
I'v tried the gdal_translate -a_nodata ...
7
votes
4
answers
11k
views
Converting NoData to 0 values in ArcGIS Desktop
I have a raster of landcover that I have reclassed and the different land cover classifications are now represented by numbers which correspond to fertilizer inputs.
Using ArcGIS 10.3, I am trying to ...
7
votes
1
answer
6k
views
GEE: How to transform masked values (NODATA) to -9999?
How can I transform NoData (masked) values to a value? When the image is mapped, there are a lot of values that are masked and I would like to get a value (-9999) on that masked pixels.
var region = ...
7
votes
1
answer
9k
views
Excluding nodata value in band calculation with Rasterio?
How do I exclude no data values when doing a raster calculation with rasterio. I realise that the files are read into an array, and that "0" is a nodata value. However, when I do a simple sum like "...
7
votes
3
answers
7k
views
QGIS raster image transparency, NO DATA value for all raster images?
I'm working with sets of aerial images in QGIS which are geocoded including orientation i.e. rotated.
After loading images QGIS draws a black box around each image that extends from the far west to ...
7
votes
1
answer
1k
views
Set raster layer additional no data value with PyQGIS
I need a raster layer transparency configured like this:
Since I load the layer with PyQGIS, the parameters should be set programmatically. For global transparency and transparency band I found that ...
7
votes
1
answer
4k
views
Change NODATA pixel value in raster to arbitrary value
I want to change the value in all pixels that are currently 0 to 800 in QGIS 2.6.1. 0 is listed as the no-data value in Properties > Transparency. I have unchecked the No Data Value box there. Then I ...
7
votes
1
answer
2k
views
How to remove nodata values from XYZ output with GDAL?
I have a buffered line route that is overlayed on a DEM:
I've clipped the DEM to the buffered line, and exported it as an ADF ESRI grid file. I then used gdal_translate to convert it from the Arc/...
6
votes
2
answers
12k
views
How to create a TIFF file using GDAL from a numpy array and specifying NoData value
I have some tiff files I obtained from splitting a bigger tiff file using gdal translate. The border tiff files have some nodata values, which I can see in numpy as number 15. I want to manipulate ...
6
votes
1
answer
786
views
Get NoData value of raster in pyqgis
I'm fighting with pyqgis with a very simple issue.
I have a raster layer loaded in my TOC and I'd like to return with python its NoData value.
I looked in the API but (and sure it is my lack) I ...
6
votes
3
answers
2k
views
How Does QGIS Read 'nodata' in 3 Band Raster Data?
I have 3 band GeoTiffs of aerial imagery. The imagery is byte data with values of 0-255 on each band. A 'nodata' value has not been assigned on any band. I am assembling these images using a VRT, ...
6
votes
1
answer
1k
views
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 (...
5
votes
1
answer
9k
views
Filling/replacing nodata values of a raster layer in R
Is there a way to fill my NoData values in R?
I have a raster that has several nodata pixels, which looks like this:
(each white dot has no data)
For the moment, the no data values are assigned -...
5
votes
6
answers
961
views
Perform the sum between two raster, one of which has a value of "nodata" or "null" in QGIS
I have two raster (raster1 and raster2) from the same area. I would like to make the sum between the two (raster3 = raster1 + raster2) in QGIS, so that the Digital Number (DN) of raster 3 is the sum ...
5
votes
3
answers
2k
views
Reprojecting raster with FME?
I have multiple .tiff + .tfw files in EPSG:3067, which I need to reproject to EPSG:3878. I tried to do it with FME, and succeeded, kind of. The geotiffs are placed well, but some weird white area ...
5
votes
2
answers
765
views
NoData masks in QGIS
How can I process an existing raster in QGIS to get a mask showing all nodata cells. I want a raster with value 1 in each cell that has valid data and 0 in each cell with a nodata value.
I intend to ...
5
votes
1
answer
12k
views
how to allow null values in a feature-layer
I'm using ArcDesktop 10.2. I have 30 x,y locations that have 20 fields of numeric data, stored in an Excel spreadsheet. Some cells have no data, and I want those cells to be represented as null values ...
5
votes
2
answers
3k
views
QGIS-3 does not recognize "-3.40282e+38" float raster values as NoData
I have DEMs with "-3.40282e+38" values that are supposed to be the NoData values. However, if the rasters are loaded into QGIS (3.4.11), the value can not get assigned with "add additional no data ...
5
votes
1
answer
5k
views
How to filter no data value with GDAL?
I have a Tiff file that has no data value = -3.40282347e+38. I want to filter no data and get raw values with gdal. I tried with below code:
import numpy as np
from osgeo import gdal, gdal_array
...
5
votes
2
answers
3k
views
Merge two rasters with no data value
I have two rasters: Raster A and B. Raster A has has only values of 0. The white area in Raster B are No Data values. I want to merge them to one raster (Raster C). So basically I want all pixels in ...
5
votes
1
answer
2k
views
Generate hillshading with GDAL, and respect nodata
I'm still trying to nut out this problem of merging overlapping geotiffs.
From the original dataset (here, a 20m resolution digital elevation model of the state of Victoria), I have reprojected it ...
5
votes
0
answers
2k
views
"Clip Raster by Mask Layer" produces zero values (and not Nodata) outside mask boundaries
This is my first question here. I have a big raster of the world's nighttime lights and want to clip it down to the Adm0 of a country:
In order to do so, in QGIS 2.18 what I do is using the Clipper ...
4
votes
1
answer
350
views
QGIS zonal statistics only non zero values
I have a raster layer and a polygon layer. The raster layer has values between 0 and 600. I want to calculate the average of all values above 0 within each polygon.
The only solution I came up with so ...
4
votes
1
answer
473
views
Raster calculator gives an output with mostly NoData values
I am using QGIS 3.20 and have an area with the whole extent covered by 4 different layers, but when I perform a raster calculation to sum up the cell values, I only get scattered results in a mostly ...
4
votes
1
answer
2k
views
Use gdal to set multiband raster values to no data
I need to set a 3 band multiband raster (GeoTIff) where band 1 = 0 AND band 2 = 0 AND band 3 = 0 then this is no data (0,0,0 is No Data). Not OR in each band but AND across the 3 bands.
I think it is ...
4
votes
2
answers
457
views
Extract from raster by tightest rectangle mask without Nodata
I'm using ArcMap 10.2.2 and I have a raster that has Nodata around the edges. How can I extract the tightest rectangle from this raster that does not include Nodata? The screenshot may help ...
4
votes
1
answer
414
views
Rasterizing only the border of a vector polygon
I have a layer of very 3 x 3 m square polygons. I would like to rasterize just the border of the squares, so the interior cells just have 'nodata' values, and you can see layers below it. When I ...
4
votes
1
answer
2k
views
Changing raster cells values inside of a polygon to the closest cells just outside the polygon!
I have been wrestling with this for a while and couldn't find out how I can do this. I want each cell of a raster inside of a polygon boundary to have the value of the closest cell just outside of the ...
4
votes
1
answer
2k
views
Changing nodata pixels of -3.40282347e+38 to a different number in QGIS
I have a raster file with two different nodata values: -32768 and -3.40282347e+38. This happened because I am using -32768 as my nodata value, and the georeferencer in QGIS adds nodata pixels as -3....
4
votes
1
answer
3k
views
Creating a mosaic with gdalwarp - How to deal with no data and overlap
I want to create a mosaic of satellite imagery in .tiff format.
I want to create an actual mosaic, not a vrt, because afterwards I will cut the image in to tiles that make sense for my users. Gdal ...
4
votes
1
answer
231
views
How can I set raster outliers in QGIS to nodata?
for further analysis I want to execlude raster outliers (mostly single pixel values).
Therefore, how can I set global raster outliers (e.g., mean +- 2*sd) to nodata value in QGIS?
4
votes
1
answer
681
views
Additional No Data Value Raster Pyqgis 3
I would like to improve way to adjust histogram of Sentinel 2 images in Qgis 3. I am using pyqgis to do the first task to it (create histogram rightly). So I have images that 0 is a no data value. To ...
4
votes
2
answers
2k
views
GDAL grid produces NoData
I have a series of text files that represent X,Y,Z elevation data. I'm trying to use the GDAL grid command line tool to convert these text files to raster GeoTIFs. My files are space delimited and so ...
4
votes
2
answers
1k
views
Setting different NoData values for multiband raster using ArcPy?
I'm trying to set 'noData' values for a 3-band raster image, in a Python script. For this I am using ArcPy function "SetRasterProperties_management" with the following syntax:
arcpy....
4
votes
1
answer
471
views
Raster cells with no data being generated by las2dem?
Anyone has an idea where these lines (with no elevation data) come from? They are generated while using the las2dem tool from LAStools.
What needs to be done to avoid this? The raw data (.las file) ...
4
votes
1
answer
195
views
NODATA on MapServer
I am trying to generate a DEM mosaic to publish via a WCS using MapServer. Unfortunately I can not remove the NODATA. In MapServer's own tutorials and discussion groups suggest PROCESSING "NODATA = 0",...
3
votes
2
answers
1k
views
Total count of values at each pixel in a raster stack/ 3d array
If you have an array with x, y and z dimensions, how can I create an array of x, y dimensions that holds a count of how many z values at each location (x,y) are noData?
I would prefer to use numpy ...
3
votes
1
answer
231
views
Can satellite data have different locations of nodata values in different channels
I have some Sentinel satellite imagery.
And I have noticed that it looks like there are different locations of nodata values in each channel's mask. (I read in the tif file with 3 channels in via the ...
3
votes
2
answers
2k
views
Assigning values values to raster cells overlain by polygon layer using R?
I have a raster layer and a polygon layer overlaying the raster. The thing is that I want to make a new raster as follows: 1) the extents of the new raster should be the same as the old raster. 2) The ...