Questions tagged [nodata]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
510 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
215 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
90 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
183 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
85 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 ...
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 +...
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
352 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
212 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
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 ...
5
votes
1answer
388 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 ...
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
523 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
175 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 "...
1
vote
1answer
668 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 ...
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 ...
3
votes
2answers
834 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 ...
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 ...
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 ...
4
votes
2answers
523 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....
6
votes
1answer
346 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 ...
2
votes
1answer
2k 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
562 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
74 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
145 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 ...
3
votes
2answers
2k 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 ...
8
votes
1answer
334 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
0answers
549 views

Make “Nodata” transparent in raster - Mapfile/Mapserver

I have a raster and I'm trying to make it display in Openlayers2, using Mapserver 7.0 in backend. My problem is, I think, that because the online map is not the same projection as my data, Mapserver (...
3
votes
1answer
423 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 ...
5
votes
3answers
953 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 ...
2
votes
0answers
134 views

How do you get NoData to show up transparent in a .TIF file? [closed]

I am creating a handful of raster images using ArcGIS 10. I've been exporting the rasters as .TIF files. From what I've read, even though you can set the background to No Color, this actually doesn't ...
1
vote
1answer
596 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 ...
2
votes
1answer
924 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
1answer
359 views

How can I retrieve private tag GDAL_NODATA from a TIFF using libtiff?

In an earlier post I reported about my attempts to read TIFF with data stored in tiles using python and libtiff. First I tried to use libtiff's function TIFFReadEncodedTile but finally I tried ...
3
votes
1answer
917 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 ...
1
vote
1answer
267 views

Qgis 2.12 Raster Calcuator gives nan raster image

With the 'r.los' command I've made some tiff raster images from a dem tiff. When I open the raster calculator to do math with the new rasters, the result is always a "nan" raster. From its options I ...
1
vote
0answers
141 views

How do I change my “no data” values to get “true” values in raster calculator in Qgis

I have two rasters and I want to subtract the values from one of the layers. The first raster is a altitude raster and the second raster is depth values for a lake. I would like to subtract the depth ...
2
votes
1answer
142 views

What is the meaning of -32768 in gdaldem color config?

I found a gdaldem color config: 3500 140 140 140 2500 209 209 209 1500 225 225 225 700 245 245 245 0 252 252 252 -32768 213 232 237 <=== What mean -32768
1
vote
0answers
190 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: ...
1
vote
1answer
125 views

ArcGIS 10.1 SA Raster calculator: Multi-raster conditional with nodata

I have a question regarding the Con statement when used in the SA Raster Calculator. I am reclassifying a raster (categorical, integer) based on my own mappings but also on another raster (for some ...
1
vote
1answer
821 views

16-Bit to 8-Bit and NoData value

I've created a hillshade raster (ArcGIS 9.3) and I have 16-Bit tiff image (please see attached). I need to submit 1 band/8-Bit with grey level (0-255) and set NoData for all pixels outside of the ...
1
vote
2answers
660 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 ...
3
votes
2answers
571 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 ...
1
vote
1answer
361 views

Error in “Fill Nodata in QGIS”

I am dealing with landsat ETM+ images after 2003. While filling the line drop outs usiung QGIS Fill Nodata, I keep getting this error, ERROR 1: TIFFOpen:7948_0fill_y_work.tif: Permission denied ...
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
1answer
259 views

Set NoData values to -999 in ArcGIS 10.3 [closed]

I know how to set a value to NoData using SetNull, but how about the opposite? If I had cloud pixels in a Landsat scene that are currently set to NoData and I want to set them to -999 (an extreme ...