Questions tagged [nodata]
"NoData" is a term for null values in raster datasets.
259
questions
1
vote
1
answer
29
views
Setting nodata from no polygon
I am trying to convert polygon to raster. The polygon class are from 0 to 4. There are many spot that no polygon. It means, I don't create polygon. I try use QGIS, using Raster > Conversion > ...
2
votes
1
answer
42
views
How to set NoData value to isolated pixels in Python
To reduce noise in a raster file, I aim to eliminate isolated pixels, those surrounded by NoData values in all eight neighboring positions.
I have this code, but it is not removing those isolated ...
0
votes
0
answers
22
views
Query: Raster alignment in QGIS (pixels without data)
I would like to know if when aligning rasters of different resolutions in QGIS if it is possible that some areas that do not have data can somehow be modified or interpreted to give an explanation ...
1
vote
0
answers
15
views
How do I batch-assign NoData values?
I have a number of rasters I need to mosaic together. The areas with data are within a rectangular "nan" envelope. The "nan" envelopes of different rasters overlap each other. No ...
0
votes
0
answers
26
views
How to change the nodata value in mosaic
When I add a raster to a mosaic dataset, the NoData value becomes black. How to change the NoData value back to transparent? I want to create a cache file and upload it to ArcGIS Online. If there's ...
2
votes
0
answers
75
views
Removing black background from the raster which has actual data pixels with value 0 in QGIS
I have a raster with the area of interest and a black background around it. The problem is I can't remove that area by putting 0 as additional nodata, since it's a DEM layer which has 0m elevations as ...
3
votes
1
answer
39
views
Reset the NODATA to negative value error
I have a requirement for converting NODATA to value -3 with my floating point data. I have tried to reset NODATA by using Raster Calculator with the formula of Con(IsNull("tif"),-3,"tif&...
0
votes
0
answers
15
views
Sentinel2 Level2A Tile Coordinates are wrong, only simple box, doesn't represent no-data shape
For some Sentinel2 L2A tiles, the geometry/coordinate meta data is a simple box and doesn't describe the actual bounds of the tile, for example tile ...
0
votes
1
answer
127
views
Problem with NaN values in a zonal_statistic Python script
I want to create a script to extract zonal statistics from all bands of tif files in a directory using each feature contained in a shapefile.
I use the nodata value of the image to avoid using those ...
1
vote
2
answers
196
views
Removing no-data from raster images
I have chunks of rasters that I need to remove the no-data values so I can visualize them together and that they fit and do not overlap. I was using gdal_translate command
for %i in (*.tif) do ...
3
votes
1
answer
103
views
Creating a new raster showing values based on how many rasters overlap
Intro to GIS student here.
Hopefully I can articulate this issue clearly:
Currently, I have six raster layers that I am trying to create a new layer out of. I think the best way to describe the new ...
0
votes
0
answers
22
views
Raster values NoData category not recognized as factor by caret random forest model
I want to predict a Random Forest model onto the values from a raster stack of 20 different variables, some of which are categorical and treated as factors in the model. I uses values() to extract ...
2
votes
1
answer
447
views
Numpy is not setting properly nan values: arr[arr== 0] = np.nan
I am creating a script to normalize a satellite scene.
My input image is of type float32, and no NoData value is assigned. However, during the normalization, I want to avoid using pixels with a value ...
0
votes
0
answers
59
views
How to get mask with rasterio mask + vrt containing some raster's with alpha band, most without
I have a bunch of geotiff's that are jpeg compressed; so they are type Byte with values from 0-255.
Some of these geotiff's have regions of nodata, in which case the geotiffs use an alpha band to ...
1
vote
1
answer
85
views
Crop raster to area with data pixel perfectly
I have a raster file with some data pixels around the middle and a huge amount of NODATA padding everywhere around it.
How can I crop the raster so that the extent aligns with the outermost non-NODATA ...
0
votes
1
answer
94
views
How to avoid the negative values in Raster extraction [ example -32767] in QGIS
I 'am trying get a raster values as xyz format for ground terrain analysis using QGIS software,
After extracting raster data,few cells are showing -32767 values, how to get rid of these negative ...
5
votes
2
answers
408
views
NoData masks in QGIS
How can I process an existing raster in QGIS to get a mask showing all nodata cells. I want a raster with value 1 in each cell that has valid data and 0 in each cell with a nodata value.
I intend to ...
2
votes
2
answers
125
views
Multiply two rasters with condition
I have two rasters that I want to multiply in QGIS with raster calculator, but they both have also cells with 'no data'.
If I multiply simply raster1 by raster2, the result of the multiplication ...
0
votes
0
answers
48
views
Excluding NoData zones in zonal statistics as table in ArcGIS Pro
I'm trying to calculate mean values of a raster within buffer zones. In the zonal statistics as table tool window, I unchecked 'Ignore NoData in Calculations' so that there is no mean calculated for ...
0
votes
2
answers
69
views
Why doesn't r.null convert -3.4e+38 to nodata?
I have a raster with nodata values of 3.4028e+38. I want to convert the nodata to be -32768, so it is consistent with the nodata values of some other layers. I found a thread on here that indicated r....
1
vote
1
answer
75
views
Python lidar package dealing with NoData values
I am attempting to use the python lidar package function lidar.ExtractSinks(). I have a raster dataset that looks like the following.
Not a very useful image, but it gets the point across that I am ...
0
votes
0
answers
74
views
NoData values show up as values in ArcGIS Online map
I have a raster layer that I want to host as a web map and then host on a Arc Online Web Application. For some reason, my NoData values that appear transparent on ArcGIS Pro are showing up as a value ...
4
votes
1
answer
219
views
QGIS zonal statistics only non zero values
I have a raster layer and a polygon layer. The raster layer has values between 0 and 600. I want to calculate the average of all values above 0 within each polygon.
The only solution I came up with so ...
0
votes
0
answers
28
views
Faster method to not consider NaN during RF classification?
To classify the pixels of a Sentinel-2 image I am using a Random Forest model.
Firstly, I am reading and stacking bands and indices pré-calculated from Sentinel-2 data (19 rasters in total with size ...
3
votes
1
answer
59
views
Fixing errors in old DTM in QGIS
I'm currently working on fixing some errors in some old DTMs.
The issue is there are pixels with a value of "-1.4013e-45" which are all over the rasters. I'm looking for a way to remove ...
0
votes
1
answer
208
views
rasterio.fill.fillnodata doesn't work as expected
I have a DEM of a lake bottom, that contains a few holes (nodata) which I'd like to fill. For that purpose i'm using rasterio's fillnodata with a mask. Unfortunatly, I don't get the results I am ...
0
votes
1
answer
157
views
Convert nodata values to 'nan' in QGIS
I have a raster layer that I want to use in a software program. The program requires nodata values to be 'nan', rather than a number. Currently the no data value is 1,000,000,000. (I'm not sure why ...
0
votes
0
answers
127
views
NoData fill QGIS (alternative to nibble tool in ArcGIS)
I have two raster layers - one is a mastergrid, the other shows slope. I want to 'expand' my slope raster so that it covers the same extent as the mastergrid by in some way interpolating the 'missing' ...
0
votes
0
answers
15
views
How do I extend a raster layer distance while maintaining the exact cell size and position of the original layer within it?
I have a raster layer that is currently 83x84 pixels wide, but the pixels have a pretty weird and specific size: 0.002083333301204805168,-0.002083333297619031996. I'd like to expand this layer a lot ...
4
votes
1
answer
146
views
How can I set raster outliers in QGIS to nodata?
for further analysis I want to execlude raster outliers (mostly single pixel values).
Therefore, how can I set global raster outliers (e.g., mean +- 2*sd) to nodata value in QGIS?
1
vote
1
answer
357
views
Filling raster gaps with other raster, but maintaining all original data cells?
I have a normalised dataset of Europe that has significant gaps in the UK and Scandinavia (raster1). The nodata value for raster1 is 2.54.
To fill those gaps I want to use another normalised European ...
0
votes
1
answer
73
views
How to uncheck no data value option in Python
I have been using QGIS to perform raster calculations, which have required me to uncheck the no data value box.
I am now trying to accomplish all these steps in Python, and was wondering does anyone ...
1
vote
0
answers
208
views
How to clip a raster with polygon with no "NoData" pixel outside of polygon
I have a polygon with this shape:
The polygon is diagonal.
And I have a raster that covers all of pixels in the minimum bounding rectangle (MBR) of the polygon.
I used QGIS tool "Clip Raster by ...
0
votes
1
answer
208
views
Change missing areas value(0) to other in Google Dynamic World Landcover Yearly Mode Mosaic to not mix with water class (also 0)
When I create a yearly mode mosaic using Google Dynamic World Landcover Data, the areas with missing landcover values especially in high Himalayan regions(perhaps due to the 35% cloud threshold) are ...
1
vote
1
answer
286
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)...
4
votes
1
answer
352
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 ...
1
vote
0
answers
450
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 ...
0
votes
1
answer
110
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, ...
2
votes
1
answer
460
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 ...
1
vote
1
answer
242
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.
1
vote
0
answers
44
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 ...
2
votes
2
answers
190
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 ...
2
votes
0
answers
172
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 ...
1
vote
0
answers
213
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 ...
1
vote
2
answers
154
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 ...
1
vote
0
answers
31
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 ...
2
votes
0
answers
202
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 ...
2
votes
1
answer
278
views
Merge rasters with different NoData 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 NoData values. I am using gdal_merge.py to this and I can use the -n option to ...
2
votes
2
answers
349
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 ...
1
vote
0
answers
35
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 ...