Questions tagged [nodata]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
32 views

Raster NA Error in R - Error in { : task 5 failed - "0 (non-NA) cases"

I'm trying to conduct a landscape genetic analysis through the R Package ResistanceGA on some environmental rasters. However, I keep running into the error Error in { : task 5 failed - "0 (non-NA)...
user avatar
4 votes
1 answer
98 views

Raster calculator gives an output with mostly NoData values

I am using QGIS 3.20 and have an area with the whole extent covered by 4 different layers, but when I perform a raster calculation to sum up the cell values, I only get scattered results in a mostly ...
user avatar
1 vote
0 answers
38 views

rioxarray - masks as no data

So far, I always used nodata with the method rio.write_nodata(). But new raster I had several bands and I only want that pixel to be nodata, when every channel of the pixel is a no data value. How ...
user avatar
0 votes
1 answer
36 views

QGIS creates BOX with no data when merged

I have 2 rasters. The first one is a lidar which is clipped by a masked layer. (30.53mb, pixel size=1m,float32) The other is a local survey GEOTIFF. (75kb, pixel size=1m,float32) When I merge them, ...
user avatar
  • 33
1 vote
1 answer
48 views

Border of zeroes when exporting image in Earth Engine

Problem description When exporting any clipped image in Earth Engine using Export.image.toDrive function; it always converts masked pixels (nodata) to zeroes (0). The only exception from this ...
user avatar
1 vote
1 answer
36 views

Batch SetNull in ArcGIS Pro

I am using ArcGIS Pro. I have 100s of GeoTIFFs with NoData set to -99999 and I need to set NoData to null. I can’t seem to get batch SetNull to work. The images are 32 bit float.
user avatar
1 vote
0 answers
23 views

"no data" result from raster calculator

Am trying to implement the following line in QGIS raster calculator: ("L@1" < 0) * ((1 - 16 * 200 / "L@1")^0.25) + ("L@1" >= 0) * 1 Basically, when L is less than ...
user avatar
  • 11
2 votes
2 answers
46 views

QGIS Raster calculator calculates „-inf, inf“ instead of no-data

I am trying to extract Vegetation from an aerial image. First I calculated a DEM for vegetation height and a binary image (0,1) for cover. Then I divided DEM by binary. Result was a raster with ...
user avatar
  • 31
2 votes
0 answers
58 views

QGIS raster calculator syntax to turn `nodata` values to other values

In QGIS raster calculator, how is the syntax to refer to nodata values? Lets say I have a raster and want to generate a binary output raster with data -> 1 and nodata -> 0. There is an easy way ...
user avatar
  • 40.1k
1 vote
0 answers
81 views

gdal_translate of KMLSUPEROVERLAY issues making nodata transparent

I'm trying to use gdal to make a superoverlay KML / KMZ from a single band .tif (GTiff / GeoTIFF) which I created in ArcGIS. I want the nodata region to be transparent, but it has been showing up as ...
user avatar
  • 69
1 vote
2 answers
42 views

Finding raster files in a directory that contain noData pixels/cells ... ArcGIS and Python

I am trying to find a way of looping through Rasters in a directory, (a collection of individual tiff images in a folder) and selecting by name only those rasters that contain noData values and ...
user avatar
  • 581
1 vote
0 answers
21 views

nodata leads to high pixel values after aggregation

I am working in QGIS with binary raster images and my task is to decrease the resolution from 0,1 to 5m. Problem is, I have several areas that were excluded with “no-data” beforehand. After ...
user avatar
  • 31
1 vote
0 answers
66 views

gdal_calc --hideNoData not working in python script

I am trying to convert the following GDAL code which works perfectly in the command shell into a python script gdal_calc --calc "(A == 0) * B + (A != 0) * A" --format GTiff --type Float32 -A ...
user avatar
1 vote
1 answer
80 views

Merge rasters with different No data values with GDAL

I have hundreds of rasters that I want to mosaic in one raster. These rasters are squares surrounded by larger squares of no data values. I am using gdal_merge.py to this and I can use the -n option ...
user avatar
2 votes
2 answers
79 views

GDAL: Set an entire band to nodata (make empty)?

I have grayscale DEM that I've needed to convert to RGBA in order to play well with how blender addresses alpha channels. I'm using this script to create 2 more bands and then stick my alpha band at ...
user avatar
1 vote
0 answers
26 views

How to get novalue data of xyz points

I have multibeam and single beam xyz points. I am looking to do the exact same process as Patch over raster A with values from raster B where raster A values are nodata in GDAL as I want to infill the ...
user avatar
0 votes
0 answers
53 views

How to create nodata area in a multiband raster?

I am running QGIS 3.10.11, and I would like to create a nodata area inside a multiband raster. What I have done so far is: Create a polygon on the area that I want to be nodata Clip with GDAL my ...
user avatar
  • 1
1 vote
0 answers
24 views

NoData strips in images downloaded from GEE

I have drawn a rectangle which covers Ireland, and done the cloud removal for every band for Sentinel-2A. Here is my code: var geometry = ee.Geometry.Polygon([ [-10.684816143380427,51.2370374026178], ...
user avatar
1 vote
0 answers
20 views

Reducing NaN results while calculating mean ndvi values using Rasterio

I am calculating ndvi means for each raster in a set of before and after change detection images using rasterio. The code below works but I am getting more than 80% NaN values in either the before or ...
user avatar
  • 162
0 votes
1 answer
107 views

How to set Nodata values from -9999 to value=1 in ArcGIS Pro?

I am trying to export a text file with the tool Raster to ASCII. But in text file the NoData values = -9999. How can I change the Nodata values from -9999 to 1? The text file:
user avatar
1 vote
0 answers
37 views

How can I fix "nodata gap" of landsat multispectral band-set in SCP plugin of QGIS v 3.16?

Two Landsat images of the same date same path but the adjacent row has been atmospherically corrected using DOS (in QGIS) and mosaicked afterward. But this is how I am getting no data value. How can I ...
user avatar
1 vote
1 answer
31 views

How to ignore Nodata value in symbology (stretched) and raster statistics in ArcMap?

I have a raster with its nodata value defined as -9999. however, for its symbology method and statistics, the -9999 is not ignored by ArcMap. How can I make ArcMap acknowledge the nodata value of -...
user avatar
  • 55
4 votes
1 answer
194 views

Rasterizing only the border of a vector polygon

I have a layer of very 3 x 3 m square polygons. I would like to rasterize just the border of the squares, so the interior cells just have 'nodata' values, and you can see layers below it. When I ...
user avatar
  • 491
1 vote
0 answers
17 views

How can I discard rasters that contain exclusively nodata values when creating tiles?

I have a large raster that I want chopped up into tiles. To accomplish this, I click "save as" and check off the "Create VRT" box. I set the dimensions of the output tiles to 40 x ...
user avatar
  • 491
0 votes
0 answers
20 views

Continuously receiving NoData as Raster tool output

I'm running ArcGIS Desktop version 10.7. I'm working with a DEM and DSM, both from the same municipal data source (not prepared by me). I am attempting to do some simple analysis on both of these such ...
user avatar
1 vote
1 answer
37 views

Clipping DEM to bigger shapefile extent in QGIS

I have a polygon shapefile that is bigger in extent than my DEM. I want to clip my raster dem to my shapefile and fill missing space with NoData. I have tried clip raster by mask layer as well as by ...
user avatar
  • 307
0 votes
0 answers
24 views

ArcMap drawing 0-values in raster as blank

I am visualizing a series of rasters with floating point data ranging from -30 to +50. In ArcMap 10.7, I am using a Classified color scheme for symbology that bins the values into 10's. At my desired ...
user avatar
  • 396
1 vote
1 answer
50 views

How to change "No data - -3.40282e+38" in a raster through interpolation using QGIS?

I'm working with QGIS 3.16.4-Hannover, elaborating a DEM 2x2m to produce a soil thickness map of an area of 50km2. After some elaboration (curvature, hydrology analysis, ...) now I have a raster with ...
user avatar
0 votes
2 answers
108 views

Removing NoData values from image in ArcMap

I would like to remove the No Data values of my image in ArcMap. The image has one band. I already tried different ways to do that, but at the end, the No Data values are still in black color. At ...
user avatar
1 vote
2 answers
87 views

NoData values surrounding the masked raster (.tif) after using Extract by Mask (ArcMap)

I do have a NUTS-2 region shapefile as you can see below and a raster (.tif) file that represents the soil erosion (tonnes per hectare per year) derived from the RUSLE2015 model. What I want is to ...
user avatar
1 vote
1 answer
83 views

Removing no data and saving raster file using PyQGIS [closed]

I want to remove the no data values from my raster and save the resulting file. Currently, I am using the method shown below to save the raster without no data values. The issue is that I have to ...
user avatar
  • 323
0 votes
1 answer
133 views

Feather/buffer raster boundary during mosaic in QGIS

I have two rasters I would like to merge and also fill in no data cells along the boundary between the two rasters to create a smooth transition. Some of the cells along the boundary are no data cells,...
user avatar
1 vote
1 answer
56 views

How to make certain part of raster as no data with other overlapping raster?

I have two rasters, one raster contains all the ground features (roads, buildings, Trees etc) and another raster contains only man made features (Roads, buildings etc). I would like to have raster ...
user avatar
  • 21
1 vote
1 answer
29 views

Raster Calculator results in NoData values, ArcMap

I would like to compute the expression displayed in the image with the Raster Calculator tool by using the slope (degrees) derived from the SRTM 30m DEM data. However, it results in NoData values for ...
user avatar
1 vote
1 answer
54 views

Using gdal to convert SInt16 DEM to UInt16 DEM, while setting nodata value to 0xFFFF

Can this be done on the command line? I'm working with the Mars MOLA DEM GeoTIFF. Unfortunately, my framework can't deal with signed values, so it gets really confused when it looks at the data. I ...
user avatar
  • 205
1 vote
1 answer
624 views

GDAL: Change no-data value of GeoTIFF without having to recreate the whole GeoTIFF

I've got a problem with some big GeoTIFFs, that they got no-data value -128, being unsigned. And because of that I can't upload them to GEE, as I am getting an error: Error: No data value -128.0 ...
user avatar
0 votes
1 answer
39 views

What is the fastest way to create a polygon of the part of PostGIS raster that is not filled with NoData values?

I have a raster table in PostGIS. For each row, I want to create a polygon that represents the part of the raster that is filled with data (not NODATA). I found out that ST_Polygon(rast) does the job. ...
user avatar
  • 525
1 vote
4 answers
1k views

Replacing nodata values by a constant using GDAL CLI tools

I have a raster DEM file containing 1 band: f='DEM.tif' It has some NODATA values which I want to replace by a true, actual constant value (i.e. no more nodata stuff), let's say, zero. Here are all ...
user avatar
  • 6,698
0 votes
0 answers
30 views

Confused about NoData values

What exactly is NoData? Since you can set NoData. Is it just a rendering after reading the data and finding areas where there literally is no data but there should be? For example a raster is ...
user avatar
0 votes
1 answer
261 views

QGIS set raster No-Data value

I have a raster layer that resulted from a series of calculations with raster calculator (simple subtraction of two raster layers) gdal_translate -ot Int16 -of GTiff ... (convert to Int16, as the ...
user avatar
  • 1,221
3 votes
0 answers
37 views

ArcPy raster Reclassify not covering all cells in raster

I am trying to use Reclassify on 240 rasters using ArcPy within the Python window in ArcMap 10.7. My original raster has continuous decimal probabilities ranging from 0 to 1, and my goal is to change ...
user avatar
  • 396
3 votes
1 answer
225 views

Add a nodata mask or alpha band to read-only image?

How to add a nodata mask or alpha channel to a source image that is read-only or should be treated as such? For example I have this satellite image that uses jpeg compression in a geotiff. Since the ...
user avatar
  • 27.5k
2 votes
0 answers
54 views

Is it possible (and how) to mask NoData values using Scikit-learn PCA?

I have to carry out a Principal Component Analysis (sklearn.decomposition.PCA) on a dataset composed of several images. Some of these images have very large gaps due to the removal of clouds. Is there ...
user avatar
  • 61
1 vote
0 answers
104 views

Removing no data values from multiple raster files in PyQGIS?

I have 180 raster files, which have values in the range of 100 - 900. However, there are no data values in each file designated as 32766. Sometimes, it varies around 32700. I want to write a code that ...
user avatar
  • 323
5 votes
2 answers
283 views

Perform the sum between two raster, one of which has a value of "nodata" or "null" in QGIS

I have two raster (raster1 and raster2) from the same area. I would like to make the sum between the two (raster3 = raster1 + raster2) in QGIS, so that the Digital Number (DN) of raster 3 is the sum ...
user avatar
-1 votes
1 answer
35 views

Change pixel values of the open Sea to noData values

I want to calculate, which land areas of my elevation raster data set are under a specific elevation height. The open sea with pixel values of 0 should not be included in the analysis. I want to ...
user avatar
1 vote
1 answer
237 views

How can I change the "NoData" value for a raster column in PostGIS?

I have a raster column with "NoData" value of 3.40282346638529e+038 in PostGIS. I want to change the NoData value to 100. I used the following code: SELECT ST_Reclass(ukc,1,'3....
user avatar
  • 525
0 votes
0 answers
51 views

No Data holes with Mapfile / Python

I am working with Python with GDAL and Mapfile and I used the following cmd line in order to remove NoData: cmd = ["gdal_edit.py", src_img , "-unsetnodata"] And then in my ...
user avatar
  • 1
1 vote
0 answers
78 views

Calculate total area of both adjacent and contiguous raster cells within a radial distance around a polygon's centroid

I have a raster containing grid-cell values of either 1 or no data, NA, representing used- or unused-habitat types, respectively. Using R's raster package, I want to calculate the total area (in ...
user avatar
  • 11
1 vote
0 answers
211 views

Find NODATA values in TIF files using Python or QGIS [closed]

I have got about 7000 tifs in a directory. They all have the same defined NODATA value but not all of them contain cells with NODATA. How to tell which ones have NODATA cells programmatically? Python ...
user avatar
  • 1,346

1
2 3 4 5