Questions tagged [band]

A layer in a raster dataset.

Filter by
Sorted by
Tagged with
2
votes
1answer
80 views

Why does GDAL's 'GetDescription' function return an empty string?

I have used GDAL to add descriptions to my raster band. I have verified in QGIS that the bands are indeed correctly named. I use the following function for adding names as band descriptions, which has ...
2
votes
2answers
39 views

Hiding raster bands/palette in Layers panel in QGIS

I often have to load a lot of rasters at once into QGIS. Unfortunately, most of them appear with a "Legend" wich shows their bands (or palette for single band rasters). This takes a lot of ...
3
votes
1answer
55 views

Calculate mean for each band in raster

I'd like to re-visit this answer given by Aaron that uses gdal and numpy to calculate the mean value of each band. Issue 1: With large TIFFs ~ 5-15GB, I am running into a memory error. I am wondering ...
1
vote
2answers
35 views

Hiding pixel of one layer based on pixel value of other layer

I have a raster layer that contains multiple bands. I want to visualize one band in particular, but only the pixels that have a value of 0.6 or higher in another band of the same raster layer should ...
0
votes
0answers
19 views

Applying indexes to level 2A Sentinel products

I am using SNAP's Band Maths tool to calculate the following indexes: FDI (Floating Debris Index) PI (Plastic Index) NDVI (Normalized Difference Vegetation Index) FAI (Floating Algae Index) FAI uses ...
0
votes
0answers
50 views

Subtracting each image in two image collections in Google Earh Engine

I have two image collections with 14 images each. I need to subtract the first image of the first collection to the first image of the second collection, the second image of the first collection to ...
1
vote
1answer
537 views

Exporting single band from multiband raster in QGIS

In QGIS 3.16.8 I have a raster image in TIFF format which has 17 bands. I need to extract different band combinations as separate image files. Some of the combinations consist of images with single ...
3
votes
1answer
90 views

Make multiple values of a raster layer transparent

I have a raster image with a single band with 0 to 255 values styled with a palette of colors. One of the values/colors I want to make transparent is 123, so I added it in the Additional no data value ...
0
votes
1answer
34 views

Bad image output in QGIS [closed]

I have created an Orthomosaic .tiff file from multi-spectral images using Agisoft Metashape. Now that I am trying to analyze the image using QGIS, I get a bad image, and I do not know how to fix it. ...
0
votes
0answers
51 views

Band ratio with Euler's number in Google Earth Engine

I've band ratio with exponential equation and Euler's number band_ratio = (0,0039e)^(2,4952*(B2/B4)) Can anyone write it in Google Earth Engine format? Or just input the Euler's number?
0
votes
1answer
39 views

How to make histogram of NIR band bimodal enough to differentiate water from land in GEE?

I am interested to map water bodies in a desert from swir band of sentinel 2. How I can make a bimodal histogram in GEE . I have one reference water body in scene. Is it possible to do the same in ...
1
vote
0answers
30 views

Working with just one band to get a new map

I need to create a new image using a dataset that have just one band ranging from 0 to 30. The new image that I need must have just 2 pixels value (0, 1) with 0 being deforested between 2010 - 2020 ...
1
vote
1answer
43 views

Band Names in Google Earth Engine - Modis LST data

I am working with some modis LST data, and am running into the following problem: I am running two functions on the data, which I will need to combine later. For that reason, the band names need to be ...
1
vote
1answer
60 views

Band value selection in Google Earth Engine

I am working on Sentinel-5p NO2 data in Google Earth Engine. The band value of 'NO2_column_number_density' starts from negative numbers i.e.(Low : -1.34484e-05) but I need low value to be start from 0....
0
votes
0answers
12 views

3-band RGB raster with 0 value to null -ArcGIS Pro

I've got a 3-band RGB raster layer where I'd like to convert the value of a pixel to null if b1, b2 and b3 are 0. Any idea how this can be done in ArcGIS Pro?
0
votes
0answers
27 views

How is Band 8 (panchromatic) of Landsat connected to Surface Reflection/Albedo?

I want to work with the surface reflection/Albedo of Landsat 8 and got told to use B8 which is the panchromatic. It catches all the visible light so it makes sense to me that it is connected but I ...
1
vote
1answer
199 views

Subtracting image value from corresponding month from image collection in Google Earth Engine

