Questions tagged [nodata]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
14 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
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 ...
2
votes
2answers
2k views

Raster clipping without producing no data values

I'm trying to clip a raster in ArcMap using a polygon, and I'm wondering if there's any way to have the resulting raster not include any "no data" values (I apologize for the poor grammar). My process ...
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 ...
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 (...
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
1answer
59 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 ...
7
votes
10answers
29k views

Redefining nodata value into zero in QGIS?

I have an image which i cliped with an AOI polygon. The contour area was set to pixel value = 0 and I have a nodata value of -32768. I want to redefine the nodata value into zero. I used to do this ...
0
votes
0answers
19 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
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 ...
1
vote
1answer
42 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
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 ...
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 ...
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
1answer
16 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
47 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
92 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
52 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
71 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
47 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
36 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
68 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
2answers
144 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 ...
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 ...
0
votes
3answers
92 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
59 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
1answer
205 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
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
43 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
30 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
117 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 ...
1
vote
1answer
62 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
291 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....
9
votes
2answers
2k 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 +...
0
votes
0answers
36 views

Error when attempting to publish after adding store (cannot create mosaic)

Environment: GeoServer: 2.16.0 Tomcat: 8.5 Java: Private Build: 1.8.0_222 (OpenJDK 64-Bit Server VM) When adding a store through the GeoServer web interface, I then click the 'Publish' link. I then ...
1
vote
1answer
171 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 ...
13
votes
3answers
9k views

Change null values raster values to 0 in QGIS?

I need help... I'm having problems with QGIS. I have some rasters that appear to have null values, even though I reclassified them to obtain a Boolean raster :( How can I change the NULL values to 0?...
2
votes
1answer
67 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 ...
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
1answer
116 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.
5
votes
2answers
433 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 ...
1
vote
1answer
457 views

Google Earth Engine - how to set masked pixels to 'noData'

Lets say I have a region of mangrove forests (from a classified Landsat image) and I mask out all non mangrove pixels. I view this as a layer on the map and it shows the mangrove forests on the map ...
0
votes
0answers
35 views

Inconsistent pixel range clipped 16-bit imagery to 8-bit

I'm attempting to convert 16 clipped/georeferenced imagery to 8-bit using the CopyRaster function in ArcPy but I'm having trouble assigning NODATA values. I have 16-bit imagery that has 3/4 bands (...
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 ...
0
votes
0answers
16 views

No Data Value through Pixel Inspector in ArcMap

I have a raster that represents temperature on a global scale derived from satellite data. Initially it had pixels in the ocean assigned -9999. After I used SetNull tool to eliminate them they show up ...
0
votes
0answers
165 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 ...
0
votes
0answers
95 views

Maxent “NO DATA_value” Error

I am trying to run Maxent and I have processed all layers and converted them into .asc files (all layers have the same resolution and extent), there are no 'No Data' areas within the projection extent ...
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 ...
0
votes
0answers
28 views

Black border around JPEG with world file at diferent zoom levels QGIS

I have noticed in the QGIS view port my georeferenced JPEG with a world file has black edges only above a certain zoom level. I have already specified 0 as the no data value. If I zoom in close to the ...