Skip to main content
27 votes
Accepted

Why does my rainbow airplane stripes appearing on Sentinel 2 image?

A few months ago I wrote a technical blog post (Planespotting) on intra-detector parallax effects in Sentinel-2 imagery, which can cause aircraft contrails to appear as rainbow stripes. The post also ...
Tyler Erickson's user avatar
16 votes

Using field-to-RGB mapping for symbology in QGIS?

On later version of QGIS is easier to perform the requested task. Just open Layer Properties, Style Tab, and make sure Single Symbol is selected. Click the box next to the "Fill" color and choose "...
zemigl's user avatar
  • 321
8 votes

Raw Sentinel 2 jp2 to RGB geotiff

You can simply use the TCI.jp2 file that its included in the SAFE.zip files. Note that these files are not available in S2 files before October 2016 Alternatively you can convert the bands using GDAL:...
pLumo's user avatar
  • 6,499
8 votes
Accepted

Raw Sentinel 2 jp2 to RGB geotiff

There are 2 parts of the problem. The first is that you want to convert from 16 bits to 8bit, and the -scale option of gdal_translate does it, as mentioned in the previous answer. -scale ...
radouxju's user avatar
  • 49.7k
7 votes
Accepted

RGB TIFF goes black when zoomed out in QGIS?

This error is because you're building pyramids internally (default) on a GeoTIFF file which is not a big TIFF. The pyramids are being appended to the existing file which makes the resultant file ...
Michael Stimson's user avatar
6 votes
Accepted

How to create an rgb GeoTIFF file raster from bands using the GDAL python module?

You can set the colour interpretation for most rasters using Band.SetColorInterpretation, i.e outband.SetColorInterpretation(gdal.GCI_RedBand) However, this is only understood by GDAL based ...
user2856's user avatar
  • 66.7k
5 votes

Raw Sentinel 2 jp2 to RGB geotiff

If you are looking for a solution as the one you linked in the question you should follow and adjust the Landsat 8 processing shell skript that is provided for download in the tutorial. Particularly, ...
ben's user avatar
  • 129
5 votes
Accepted

get rgb images from sentinel-2 using gdal

