Skip to main content
18 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
16 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
  • 13.7k
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

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
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.5k
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,701
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
  • 10.1k
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,756
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
6 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
  • 545
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.7k
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

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
  • 40.9k
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
  • 40.9k
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,297
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,100
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.7k
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,118
5 votes

Merging raw data from Landsat 5, Landsat 7 and Landsat 8

An option is to assign common names to the bands, here an example on a few bands: // Assign a common name to the sensor-specific bands. var LC8_BANDS = ['B2', 'B3', 'B4', 'B5', 'B6', 'B7', ...
OscarBau's user avatar
  • 700
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
  • 5,093
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

(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
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

Processing LANDSAT 8 data in R (using packages Raster, RSToolbox, etc.) in order to calculate NDVI and land cover classification?

If you download surface reflectance data from espa you can skip steps 1, 2, 3, 5 and 6, and you will benefit from a more advanced atmospheric correction. Mask the clouds using the QA layer maskFun &...
Loïc Dutrieux's user avatar
4 votes

Reproject masked array with rasterio

Very nice example. I put it in a notebook here. I can reproduce your issue with rasterio 1.0a11. Problems Rasterio's reproject does intend to support masked arrays, but it seems to fail in this ...
j08lue's user avatar
  • 289
4 votes

Landsat 8 Collection Level 1 and 2

It looks like surface reflectance data is what you are looking for. It's been atmospherically corrected so the consistency between different images is much higher. One thing i'd like to remind you is ...
TonyC's user avatar
  • 659
4 votes
Accepted

Landsat 8 cloud/cloud shadow/snow masking in Google Earth Engine

The example is outdated. Instead you can use the Landsat 8 Surface Reflectance collection LANDSAT/LC08/C01/T1_SR, which includes the pixel_qa band and allows you to filter the following classes: Bit ...
Kersten's user avatar
  • 9,919

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