I have extracted sea surface temperature(SST) images from Google Earth Engine for a specific time period and region var start = ee.Date(2012-01-01); var end = ee.Date(start).advance(1,'month'); ...
1
vote
1answer
133 views

Transfer feature details from WMS to raster file

I need to export a WMS Map in a raster (QGIS) as I would like to do a zonal statistic after I need the WMS raster values. I can see them in the Identify results panel. The WMS has single Band color ...
1
vote
2answers
785 views

Image dimensions in Google Earth Engine

How can one get image (band) width and height on the server side? On the user side you do it with image.getInfo().bands[0].dimensions, following Extracting information from Google Earth Engine image ...
1
vote
1answer
343 views

Google Earth Engine: set band as property without reducing

I have a function that takes an ImageCollection and sets a mean value as a property for another ImageCollection. var DHW = HS_SSTA_7d.map(function(im) { var res = im.reduceRegion(...
1
vote
1answer
180 views

Performing complicated calculation on bands in Google Earth Engine

I'm trying to perform ANIR index calculation on my image collection. I'm having trouble writing the code in the right way. ANIR index formula is : cos^-1[((a^2)+(b^2)+(c^2))/(2*a*b)] (a2, b2 and c1, ...
0
votes
1answer
65 views

Getting band names using ArcPy in ArcGIS Desktop 10.x

How do I get a list of band names using ArcPy in ArcGIS Desktop 10.x? In ArcGIS Pro, I can use Raster('myRaster').bandNames, but this is not an option in ArcGIS 10.x and I cannot seem to figure out ...
0
votes
1answer
35 views

Band Compositing

This is probably a trivial question, but is it possible to create band composites using bands of different resolutions (10m, and 20m)? I tried that and exported the resulting rasters to JPEG and it ...
1
vote
0answers
37 views

Rasterio doesn't display the differnet bands of image

I have one raster which has three different bands. The two first bands look like this (in qgis): and the third band looks like this ( missing values in some places: The three bands sit on top of ...
1
vote
2answers
174 views

Batch NDVI calculation with PyQGIS

I'm trying to run an NDVI calculation on a set of raster layers. The approach is to adapt this QGIS 2.x code to run in GQIS 3.x. A far as I'm aware it's the "legendInterface" that's changed, ...
2
votes
1answer
144 views

FeatureCollection (Error) Image.reduceRegions: Group input must come after weighted inputs

I was trying to find the area of each block by category in the band. There is one band and it has 18 categories. The feature collection is a collection of blocks described uniquely by code_2011. var ...
0
votes
1answer
759 views

Rename images of ImageCollection to add band name at the end on Google Earth Engine

Helllo everyone, I am trying to batch download an image collection using Rodrigo E. Principe's tool but I want to download each band seperately by image.select function. When I download a single band, ...
0
votes
0answers
34 views

How build NDVI based on multi-bands on different files (one band - one file) in geoserver?

I am using a geoserver. I have several bands (b1, b2, b3..etc) I need to build NDVI based on them, for this I need to have access to each of the bands, but since they are in separate files, when I ...
1
vote
0answers
50 views

Accessing bands of a NetCDF by datetime in Python

I want to write each band as a separate file (after gdal.Translate operation). So I can directly address to each band by datetime, not by a number? The second way, more sophisticated is to get all ...
0
votes
1answer
84 views

How to read a RasterBand as Dataset to use in gdal.Translate as source?

I need to translate each band of netcdf file to other format. How can I get raster.GetRasterBand() not as a band object, but as a dataset ot otherwise to use it in gdal.Translate(dst,src) as src?
0
votes
2answers
223 views

Accessing Sentinel-2 L2A Scene Classification Layer (SCL) with GDAL

I have a Sentinel-2 L2A and was able to access it with: In[1]: image = gdal.Open(s2l2a_image.zip) subdatasets = image.GetSubdatasets() Out[1]: [('SENTINEL2_L2A:/vsizip/s2l2a_image.zip/...
1
vote
1answer
401 views

Extracting band names of RasterLayer in R

I have a RasterLayer with 500 bands in R (I exported the raster as a single image in Google Earth Engine, which was originally an ImageCollection). I know you can extract the band you want to use by ...
1
vote
1answer
64 views

Band math doesn't work in GEE

I'm trying to calculate WDVI index but for some reason the computation failes and I don't find my mistake. The function works but all the pixels are 0. var addWDVI = function(image) { var red=image....
1
vote
1answer
58 views

Using multiple band combinations when creating polygons for supervised classification

I am very new to remote sensing analysis. I am conducting a supervised classification in Google Earth Engine. I want to verify that as I develop my training samples that it is ok for me to toggle ...
2
votes
2answers
92 views

Add two bands to image gives the bands the same name

I have a sentinel -1 image collection and I have a function that suppose to use focal median in order to apply speckle correction. Each image has 2 bands: VV and VH and the function I have suppose to ...
1
vote
1answer
66 views

Calculate number of pixels and more variables by classes in QGIS

I have one band raster that has 3 possible values: 1,2 or 3. I want to calculate for this raster different variables, for example how many pixels we have for each values and also to do some band math ...
2
votes
1answer
199 views

How remove alpha band from *.sid

I've got a ImageMosaic (GeoServer) created from 4 band *.sid files. Images become transparent around the outer edges of *.sid files . When 4-th band is removed with gdal_translate -b 1 -b 2 -b 3 -of /...
0
votes
0answers
72 views

Exported GEE one band raster shows three bands in ArcGIS

I made a raster layer on google earth engine that only contain pixels have value higher than SAVI mean+1SD. I exported the raster layer as GeoTIFF and specified the raster as green colour. When I ...
1
vote
1answer
42 views

Error with select one band in image

I have code that suppose to calculte NDVI and then to cound the number of pixels in the raster that are higher than 0.3 There is part of the code where there is function that suppose to select the ...
0
votes
2answers
1k views

Processing images with file type .ntf [closed]

I am use to posting in Stack Overflow, but it seems this question is best geared towards the GIS Stack Exchange. I need to understand the .ntf file types for satellite images. I am in grad school and ...
3
votes
2answers
551 views

Merging two Landsat TIFF file of same band in QGIS 3.4

I've been wanting to merge two TIFF files of same band (this case it will be B1 in Landsat). I have followed tutorials which I came across online, but none of them seems to work. Generally, raster > ...
-1
votes
1answer
241 views

Add an NDVI band to NAIP imagery and then chart it (using Google Earth Engine)

I am attempting to calculate NDVI from NAIP imagery, add the NDVI band as an additional band to the NAIP imagery and then chart it. I am easily able to calculate NDVI from NAIP imagery with the below ...
2
votes
0answers
77 views

Querying / seting up PostGIS (raster) table to efficiently get all bands at once?

I have created a PostGIS raster table from raster2psql. I have use cases where I might have bands sizes of 114 to 670 bands inside a raster (The number is consistent across a given dataset.) My ...
0
votes
1answer
355 views

Batch changing of Raster Bands of Multiple Rasters in ArcGIS Desktop?

I have a ton of rasters in my ArcGIS project, each with 4 bands. At the moment, I am changing the raster bands, one by one, for each file: Red becomes Band 2 Green becomes Band 1 And I am setting ...
1
vote
1answer
2k views

Google Earth Engine band did not match any bands errord

According to the dataset, there should be a band named: total_precipitation_surface. However, when I try to get data from this band I get: > Collection.first: Error in map(ID=2019061000F000): ...
1
vote
0answers
44 views

Earth Engine Image Collection Reduction Glitch

I am having a visual glitch when adding an image as a band to the map. The glitch consists of a vertical line which is not rendered at all. The more I zoom out of the map, the more this line increases ...
2
votes
1answer
238 views

QGIS 3.4 Modeler: Select a band of a raster layer for processing

As model input data I select a raster stack with three bands. The first processing tool just needs specific bands of this stack which I like to select in the input dialog. I create a 'Raster Layer' ...
3
votes
1answer
3k views

Finding all the values within a band in google earth engine

I have an image composite which includes a day of year band. When I display the band using Map.addLayer and stretch by 100% in the Visualization Parameters I can see that the range of values is 151-...
0
votes
1answer
73 views

Exporting band data of a large number of points

I have a question regarding exporting a data from GEE. I am new to coding and GEE. What I would like to achieve is export pixel band data of points a have managed to upload using Fusion Table. Is is ...
2
votes
1answer
565 views

NDVI index based on QA bands for MCD43A4 , in GEE

I want to calculate the NDVI index based on the MODIS/006/MCD43A4 collection and based on quality bands, but as a new GEE user I have no idea If I am on the rght way to do this. So far I have the ...