Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nodata]

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

2
votes
0answers
33 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 ...
0
votes
0answers
29 views

Google Earth Engine - problems with exporting a classified image (how to deal with noData)

I'm trying to export a classified image in GEE for analysis in ArcGIS. My image has 50 classifications (0 - 49). My problem is, after inspection in ArcGIS, it seems the border (coloured red, other ...
1
vote
0answers
66 views

How can I stop single pixel nodata values propagating through a tile pyramid when using gdal2tiles?

I am using gdal2tiles_parallel.py to generate a tile pyramid from a single geotiff with nodata value set. I have noticed that if I have a small hole in the original geotiff (say single pixel), then I ...
1
vote
0answers
36 views

rasterio - nodata per band [closed]

I am looking at a way to specify a different nodata value for each band in rasterio. I tried to: use the nodata key in the profile with a tuple or list of nodata values, set the nodatavals attribute,...
4
votes
2answers
150 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 ...
0
votes
0answers
20 views

Polygon interpolation neighbour average?

I am trying to estimate empty values based on a polygon layer we received from another study. Is there a way to calculate an average value for polygon A based on neighbours B,C, etc that border it? I ...
1
vote
0answers
32 views

How to preserve NoData areas when changing data type in GeoTiff with QGIS or gdal_translate?

I have a float geotiff raster with values 0, 1 and 2, along with a nodata area. I'm trying to convert the file type do Byte but I'm not being able to preserve the nodata area. It gets converted to 0 ...
0
votes
1answer
83 views

Filling no data value in raster using ArcGIS Desktop?

I have a raster with no data values, I want to give them values according to values around them. If a no data pixel is surrounded by 8 pixels whose values are 1 then the no data pixel should adopt ...
1
vote
2answers
140 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 ...
0
votes
0answers
29 views

Set multiple values to nodata - Erdas Imagine 2015

I am having trouble with the data ranges in the Landsat 8 surface reflectance product which I downloaded from USGS. The Lansat 8 surface reflectance handbook says the valid range is 0 - 10,000 range ...
0
votes
1answer
75 views

Meaning of NULL when using condition in gdal_calc

I am confused with the results of using a condition in gdal_calc. Initially I thought that gdal_calc was setting pixels to nodata where a condition is not met. In the documentation (http://www.gdal....
3
votes
0answers
51 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 ...
0
votes
0answers
21 views

The SetNull tool does not correctly change “-9999” into NODATA

I am using ArcMap 10.5.1 and .tif raster data. When I executed the SetNull tool to convert all "-9999" values into NoData, the range of values in the output raster was greater than that in the ...
2
votes
1answer
147 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 ...
1
vote
1answer
72 views

Mapserver / QGis and DEM GeoTIFF different nodata values behaviour

I Have a problem with novalue datas in my DEM… This is the workflow I did: my DEM datas are in multiple Arcgis ASCII grids… Each .asc files have a header containing "NODATA_value -99999.00". I ...
2
votes
0answers
41 views

NoData and Multiband Calculations

I was recently trying to perform some band math calculations in multiband images. I have a big chunk of images witch contains more than 300 bands (dates) each. So I first choosed ENVI to do this ...
3
votes
0answers
54 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",...
0
votes
0answers
72 views

GDAL API: GDALPolygonize - nodata

I am attempting to polygonize a raster using GDAL C API. The input rasters can contain nodata pixels. My current method (see the code below) produces a new polygon vector, but the output also includes ...
0
votes
1answer
48 views

Writing no_data_value within jpeg2000[kdu] with gdal_translate

I would like to specify a NO_DATA_VALUE within a JPEG2000 file (I use the JP2KAK driver). When I call gdal_translate -of JP2KAK -co QUALITY=100 input.vrt ouptut.jp2 , I get an aux.xml file alongside, ...
1
vote
1answer
324 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 = ...
0
votes
1answer
65 views

Is the cell size dependent on the number of features for the Euclidean Distance tool?

I have attempted to run the Euclidean Distance tool, using ArcMap 10.5.1, on a feature class of 50 points (hospitals), but I received an invisible output. Using 'Identify' I get 'NoData' for the pixel ...
0
votes
0answers
56 views

pyqgis gdalogr translate no_data issue

I have an input image with nodata parameter 0 and I want to switch it to nodata parameter 1. I'm trying to run gdalogr:translate in python as follows outputs_GDALOGRTRANSLATE_1=processing.runalg('...
1
vote
1answer
230 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 ...
2
votes
1answer
301 views

Using python gdal.BuildVRTOptions()

I want to define no data values when working with gdal.BuildVRT(). According to the gdal.documentation http://gdal.org/python/osgeo.gdal-module.html, by creating a gdal.BuildVRTOptions (srcNodata=-99, ...
1
vote
1answer
110 views

QGIS - Issue with No Data Value Pixel is changing only in header of ascii

I have changed the No Data of a raster Forest.asc into No data = 0 using Raster -> Conversion -> Translate option in QGIS. So, when I add the output raster layer Forest_1.asc in QGIS and check for ...
0
votes
1answer
194 views

Setting zero values to “NoData”?

In ArcGIS Desktop I have a slope raster and calculated mean slope per watershed for a fish habitat model. There are zero ("0") values in some subcatchments where no information was available to ...
0
votes
2answers
144 views

Completely removing no data values from raster using ArcPy?

I have a layer called addLayer0 which is largely filled with nodata values. for l in list_dfs: l.panToExtent(addLayer0.getExtent()) where list_dfs is a list of all dataframes in the ...
3
votes
1answer
1k 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 -...
1
vote
1answer
184 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 ...
0
votes
1answer
531 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 ...
1
vote
0answers
91 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 ...
0
votes
0answers
36 views

Raster analyses only on selected area/extent

I am working with global raster layers and running the gdal_fillnodata tool (QGIS) to fill the gaps but need to run the tool only on the current view/extent but not on the whole area. Is there any way ...
1
vote
1answer
167 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 ...
3
votes
1answer
620 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
34 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
484 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 ...
2
votes
1answer
114 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 ##...
5
votes
3answers
451 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, ...
3
votes
1answer
370 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 ...
2
votes
0answers
136 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 ...
1
vote
0answers
71 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, ...
8
votes
1answer
159 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 ...
2
votes
2answers
821 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 ...
1
vote
2answers
65 views

MrSid nodata cells in Lizardtech

I have an odd shaped (not square) raster .tiff file that I converted to MrSid using Lizardtech's GeoExpress. It converts the nodata to black. This is applying a value to no data. Eventually I want ...
7
votes
1answer
952 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 +...
3
votes
1answer
824 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
237 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://...
2
votes
1answer
169 views

How do I change the extent of a raster file in ArcGIS in order to remove nodata values?

I am currently working with a netcdf file which I export to a GeoTiff and then layer over a 3D globe, the problem is a get a white line showing up at the dateline, straight through the pacific. When I ...
1
vote
2answers
828 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 ...
5
votes
1answer
273 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 ...