You need to add the -separate option in order to place each input file into a separate band and (optionally) the -co PHOTOMETRIC=RGB creation option to force the photometric interpretation (to avoid e....
Antonio Falciano's user avatar
5 votes
Accepted

Get colortable from three-band RGB raster (brick) with R

There's a function in rgdal for this SGDF2PCT, so here I coerce to SpatialGridDataFrame, build the colour table and rebuild the raster. Note that indexing in raster is assuming [0, 255]. Control ...
mdsumner's user avatar
  • 8,196
4 votes
Accepted

Extracting RGB values from aerial photo and assigning to LAS file with FME?

Use the PointCloudOnRasterComponentSetter transformer in FME. Check out this tutorial: https://knowledge.safe.com/articles/1096/color-and-point-clouds.html
HelpfulPenguin's user avatar
4 votes

Merge RGB band using python

You need to convert each channel into a luminosity channel. So instead of this: red = Image.open("red.TIF") you need to do this: red = Image.open("red.TIF").convert('L') rinse and repeat for G and ...
Balthasar's user avatar
  • 141
4 votes
Accepted

Adding RGB values to Laspy synthetic point generation?

The header needs to be set with a point format that supports RGB colors, see: https://pythonhosted.org/laspy/tut_background.html. For LAS 1.2, the minimum point format for color is 2: header = laspy....
jpapadakis's user avatar
4 votes
Accepted

QGIS 3 - Polygon symbology RGB based on different columns

You can use an expression to control colour, for example in the Simple Fill of a polygon, click the "expression" button at the right hand side, then choose "Edit": Then in the expression enter ...
Spacedman's user avatar
  • 64.6k
4 votes
Accepted

Downloading only one band in Google Earth Engine without the RGB bands

If you do not want RGB visualization bands, then you should not call image.visualize({}). The visualize algorithm creates RGB bands. Simply replace image.visualize({}).addBands(image), which adds the ...
Kevin Reid's user avatar
  • 10.4k
4 votes
Accepted

Why do RGB values seem very high for my multispectral orthomosaic imagery?

Your imagery is 16bit. 16bit data can contain a lot more information than 8bit. The signed range of integer values that can be stored in 16 bits is −32,768 to 32,767 and the unsigned range is 0 to ...
user2856's user avatar
  • 66.7k
4 votes

Exporting RGB image from Google Earth Engine

Looks like you haven't defined a variable called image - which is what you pass along to the visualize() function. Try changing your visualize line to: var imageRGB = dataset.median().visualize({bands:...
JepsonNomad's user avatar
  • 2,166
4 votes

Converting image data type from uint16 to uint8 using Python

Your data corruption is caused by integer overflow. Once a numpy integer goes outside the range of a datatype (0-255 for uint8), the value overflows and wraps around to 0 again. For example: np....
user2856's user avatar
  • 66.7k
3 votes
Accepted

Landsat True color in QGIS

The order of bands for the true color composite should be B3,B2,B1. You could try to create a virtual raster using GDAL: gdalbuildvrt -separate LE07_L1TP_231095_20011014_20170202_01_T1_RGB.vrt ...
dr_times's user avatar
  • 938
3 votes
Accepted

Using RGB values stored in field of feature class to apply colour component for ArcGIS Pro symbology?

I have submitted an ArcGIS Idea to be able to Set ArcGIS Pro symbol color from RGB values in attribute table: Set symbol color from RGB values in attribute table is a popular idea for ArcMap to ...
PolyGeo's user avatar
  • 65.2k
3 votes

Extracting RGB values from aerial photo and assigning to LAS file with FME?

This functionality was removed from libLAS and moved over to PDAL. The filter you want to use is called filters.colorization, and it allows you to control how the bands map to the color values of the ...
Howard Butler's user avatar
3 votes
Accepted

Applying symbology to raster layer in ArcPy without using symbology layer (layer file)?

You can do it like this: # I'm assuming cat is the full path to a raster # or a raster object TempDir = os.environ.get("TEMP") # Your temp folder ColFile = os.path.join(TempDir,"TEMP_CLR_FILE.clr") ...
Michael Stimson's user avatar
3 votes

Commandline tool to change RGB value of GeoTIFF

you can use Orfeo Toolbox, a c++ library with a lot of usefull applications. In your case, otbcli_BandMathX would do the job in one line: otbcli_BandMathX -il input.tif -out output.tif -exp "((...
radouxju's user avatar
  • 49.7k
3 votes
Accepted

Plot RGB using rasterio

Yes you can pass an array. The documentation specifies: rasterio.plot.show(source, etc...) Parameters source (array or dataset object opened in 'r' mode or Band or tuple(dataset, ...
user2856's user avatar
  • 66.7k
3 votes
Accepted

Plot RGB values for each feature seperately

Here is a code i adapted for you, it worked on my qgis 2.18.28: b = iface.activeLayer() fni = b.fieldNameIndex("rgb") unique_values = b.uniqueValues(fni) # fill categories categories = [] ...
Kalak's user avatar
  • 3,856
3 votes

Vegetation indices extraction from RGB images

Having only RGB you cannot calculate the NDVI. As stated in the comment, you need as well the NIR (near-infrared) channel (https://gisgeography.com/ndvi-normalized-difference-vegetation-index/)
Mazu_R's user avatar
  • 1,142
3 votes
Accepted

Classification of drone imagery (RGB) with SCP

It is possible to split the orthophoto into 4 rasters with each a band and use them to create the ROI polygons. Open SCP --> Click on 'Split Raster Bands' --> Select your orthophoto in Multiband ...
OmteK.'s user avatar
  • 81
3 votes
Accepted

Saving orthomosaic .tiff data with symbolization changes using QGIS

Save the .tif as a Layer Definition file (.qlr). Should be the third option if you right click on the layer and go to export. You will not be able to remove your original .tif because it is being used ...
Binx's user avatar
  • 1,380
3 votes
Accepted

Converting Landsat 8 RGB bands to 8-bit colors

The most efficient way to do this would be to export it as an 8-bit image to begin with. image.multiply(0.0001).multiply(256).uint8() https://code.earthengine.google.com/...
Daniel Wiell's user avatar
  • 14.3k
3 votes

How to make use of a 3 band DEM for analysis?

From your screenshot, the answer is simple: you don't have a DEM. A DEM (digital elevation model) is a (most often singleband) raster where pixel values correspond to elevation. In your case, however,...
Babel's user avatar
  • 71.9k
2 votes

How to reduce number of raster bands of a RGB picture?

The Green-Red Vegetation Index is a useful one for ecological purposes. From the following publication: Motohka, T., Nasahara, K. N., Oguma, H., & Tsuchida, S. (2010). Applicability of green-...
Aaron's user avatar
  • 51.7k

Only top scored, non community-wiki answers of a minimum length are eligible