As of May 31, 2023, we have updated our Code of Conduct.
17 votes

Exported bands must have compatible data types; found inconsistent types: UInt16 and UInt32

If you have a look at Sentinel 2 bands you'll find that all bands are type unsigned int 16 except for QA20 that is unsigned int 32, that band is causing the issue. You can solve it in different ways,...
Rodrigo E. Principe's user avatar
15 votes
Accepted

Cloud mask for Landsat8 on Google Earth Engine

Please, read the related answer. Use the right parameters and always check metadata You're trying to filter with BQA band and in SR product, there is no BQA band, there is pixel_qa band instead. ...
aldo_tapia's user avatar
14 votes
Accepted

Is the reflectance required to get the NDVI, for Landsat 8 images?

NDVI is defined for any two bands with near-infrared and infrared data (it is an empirical remote sensing index). As such, you can calculate it straight from the DNs. This is mostly OK if you are only ...
Jan Šimbera's user avatar
  • 1,304
12 votes

Cloud mask for Landsat8 on Google Earth Engine

@Aldo's answer is the correct one, no doubt, but if you want to make the code shorter and you don't mind loosing the 'core' of cloud masking, you can use a module: var point = /* color: #98ff00 */ee....
Rodrigo E. Principe's user avatar
10 votes

Is it scientifically correct to pansharpen landsat reflectance product with pan band

Fundamentally the question here is "what does 'scientifically valid' mean". If you are looking to do spectral modelling on the data, then the answer is possibly different than if you are looking at ...
Mikkel Lydholm Rasmussen's user avatar
9 votes

EVI and NDVI range value

You are right: the range of the NDVI is limited to values between -1 and 1 due to its' normalization properties. The negative limit of -1 will be reached if you encounter maximal reflectance (1) in ...
gurgli's user avatar
  • 176
9 votes
Accepted

From where can I get Landsat 7 and Landsat 8 metadata files?

The USGS provides a tool for bulk downloading of Landsat Metadata: Landsat Bulk Metadata Service The MTL files will allways be distributed with the data if you download the scenes through USGS ...
Kersten's user avatar
  • 9,745
8 votes
Accepted

Error installing landsat-util on Linux

gnutls.h which is required is missing from the filesystem even if you install libcurl4-gnutls-dev which supposedly has the headers files for curl. to correct for that error run: # apt-get install ...
nickves's user avatar
  • 11.4k
8 votes
Accepted

Counting number of pixel identified as water from a collection of landsat image using Google Earth Engine

It's going to be something like this: var landsat8= ee.ImageCollection('LANDSAT/LC8_L1T_TOA').filterBounds(geometry) var waterThreshold = 0; // water function: var waterfunction = function(image){ ...
Nicholas Clinton's user avatar
7 votes
Accepted

Landsat8 DN to TOA Reflectance (minus values)

One flaw in your approach. You don't need to go through DN to radiance. You can go straight to the DN to reflectance. Just stick to ((B1*0.00002)-0.1)/0.74457226676389733207607359928648.
Mikkel Lydholm Rasmussen's user avatar
7 votes
Accepted

Why vegetation index, NDVI or SAVI is not working in the desert?

The sensitivity of the normalized difference vegetation index (NDVI) to the soil background and atmospheric effects has generated an increasing interest in the development of new indices. The NDVI ...
Maxima's user avatar
  • 1,725
7 votes
Accepted

Smoothing/interpolating across images in an ImageCollection to remove missing data

You can replace the values using where(). // Replace masked pixels by the mean of the previous and next months // (otherwise, how to deal with the first images??) var replacedVals = composites.map(...
Kuik's user avatar
  • 9,808
6 votes
Accepted

Viewing bands of landsat 8 images in QGIS for NDVI calculation?

You have downloaded the data and you can find it if you unpack the .tar.gz file using 7zip or similar software for unpacking files. The .tar.gz file is the fourth file from the top that can be seen in ...
Mikkel Lydholm Rasmussen's user avatar
6 votes
Accepted

NDBI formula for Landsat 8

I am not 100% familiar with the NDBI Index, but found an article here: https://www.researchgate.net/publication/273886729_Built-up_area_extraction_using_Landsat_8_OLI_imagery Specifically on Page 14 ...
Keagan Allan's user avatar
  • 3,637
6 votes
Accepted

Exporting entire ImageCollection in Google Earth Engine using geetools for JavaScript or Python for Windows?

I am the author of both geetools (Python and JavaScript) The JavaScript repo is share with anyone can read so it should work, but anyhow you can click here to accept the repo, and then do: var batch = ...
Rodrigo E. Principe's user avatar
5 votes
Accepted

