Questions tagged [nodata]

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

Filter by
Sorted by
Tagged with
3
votes
0answers
21 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 ...
3
votes
1answer
25 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 ...
1
vote
0answers
13 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 ...
0
votes
0answers
13 views

Changing hasNoDataValue from TRUE to FALSE by using rgdal

I was wondering if there is a way in R to change hasNoDataValue from TRUE to FALSE. Basically I have a raster that, when using rgdal::GDALinfo('myraster.tif'), I can see that hasNoDataValue" = ...
1
vote
0answers
51 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 ...
5
votes
2answers
79 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 ...
0
votes
0answers
36 views

I have a problem merging rasters

I have about 50 JPEG rasters. I need to merge them into one 8bit TIFF and cut by a shape file (border) without NoData values. When I Clip the merged raster in QGIS it makes holes in it like in cheese. ...
-1
votes
1answer
25 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 ...
1
vote
1answer
48 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....
0
votes
0answers
36 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 ...
1
vote
0answers
34 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 ...
1
vote
0answers
64 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 ...
1
vote
0answers
106 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
95 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
30 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
45 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
27 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
87 views

gdal_translate of Tiff to gpkg with only one band

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 ...
1
vote
1answer
100 views

Cannot get transparent tiles when using gdal2tiles on a GeoTIFF

I have this GeoTIFF generated through UAV mapping. It has 4 bands: red, green, blue and alpha. I've been trying to use gdal2tiles to use this geotiff as a basemap on a Leaflet project. The thing is I ...
0
votes
0answers
36 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
75 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
1answer
21 views

How do I find the NoData value of a TIFF on a Windows PC?

How do I find the nodata value of a tiff file on a Windows PC? I've seen answers for Unix based systems here, but not for Windows.
-1
votes
1answer
87 views

Change nodata value from -99999 to -9999 [closed]

I read many threads here to change the nodata value of my raster to desired value - in my case from -99999 to -9999. It seems I can not use spider or anything similliar as I do not have admin rights. ...
0
votes
0answers
565 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
269 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 ...
1
vote
1answer
119 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 (...
2
votes
1answer
63 views

Can satellite data have different locations of nodata values in different channels

I have some Sentinel satellite imagery. And I have noticed that it looks like there are different locations of nodata values in each channel's mask. (I read in the tif file with 3 channels in via the ...
1
vote
1answer
56 views

Arcpy ArcMap mosaic use different raster whenever nodata value

I am using ArcPy in ArcMap and have multiple Rasters (Landsat imagery) taken from a given area (Image 1). My final goal is to create a cloud free image of the complete area. Since the Rasters ...
0
votes
0answers
182 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(...
1
vote
0answers
36 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
2answers
556 views

Merge overlapping rasters with ignoring no data values QGIS3

I thought this would be extremely basic task but obviously it's not. In QGIS3 GDAL Merge (GUI), I am trying to merge two rasters which overlap and each of them has a different distribution of nodata ...
0
votes
3answers
574 views

Changing a no value data from 0 to another value with python

I am using satellite data and by default it has a nodata value of 0 for each band. This is fine except for when I'm making NDVIs where 0 is a real value we need to include and I don't want it to be ...
1
vote
1answer
73 views

How to exclude/eliminate invalid areas (such as NoData, cloud, water, etc) from raster so that it does not effect the accuracy assessment?

I have two classified raster (snow cover % 10-100) one is prepared from coarse resolution and another is from finer resolution. I am doing accuracy assessment and matrix calculation of snow cover %. ...
1
vote
0answers
37 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
1answer
432 views

QGIS Zonal Statistics and No_data

I think QGIS Zonal Statistics algorithm does not handle No_data values correctly. The expected behaviour is that if I set some raster cells to No_data (for example with the method suggested here, ...
1
vote
0answers
61 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
37 views

How to access the no data value of a raster with GDAL? [duplicate]

Is there a similar way as in ArcPy import arcpy desc=arcpy.Describe('rasterName') print desc.noDataValue to access the no data value using GDAL?
2
votes
1answer
238 views

R.Series in QGIS 3.14.3 GRASS 7.6.1 returning no data value outputs only [closed]

I'm using QGIS 3.14.3 with GRASS 7.6.1 and trying to add together the values for 3 raster layers using r.series as I'm told this handles no data values better than raster calculator. Please see log ...
2
votes
1answer
103 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 ...
2
votes
1answer
118 views

Merging raster without add nodata value

I was trying to merge 2 DEM raster using QGIS raster - merge. Is there any way to not add nodata to the merged raster?
4
votes
1answer
511 views

Changing nodata pixels of -3.40282347e+38 to a different number in QGIS

I have a raster file with two different nodata values: -32768 and -3.40282347e+38. This happened because I am using -32768 as my nodata value, and the georeferencer in QGIS adds nodata pixels as -3....
2
votes
1answer
94 views

How to reclass zero values for an aspect raster layer

reclass in QGIS 3.4.11 to reclassify a raster file of aspect values. All cells reclass apart from zero values which now show as 'no data'. Text file is as follows: 0 thru 23 = 2 23 thru 68 = 2 68 ...
1
vote
1answer
373 views

gdalwarp ignoring multiple srcnodata values?

I'm trying to resample an in image in the MODIS sinusoidal projection. There are several fill/ NoData values that I want to exclude in the resampling. The data are unsigned 16-bit integer values. A ...
2
votes
1answer
272 views

How to check for the nodata cells in a raster image

Please let me know how to check for the locations of nodata cells in raster images in ArcMap. The raster images has no attribute table.
2
votes
0answers
28 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 ...
0
votes
0answers
210 views

Determining if Raster and Polygon intersect using ArcPy?

I have a folder of rasters (.tif) and I want to determine which rasters intersect a polygon. The rasters are single band with a value of "1" while the rest of the extent has a no data value (coloured ...
1
vote
0answers
186 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 ...
5
votes
2answers
774 views

QGIS-3 does not recognize “-3.40282e+38” float raster values as NoData

I have DEMs with "-3.40282e+38" values that are supposed to be the NoData values. However, if the rasters are loaded into QGIS (3.4.11), the value can not get assigned with "add additional no data ...
0
votes
1answer
79 views

SetNull function problem

I am trying to calculate a sum for a set of raster but before I need to disregard No Data values (that are equal to -9999 for my rasters) by using SetNull function. It gives an error. What could be ...
1
vote
0answers
43 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 ...