Stack Exchange Network

Stack Exchange network consists of 175 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.

1
vote
2answers
21 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 ...
1
vote
0answers
14 views

gdal_merge novalue

I managed to run gdal_merge for multiple geotiles (jpeg). I am using the following options: command = "gdal_merge.py -init 0 -a_nodata 0 -co COMPRESS=LZW -co BIGTIFF=YES -o "+out_bez+" -of gtiff " +...
0
votes
1answer
41 views

QGIS 3.4 Stream delineation problem, lines running too far into ocean

I am using QGIS 3.4.4 Madeira version trying to delineate the stream and catchment areas of a small Bay in Honduras based on the technique of Hanz van der kwast tutorial "Stream and Catchment ...
0
votes
0answers
26 views

Filling NoData around bridges in DEM

Is it possible to fill no data around bridges without pixels blurriness (see picture). I use Elevation Void fill function, also tried in qgis No data filling and Grassgis r.fillnulls. I know, that I ...
2
votes
0answers
45 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....
0
votes
0answers
72 views

How delete delete or mask nodata 0 value in the mask

I have raster (with 5 bands) and shapfile in the same projection. I do this script for rastersize and do mask and clip raster or crop raster with mask but I need to have just clip raster without black ...
1
vote
0answers
43 views

Raster values shows no data when using identify features tool

I used vector to raster function in QGIS, to convert some points with different values to raster. I tried to use the "Identify Features" to check values for each raster box. The values shows no data ...
0
votes
1answer
91 views

Google Earth Engine - how to set masked pixels to 'noData'

Lets say I have a region of mangrove forests (from a classified Landsat image) and I mask out all non mangrove pixels. I view this as a layer on the map and it shows the mangrove forests on the map ...
2
votes
0answers
96 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 ...
1
vote
0answers
72 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
49 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
352 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
25 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 ...
0
votes
0answers
46 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
203 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 ...
2
votes
2answers
483 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
37 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
122 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
56 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
33 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
356 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
115 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
44 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
62 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
105 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
58 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
648 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
85 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 ...
2
votes
1answer
393 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
521 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
153 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
587 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
180 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 ...
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 -...
1
vote
1answer
275 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
769 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
136 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 ...
1
vote
1answer
215 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
832 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
36 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
615 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
141 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
586 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
445 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
185 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
88 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
174 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
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 ...
1
vote
2answers
78 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
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 +...