Questions tagged [nodata]

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

66 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
358 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
86 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
214 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
75 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
55 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
83 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
1answer
75 views

Nodata value making holes in merged GeoTIFFs in QGIS?

I am trying to remove black borders around the edge of a GeoTIFF. The Black border around the GeoTIFF has an RGB value of (0,0,0). I have tried assigning 0 as a "No Data" value to the tiff, but QGIS ...
2
votes
0answers
26 views

Clip Raster in ArcGIS Desktop 10.3.1 writes NoData border

I'm trying to clip a DEM raster using a rectangular polygon shapefile as the extent. The Clip Raster tool will add/write a NoData border surrounding the output raster. The NoData pixels are ...
2
votes
0answers
323 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 ...
2
votes
0answers
307 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 ...
2
votes
0answers
39 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
0answers
744 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 (...
2
votes
0answers
6k views

Python Band.SetNoDataValue(), sets all bands at once

Can someone tell me what I am doing wrong? I want to set bands 1 and three to 255, and band 2 to 0. The code below only should only set band 2, but gdalinfo shows that all bands get set to 0. ...
2
votes
0answers
130 views

Set Default Transparent Pixels in QGIS?

Is there a way to set QGIS to automatically load in images with no data values of (0,0,0) as transparent instead of black? I've looked through the forums, tried saving a .qml file out, looked through ...
2
votes
0answers
809 views

NoData specification via IEEE NaN in GeoTIFF for ArcGIS

I am a programmer exporting 32-bit floating point GeoTIFF rasters from my own application that my users need to read into ArcGIS. Unfortunately I am not an Arc user myself and have zero expertise with ...
1
vote
1answer
62 views

Dealing with no-data values in raster calculator of QGIS

I am trying to patch two rasters with raster calculator but I am not finding the way to work with no-data values. Lager@1 has some information I need as first option, this has as no-data -9999 (...
1
vote
0answers
25 views

Ignore background value

I'm using Copy Raster (Data Management) function. I need to ignore background values which are = 0 but keep all pixels =0 that are inside the raster. background_value should do it, however it does ...
1
vote
0answers
29 views

Handling Nodata values in sklearn (working w pyimpute)

I'm using sklearn for a classification project. Because I'm relatively new to doing geospatial tasks outside of a GUI, I'm using Matt Perry's pyimpute (link has all the code for that module) to handle ...
1
vote
0answers
44 views

Combining 2 rasters using Con and IsNull in Python

I am trying to write a Python script that converts most NoData pixels to 0 in a raster (Raster1 below), except for pixels that overlap with a pixel value of 1 within another raster (Raster2, which has ...
1
vote
1answer
34 views

Arcpy Clip Raster not setting clipped out area to NoData

I have an 8 bit raster that I'm clipping using arcpy 10.7 arcpy.Clip_management("inrasPATH","","outrasPATH","PolygonPATH","256","ClippingGeometry","MAINTAIN_EXTENT") However whenever I clip the ...
1
vote
1answer
72 views

Replace value in raster by another raster by ifelse (con) statement in QGIS

Previously I spent a lot of time to see answer on similar question but neither work with my problem. I have QGIS 3.4 and a DEM where I've to substitute more accurate height in cells that are ...
1
vote
0answers
119 views

Mapserver NODATA affects valid raster data pixels (zero)

I have NOAA nightlight rasters cropped to country boundaries that I am trying to display using Mapserver. As such, I am trying to have NODATA pixels i.e. those outside the country boundaries be ...
1
vote
0answers
28 views

Hiding NoData values of a raster in MapServer

In a MapServer NoData value pixels can be hide by using the following code inlcusion in a mapfile: `PROCESSING 'BANDS=3,2,1'` Now I have raster with multiple combinations of NoData Values other than ...
1
vote
0answers
31 views

NoData values in soil wetness index

I would like to know why I am getting no data pixels in my soil wetness raster, since none of the source rasters used to calculate the SWI have no data values. method I used: soil data from HWSD FAO ...
1
vote
0answers
27 views

NoData cells appeared in segemented raster

I am trying to classify an aerial image of a dike into grass and weeds. I used an aerial RGB image of 10 cm resolution being a TIF file. This aerial image is cleaned and contains no gaps. Only outside ...
1
vote
0answers
143 views

Importing 16-bit data into Google Earth Engine

I am trying to import 16-bit data into Google Earth Engine. I get this error. No data value 65536.0 cannot be applied to band #0 of type Integer<0, 65535>. No Data is 65536 I tell it that ...
1
vote
0answers
31 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 " +...
1
vote
0answers
79 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 ...
1
vote
0answers
97 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
93 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
0answers
519 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://...
1
vote
0answers
610 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
0answers
166 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
0answers
85 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, ...
1
vote
0answers
177 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 ...
1
vote
0answers
209 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
0answers
2k views

Convert polygon to raster and give value to null cells

Is there a way to convert polygon features to raster while also populating null cells with a specific value? As in, can I create a raster from a polygon shapefile and have the tool populate all null ...
1
vote
0answers
85 views

Managing or Reducing noise in a mosaic raster

I have created a raster with the Mosaic to New Raster tool from 3 separate rasters. However in my mosaic I have some consecutive pixels which seem to be the noise of the previous procedure. Is there ...
0
votes
0answers
18 views

How to convert 0 values to NaN values with rasterio

I clipped my tif image to smaller tif via using a shapefile as mask with rasterio python library. After that my square shaped clip has bigger extent than shapefile and outside the the shp area is ...
0
votes
0answers
15 views

Fill no data pixels for specific area (not the whole image) resulting from cloud masking of Landsat 8 multi temporal composite (Google Earth Engine)

I need to conduct a Landuse classification of New Caledonia. I therefore used the Landsat 8 satelite images of one year and created a multi temporal mosaic by a mean function. As most of the areas ...
0
votes
0answers
16 views

Ignore raster no data

I'm clipping several rasters with different polygons and I've realized that some polygons fall on top of areas with no date values of the raster, returning me as a result completely empty clipps with ...
0
votes
0answers
20 views

Geoserver multiple nodata values ECW in alpha band

I want to combine multiple geotiffs to one ECW in FME and then upload the ECW in Geoserver. The responding nodata is stored in the alpha band. However with ECW compression (even when choosing 0 for ...
0
votes
1answer
26 views

Trying to define a range of values as NoData in QGIS

I have a raster from GEBCO with pixel values ranging from -5888 to 5485 m. I only want to analyze the Bathymetry so I am looking for a way to assign noData values to all values >0. I also have a ...
0
votes
0answers
27 views

gdal_translate of Tiff to gpkg with only one band and preserving of the nodata

I try to use gdal_translate in my windows command prompt to convert a single band .tif raster to a single band .gpkg. gdal_translate -of GPKG example.tif example.gpkg I always get a .gpkg with four ...
0
votes
0answers
21 views

How do I add the entry “no data” into my legend with ArcMAP

In ArcMAP, on my raster image I am using a slight grey color to visualize no data values within the image. They are areas which did not surpass a critical threshold value. I would like to include this ...
0
votes
0answers
30 views

GeoTiff from QGIS uploaded to Mapbox has black background way outside of the edges of the raster

I am exporting a composite RGB images from QGIS into Mapbox and am getting a black background around the raster as well as outside of the limits of the raster data. There are areas within the raster ...
0
votes
0answers
34 views

Adding two rasters results in negative infinity and positive infinity

I'm trying to create a hydro-flattened DEM according to USGS specifications. I have two rasters, a DEM of my study area and a raster that only contains the water bodies that I have flattened so the ...
0
votes
0answers
94 views

Setting No Data value in a TIF using GDAL

I am working with various TIF-files using a Python Script and GDAL Library. Calculations within the array work fine and TIF-output worked too. I just want to Set the NoData-value by getting it from ...
0
votes
0answers
53 views

Problem with saving raster using writeRaster in R

I'm running some analysis in RStudio using raster and rgdal package. Where I assign variable to some raster, or stack for example: analysis = raster("M-34-91-B-a-1-4-4.img") Then I run some analysis ...
0
votes
0answers
71 views

Handling nodata values in raster in Python

I would like to set value of raster -999.0 as NaN in crop_image function, while reading/cropping file: for band_path in range_bands: # open raster as numpy array by rater.io in content manager(...