Difference between a spectroradiometer and multispectral sensor

According to NASA, a spectral radiometer is a multispectral sensor. Spectroradiometer—A radiometer that measures the intensity of radiation in multiple wavelength bands (i.e., multispectral). Many ...
BlakeG's user avatar
  • 427
5 votes
Accepted

Clipping of a Raster changes Range of Cell Values

Your clipping fails because the raster has the odd nodata value of -3.4E+38. Unfortunately, you can not enter that value in the input form. So I suggest to use gdalwarp to change the nodata value and ...
AndreJ's user avatar
  • 76.1k
5 votes

Sun glints and landsat 8 surface reflectance product

The Landsat 8 Surface Reflectance products are not sunglint corrected , so if your application is going to be adversely impacted by the presence of sunglints, then you should implement a suitable ...
Mikkel Lydholm Rasmussen's user avatar
5 votes
Accepted

Do clouds reflect NIR/Red bands

Yes, it affects the values of NDVI, and it may not give the desired results sometimes. Information from Wikipedia: Normalized Difference Vegetation Index provides some details about the effects of ...
ahmadhanb's user avatar
  • 39.6k
5 votes
Accepted

Atmospheric effects on extracting soil from BSI index?

Bare soil and urban areas are notoriously hard to segregate. Even with a perfect atmospheric correction, there will be relatively high confusion between the two, particularly when limited to ...
jbukoski's user avatar
  • 1,287
5 votes
Accepted

What are the necessary correction/calibration on Landsat 8 imagery for land cover classification?

You can perform a land cover classification on a single Landsat scene without performing spectral and radiometric corrections. You will only need to do those corrections if you're trying to apply ...
Dan's user avatar
  • 1,090
5 votes
Accepted

Are landsat 8 SR and TOA rasters calibrated/corrected data or the data to be used for calibration/correction?

You will want to use the *_sr_band1 to band7 data for your analyses as these are atmospherically corrected surface reflectance products (Figure 1). Only the Surface Reflectance data products and ...
Aaron's user avatar
  • 51.3k
5 votes
Accepted

Do we get world grid with date and time of visit of Sentinel 1 and Sentinel 2?

About Tiles: There is a kml file provided by ESA that shows the location of each Tile. Overlay it with your study area and you will see which is your target tile. About acquisition: Acquisiton ...
GCGM's user avatar
  • 1,108
5 votes
Accepted

RGB composite of Landsat 8 bands not plotting correctly (Python, GDAL)

The issue is that array.astype() is not applying any stretching or scaling, you need to do that yourself to make the input range of 16-bit values (2^16-1 == max of 65535) fit into an 8-bit integer (2^...
mikewatt's user avatar
  • 4,718
5 votes
Accepted

Fill null pixels resulting from Landsat 8 SR image cloud masking (Earth Engine)

Cloud masking works by removing clouds from the dataset and giving them a 'null' value, which is why you have 'holes' in your image. How you handle this will depend on how much you value the specific ...
Masjo's user avatar
  • 316
5 votes
Accepted

How to add to the map all the images on a image collection with cloud pixels masked on Google Earth Engine?

The solution you have tried uses the image 'id' so you end up displaying the 'original' image in the collection. As an alternative, following what you said in the comment, you can use the .get() ...
jfoguet's user avatar
  • 525
5 votes
Accepted

(GEE) Constant value in Chart after applying scaling factor to LANDSAT

According to the chart, you seem to be getting a constant value. But that's not true. If you limit the axis, you will see the result clearly. To limit the axis, add viewWindow: {min: -0.20001, max: -0....
Kadir Şahbaz's user avatar
4 votes

how to remove cloud values of Landsat image from R

The best established Landsat cloud detection algorithm used today is fmask published by Zhu&Woodcock. It is not written in R but in MATLAB, it can be downloaded as MATLAB code or as a compiled C ...
Kersten's user avatar
  • 9,745
4 votes
Accepted

Different band file format when downloading Landsat 8 from earthexplorer

The difference that you see arise from having a mix of 'surface reflectance' data, and 'uncorrected' / 'raw' data. The scenes with a MTL.txt are 'uncorrected' while the ones with the xml files are '...
Mikkel Lydholm Rasmussen's user avatar
4 votes
Accepted

RGB values in Landsat 8 image

It is because the Landsat 8 images are provided in 16 bit instead of 8 bit in previous Landsat images. It is stated clearly in USGS-Landsat-8: These sensors both provide improved signal-to-noise (...
ahmadhanb's user avatar
  • 39.6k

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