Questions tagged [nodata]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
388 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 ...
2
votes
2answers
1k views

Identifying missing pixels/ pixels with no data value in .tifs

I am looking for a way to identify missing pixels in .tifs. For example, in the attached image there is a row and a column of missing pixels across the image. The no data/ missing pixels after some ...
0
votes
1answer
974 views

How to convert to NoData in Google Earth Engine?

I have the next code: I am trying to make a mask (only one shape that I would like to use as an analysis region) with: all elevations less than 4.100 meters (from DEM), all area with water (NDWI) and ...
2
votes
0answers
209 views

Programatically assigning NoData value in raster output?

I have written a tool that operates on raster data. When the tool finishes it outputs a raster into a gdb, but the output does not have a NoData value listed under properties (input does, output does ...
8
votes
1answer
344 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 ...
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 ...
5
votes
3answers
683 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
1answer
2k 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 +...
2
votes
1answer
769 views

QGIS Raster calculation with nodata values?

I am using QGIS 2.18.13. I have a few shapefiles. From inside QGIS, using python's processing.runalg function and supplying "grass7:v.to.rast.attribute", I converted those to raster files which have ...
1
vote
1answer
283 views

How to reclassify a raster based on quantile and without no data in QGIS?

I want to reclassify quantile a raster layer without negative values (nodata values) so I used Reclassify a raster file with quantiles and How to filter no data value with GDAL? in below code: import ...
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 ...
2
votes
0answers
37 views

ArcGIS Visibility <NoData> / 0 when observer point in raster cell center

As I discovered, the ArcGIS Visibility tool seems to produces a vertical line from the observer point northwards in the above ground level raster and a 0 value in the visibility Raster, if the ...
2
votes
1answer
162 views

Clip raster with pyqgis and nodata value

I'm writing a script to clip many raster by a shape. When a try the tool in pyqgis just for one raster, value around image are nadata, it's good ! Here is the code : ##test=group ##clip=name ##...
3
votes
2answers
859 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 ...
2
votes
1answer
952 views

Keep NoData values when using gdal_merge

I'm using gdal_merge to join several BioClim rasters, which I will then feed into a Java program that "snaps" points to the nearest BioClim raster tile of non-NoData value. However, when I run ...
2
votes
0answers
243 views

gdal_translate outfile without nodata_values [closed]

I want to use gdal_translate to convert a ASCII grid file onto a xyz file. But the ASCII grid is about 5.7Go and the xyz outfile is really bigger (approximately 30Go). To reduce the memory I would ...
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 ...
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 ...
1
vote
0answers
92 views

remove values around raster

I'm working on QGIS 2.14. I'm using grass7:neighbors algorithm but i get artefacts on some sides of my images I would like to clip my new image with the shape of the original to remove this problem, ...
1
vote
1answer
601 views

How can I write private tag GDAL_NODATA to a TIFF using libtiff?

In an earlier post I asked how to retrieve this tag from TIFF using python and libtiff. Eventually I found the answer and I reported on the solution last week. I also realised that in order to write a ...
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 ...
1
vote
0answers
370 views

gdaldem slope calculation noData

I use gdaldem to calculate the slope of a given region. This is the command I use: gdaldem slope -s 111120 -p -compute_edges N34E069.hgt N34E069_slope.tif (I've got the SRTM data from http://...
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/...
1
vote
2answers
1k views

How to create a NoData raster mask in ArcGIS

I need to create a mask of NoData pixels from an elevation raster dataset. ArcGIS directly recognizes the NoData values as such, so I don't see an option to address them e.g. in the Raster Calculator ...
1
vote
0answers
191 views

Con statement outputs using arcpy.sa.Con doesn't ignore NoData

In ArcGIS 10.2, using the Con tool, I ran a conditional statement to return RasterA where RasterB value >0. That worked fine. Transferring the code into python, the statement reads something like: ...
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 ...
5
votes
1answer
403 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 ...
1
vote
2answers
661 views

Reclassifying rasters to two values (1 and NODATA)?

I am trying to reclassify a bunch of rasters, but when I run my script arcGIS crash. What I want to do, is reclassify rasters this way: every accepted value (0,1,5 and 64) to 1, and the others values ...
2
votes
1answer
1k views

How to use GDAL translate tool in python script QGIS

I'm trying to use gdal_translate tool in a python script I'm writing in QGIS 2.18.3. I use the translate tool because I want to change all the zero values (in all 8 bands of my raster) to nodata. I'm ...
1
vote
0answers
526 views

Gdalwarp: how to set nodata value after warp?

I have source RGBA image here is output of gdalinfo : Driver: GTiff/GeoTIFF Files: src.tif Size is 780, 670 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",...
1
vote
1answer
178 views

Suggestions for open source command line resample algorithm that ignores nodata?

I am trying to automate the downsampling of elevation (and other) data using open source software at command line in an automated workflow via use of windows batch files. Currently the workflow uses ...
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 "...
2
votes
2answers
976 views

How to merge rasters with nodata cells in Arcgis

I want to create a single attribute table base on multiple overlapping raster. Some raster do not overlap completely but have common areas. In that situation I need the value from other raster while ...
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?
1
vote
1answer
701 views

Removing No Data/Black Space from Raster (*.tif) using ArcGIS Desktop?

I am running ArcGIS Desktop 10.4.1 with a basic license and I am working on a community plan for a first nations community. We contracted a company to do some aerial photography of the area. The ...
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 ...
1
vote
0answers
161 views

Why does QGIS convert 'NoData' values to 'Zero'?

I'm trying to convert a clipped multi-spectral sentinel-2 image in QGIS to an 8-bit rendered image in a different CRS. I've clipped the image to the coastline and defined the other unwanted areas of ...
4
votes
2answers
547 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....
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 ...
1
vote
1answer
78 views

How to retain cells with >50% nodata in QGIS raster calculator?

I'm trying to calculate 10x10 km pixels from a 30x30 second raster in QGIS. The raster calculator seems to do what I want, except that the new raster has nodata in cells where more than half (I guess?)...
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 ...
6
votes
1answer
361 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 ...
1
vote
1answer
2k views

How to use gdal.FillNodata in python?

I am trying to use gdal.FillNodata in python on a ".tif" raster. The nodata value is set to -3.402823e+38. Here is my code : import gdal from gdalconst import * ET = gdal.Open("ET_sample_reclass.tif"...
1
vote
1answer
693 views

How to force GeoServer to remove, or change, NoData Value from GeoTiff?

I am trying to display vector data of state borders, downloaded from GeoServer as GeoTiff, in QGIS. By default downloaded raster looks like this: After disabling NoData value in raster->Properties->(...
3
votes
1answer
954 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 ...
2
votes
1answer
3k views

How to replace the Nan or nodata values into 0? [duplicate]

I have a raster in .img format and i would trasform some values (Nan) into 0 with QGIS 2.14.3 (Windows). I've tried different ways but I didn't have results: 1- with raster --> conversion --> ...
4
votes
2answers
593 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 ...
1
vote
0answers
77 views

How to Remove No Data from a NetCDF Raster Layers?

Question: How to remove no data from a NetCDF Raster Layer? I am trying to use the Zonal Statistics as Table tool in ArcGIS to calculate the mean. The problem is I am not getting the correct mean, ...
0
votes
0answers
150 views

Add r.null functionality to GRASS toolbox algorithms in QGIS

I'd like to be able to use GRASS's r.null operation in the QGIS processing toolbox (not via the GRASS plugin). However, it doesn't seem to be available. How would I go about adding code to allow for ...
0
votes
1answer
56 views

r.statistics throws invalid reclass rule error despite assigning null to unique value

Trying to run r.statistics on two raster layers, one a layer of distinct zones produced via r.clump (stands) and one a layer of all ones (ones). The areas outside of the immediate region of interest ...