Questions tagged [nodata]

"NoData" is a term for null values in raster datasets.

Filter by
Sorted by
Tagged with
24
votes
3answers
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 ...
13
votes
3answers
8k views

How to change null values raster values to 0 in QGIS?

I need help... 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?
10
votes
4answers
4k 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, ...
8
votes
7answers
21k views

Redefining nodata value into zero in QGIS?

I have an image which i cliped 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 ...
8
votes
1answer
188 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
1answer
339 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
4answers
7k 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 ...
7
votes
1answer
3k 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 ...
6
votes
2answers
4k 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?
6
votes
1answer
355 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
1answer
1k 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 +...
6
votes
2answers
2k 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 ...
6
votes
1answer
1k 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 ...
6
votes
1answer
1k 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/...
5
votes
3answers
969 views

Reproject 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
1answer
9k 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
1answer
401 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 ...
5
votes
2answers
2k 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
2answers
2k 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 ...
5
votes
3answers
680 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, ...
4
votes
1answer
2k 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 -...
4
votes
2answers
318 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
1answer
1k 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
1answer
1k 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 ...
4
votes
1answer
2k 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 "...
4
votes
2answers
578 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 ...
4
votes
2answers
592 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
2answers
545 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
1answer
260 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) ...
3
votes
2answers
582 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
1answer
851 views

Where is qgis getting the NO DATA value from?

I have a project that contains an 8-bit paletted layer (call it the mask layer) and a float 32 single band layer (call this the clip layer). I create a new raster by using the raster calculator, ...
3
votes
1answer
1k views

Redefining nodata values into zero in QGIS without changing the other values?

I have a raster layer with nodata pixels and I want these to be 0. I have tried the SAGA tool "reclassify values", the GDAL "fill nodata" (also with a validity mask containing only zeroes) and the ...
3
votes
1answer
428 views

QGIS raster calculator: difference gives NaN for Landsat 8 scene

I'm strugling with the QGIS Raster Calculator, trying to get a NDVI image from a Landsat 8 scene (path 222, row 84, date 2015-11-15). The problem is, I'm consistently getting NaN values for all the ...
3
votes
1answer
945 views

Sediment transport index STI

To calculate the STI one applies the following formula in the raster calculator: Power(“FlowAccumulationArea_Raster”/22.13,0.6) * Power(Sin(“Slope_Raster”/0.0896),1.3) Now I have a problem which I ...
3
votes
1answer
2k 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 ...
3
votes
2answers
3k views

How to remove the Na values from a stack of rasters?

In R I have a stack (nsw.stack) which contains 6 variables. I have clipped the extent. However, When I look at the summary it appears that there is a lot of NA values (see below). I think this is ...
3
votes
1answer
530 views

Raster merge leaves gap where one file has no data

So I gave up on using the Raster|Misc|Merge... command in QGIS because it always crashes. I tried using the merge tool from the GDAL/OGR Processing Toolbox instead. That runs OK, but it puts a gap ...
3
votes
2answers
856 views

Raster to Numpy Array - No data values

I have several single band, 32 bit float raster datasets (fgdbr) that i want to use to build a raster stack (depth) in numpy by doing something like this dv = np.dstack((d_array, v_array)) With ...
3
votes
1answer
458 views

Setting raster values to NoData when raster does not have valid statistics?

I have a floating point raster with some values of 99999 that I want to set to NoData in Arc 10.2.2. I've tried using the SetNull dialogue box, the SetNull arcpy function, and the Raster Calculator ...
3
votes
0answers
59 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 ...
3
votes
0answers
59 views

Problems with DEM exporting after Elevation Void Fill function use

I filled nodata values in DEM by Elevation Void Fill function, everything was ok, but when I exported it, the raster looks different (see picture above), how can I solve this problem? I also tried r....
3
votes
0answers
134 views

How do I fill Landsat 7 SLC gaps using QGIS?

I am currently using the QGIS 3.4.0 Raster -> Analysis -> Fill nodata (a tool for Landsat 7 data). I am using the directly downloaded USGS tiff band files with corresponding gap mask band tiffs ...
3
votes
0answers
59 views

Raster NoData Value

So over the years working with elevation and image rasters in various formats I always kind of ignore the value of No Data. I usually just let the software/vendor/someone else decide on the value for ...
3
votes
0answers
68 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
0answers
939 views

SetNull in Python script for Arcgis assign 0 value [closed]

I am writing a script in Python where I assign to few Tiff defined in a function as inputRaster a NoData value as follows: whereClauseSetNull = "VALUE > 100" outSetNull = SetNull(inputRaster, ...
2
votes
3answers
8k views

Removing nodata value from raster images?

I'm doing urban change prediction in Land Change Modeler (TerrSet software), and i can't run Transition Sub-Model. I don't know why, but I think it is because I have nodata value in Variable (slope ...
2
votes
2answers
2k views

Raster clipping without producing no data values

I'm trying to clip a raster in ArcMap using a polygon, and I'm wondering if there's any way to have the resulting raster not include any "no data" values (I apologize for the poor grammar). My process ...
2
votes
2answers
1k 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 ...
2
votes
1answer
65 views

Reducing file size by not storing no-data points

I have to compute sea wave forecast for large period of time. Land information is of no use here. Is there any file format that allows to not store no-data/fill values for land area to reduce file ...
2
votes
1answer
2k views

How to change no data value from -32768 to -3.40282e+38 in raster in QGIS?

I am trying to change the null values of a raster from -32768 to -3.40282e+38 in QGIS. I tried using warp tool setting the no data values to my desired number but it did not change it. Then I used ...