Questions tagged [sentinel-2]

Remote sensing satellites with Multispectral imaging capabilities

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Filtering Pixels with same classification in a image collection Google Earth Engine

I had classified with a random forest classifier using a specific training data set composed by random points per each image in a Sentinel-2 imagery. After displaying the results I saw many areas are ...
0
votes
1answer
23 views

Google Earth Engine Mapping expression over Sentinel-2 dataset

I'm using Google Earth Engine to map an expression over a Sentinel-2 dataset. I want to calculate the EVI for an entire year of a particular area. My code is: /// Add EVI using an expression. //Make ...
0
votes
1answer
24 views

Removing clouds from sentinel2 image collection in Google earth engine

I am trying to apply a cloud cover to exclude clouds values from my graphs, using a sentinel-2 image collection. I know ho to apply to a single image, but if I put an image collection instead of a ...
0
votes
0answers
40 views

Sentinel2 8-day composite NDVI and NDWI images in Earth Engine

Google generates and publishes derived products for Landsat-8, 8-Day Composite NDVI and NDWI image collections in the Earth Engine Catalogue. Landsat 8 Collection 1 Tier 1 8-Day NDVI Composite ...
0
votes
1answer
41 views

Google Earth Engine: Sentinel-2 AOT band resolution

In the GEE documentation of Sentinel-2 Surface Reflectance dataset (here) the information given is that there is a band for AOT (Aerosol Optical thickness) with a 10m resolution. However, when ...
0
votes
1answer
35 views

Google Earth Engine: "line 29 is not a function" error when calculating NDWI

I am trying to calculate NDWI from Sentinel 2 data in Google Earth Engine but keep getting the error "Line 29 is not a function" (the line where I am trying to run the ndwi function on all ...
-1
votes
1answer
35 views

Google Earth Engine Dividing an ImageCollection by a constant

I'm using GEE to calculate the EVI of Sentinel-2 images in a specific area. To do this, I need to divide the Sentinel-2 images for scaling purposes. I'd like to use ee.ImageCollection.map, but as a ...
0
votes
2answers
27 views

Google Earth Engine: Getting Range of Image's Values

I'm trying to find the maximum and minimum of a Sentinel-2 image that I have done band calculations on. My current code is: //adding a single sentinel 2 image to map var img161 =ee.Image('COPERNICUS/...
1
vote
1answer
31 views

Google Earth Engine Map.addLayer failing to add bands

I'm working on calculating the Enhanced Vegetation Index (EVI) of a Sentinel-2 image in Google Earth Engine. My code is: //evi visual parameters var evivisparam = {bands: ['B4', 'B8', 'B2'], min: -...
0
votes
0answers
15 views

Sentinel-2 L2A metadata XML

I am trying to select Sentinel-2 L2A scenes that have low cloud cover. How should I interpret the difference between these three types of cloudy pixel % values captured here? I made this image based ...
1
vote
0answers
25 views

QGIS 3.16.11- Unable to calculate. Metadata error

I have trouble with preprocessing Sentinel 2 images in QGIS 3.16.11. I uploaded both the file which has Sentinel 2 bands B01~B12 and the file which has metadata, but it shows nothing. Also, when I ...
1
vote
1answer
40 views

Calculating NDVI percentage change in QGIS

I am trying to show how NDVI changed between two periods using raster calculator in QGIS. I stumbled upon one example that was done in ArcGIS which i have no access to but would want to do the same in ...
2
votes
1answer
42 views

Indexing Multi-Band images in OpenDataCube

I have a Sentinel2 based product with the following product definition. It has 2 bands in it name: product_name description: Product Name metadata_type: eo3 metadata: product: name: '...
0
votes
1answer
37 views

Multiple atmospheric correction for Sentinel-2 L1C imagery in Google Earth Engine

I am new to JavaScript in GEE. I am looking to do an atmospheric correction of Sentinel L1C images between 2016 and 2018, so I can complete my timeseries of BOA images of Sentinel. Using Atmospheric ...
0
votes
0answers
22 views

Add date and time property to mosaicked imageCollection

Very similar to this question: Lost the properties in ImageCollection after Mosaicking a Image Collection in Google Earth Engine but I need the exact acquisition time for each of the mosaicked images (...
0
votes
1answer
20 views

sen2cor failing with "TCI image export failed"

I'm trying to calibrate some Sentinel L1C products to get level 2 data, but I always end up with the following message. Any idea what could cause that? I have tested it with sen2cor 2.8.0 and sen2cor ...
0
votes
1answer
85 views

Filtering Sentinel2 image collection by cloud coverage over specific polygon

I am pretty new to GEE. My task is to get all Sentinel 2 images from a specific time. Then I want to filter this collection by a maximum cloud coverage over an area of interest, which is imported ...
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
9 views

How do I load Sentinel-2 unpacked image selected bands (by band number) to numpy array in Python GDAL? [duplicate]

I can do: gdal.open('... .xml'); And it seems to work. But how do I refer to the band by B* naming convention? Let's say I would like to open B2, B4 and B5 in the best available resolutions... As far ...
0
votes
1answer
31 views

Exporting NDVI for multiPoint Geometry in Python API of Google Earth Engine

I have a list of mine coordinates and I want to export the mean NDVI of the region 5 km around the mine area. I was able to plot the mines, the region of interest and calculation of NDVI on map, but ...
0
votes
0answers
25 views

Layer error when changing platforms

I am running an analysis of vegetation and fire over a 20 year period. From 2020 - 2016, I have been using the Sentinel-2 imagery but from 2015 back to 1998 I need to use Landsat imagery. The bands ...
0
votes
0answers
13 views

Meaning of Jeffreys-Matusita Separation values

I've computed the JM separation values for my training classes for Sentinel-2 image classification. I understand that the values range between 0-2. Most of the values are above 1.9, but some are down ...
0
votes
1answer
43 views

Cannot tile Sentinel 2 images

When I export the big images in Google Drive, Google Earth Engine is supposed to tile them automatically but they don't even appear in my drive. What is happening? Here is my code: #!/usr/bin/env ...
0
votes
1answer
35 views

Extracting tabularized metadata information from an ImageCollection in Google Earth Engine

Sometimes, one wants to know how many (and which) satellite images (e.g. Sentinel-1, Sentinel-2, or Landsat-X) are available for a given ROI in a given time frame. In Google Earth Engine, this ...
1
vote
1answer
39 views

Google Earth Engine updatemask removes Metadata

I'm using the Jupyter Notebooks Python GEE API. I'm using the basic sentinel 2 cloud cover algorithm, maskS2cloud, from the catalogue example. But it removes the metadata from my image collection that ...
0
votes
0answers
26 views

How to speed up reading in specific parts of Cloud-Optimized GeoTIFFs?

After installing rasterio and pystac_client (pip install rasterio & pip install pystac_client), and importing packages: from pystac_client import Client import rasterio import time import random ...
1
vote
1answer
44 views

Error in Exporting the image to drive. "Error: Image.setDefaultProjection, argument 'image': Invalid type. Expected type: Image<unknown bands>."

Whenever I try to export to the drive the image gives me the following error: Error: Image.setDefaultProjection, argument 'image': Invalid type. Expected type: Image. Actual type: ImageCollection. ...
0
votes
0answers
68 views

Mosaic Sentinel 2 images in QGIS

I am trying to mosaic Sentinel 2 images of Goa region. I have downloaded 03-05-2021 data from Earth Explorer. I am using SCP plugin to mosaic images. I have created four band sets then selected Mosaic ...
0
votes
0answers
65 views

When using Landsat and Sentinel-2 data to implement the change detection, I got very different result

I used the code that is from gee-ccdc-tools.Now I know the actual time of change. I just change "getLandsat" to "getS2" for the change detection.And the result of change detection ...
0
votes
1answer
49 views

Extracting time series from ImageCollection for multiple points using Google Earth Engine

I want to extract for each point of my shapefile the NDVI and the related time-series charts but I cannot understand how to extract values. This is the code // load the S2 dataset var S2 = ee....
0
votes
1answer
71 views

How to avoid (occasional) 404 errors when trying to access Sentinel-2 images using pystac-client

I use pystac-client to access some sentinel images. In Google Colab, I install pystac-client and rasterio by: %%shell pip install pystac-client pip install rasterio Import both modules: from ...
0
votes
1answer
52 views

Pansharpening Sentinel-2 Image Collection in Google Earth Engine

With reference to (Pansharpening Sentinel-2 imagery in Google Earth Engine) and (Blank Image - Pansharpening Sentinel-2 imagery in Google Earth Engine). I am trying to use the code for an image ...
2
votes
1answer
46 views

Bitwise and bitmask used in mask clouds Sentinel-2 images

What is the function behind two specific line in below coding block ... 1) var cloudBitMask = 1 << 10; 2) var mask = qa.bitwiseAnd(cloudBitMask).eq(0) .and(qa.bitwiseAnd(cirrusBitMask).eq(0)); ...
7
votes
2answers
159 views

How to retrieve Sentinel images without significant cloud coverage using Python

Background I am trying to retrieve images of certain areas. My aim is to get images without much cloud on them. I would like to specify the percentage of pixels with clouds on them. What I am doing ...
1
vote
1answer
46 views

How to convert Latitude Longitude to UTM - conflicting UTM Zone codes

Just as in this question, I download a sentinel tif file: from pystac_client import Client catalog = Client.open("https://earth-search.aws.element84.com/v0") mysearch = catalog.search(...
7
votes
1answer
242 views

How to find a particular coordinate on a Sentinel image using proj:transform?

Background I am retrieving images from the Sentinel satellites. I plot these images, using pixel coordinates. I would like to show points specified using latitude and longitude on those images. Data ...
0
votes
1answer
26 views

Cloud Mask Assesment without Reference Cloud Mask

We have a cloud mask but we don't have reference data set to assess its accuracy. Without generating a reference dataset by ourselves is it possible to assess the cloud mask's accuracy?? For example; ...
0
votes
1answer
36 views

Remove single (un-mosaicked) tiles after mosaicking image collection by day

I want to create a time-series of Sentinel-2 images that cover my entire study area (instead of individual tiles, since the study area spans 2 tiles). I mosaicked the image collection by day using the ...
0
votes
1answer
38 views

NIR.subtract is not a function

I am trying to calculate Kernal NDVI (kNDVI) and the code keeps giving me this error. The link to the code: https://code.earthengine.google.com/24e8503ec2f264d0ffe0ba1bfe4c6353 /// adding shapefile to ...
0
votes
0answers
12 views

How to filter for Sentinel-2 scenes that don't contain all band data

The registry of open data in AWS lists Sentinel-2 satellite imagery in requester-pays s3 buckets. How would one build a list of scene folders, per tile, for which all 13 bands (*.jp2 files) are ...
0
votes
1answer
121 views

CRCError: Invalid Projection: EPSG:4326 for Sentinel API Script & AttributeError: module 'pyproj'

I am realatively new to Python programming and have an issue with pyproj mixing up the CRS database (this is what I gather from the web). I have a little script I've written to retrieve Sentinel ...
1
vote
0answers
63 views

Processing and Mosaic Sentinel 2 Data with Python [closed]

I already found this manual for processing Sentinel-2 Data: https://hatarilabs.com/ih-en/sentinel2-images-explotarion-and-processing-with-python-and-rasterio Now I'm searching for a way to mosaic ...
1
vote
1answer
43 views

TypeError: invalid driver when writing Rasterio created mosaic of Sentinel JP2's

The code below represents my attempt at mosaicing sentinel bands. I get an error right at the end when trying to write the mosaics. It states: TypeError: invalid driver: {'driver': 'GTiff', 'dtype':...
1
vote
1answer
68 views

Extracting pixel values in sample polygons in Google Earth Engine

I am trying to generate histogram of pixel values for my sample polygons. I used the code suggested on Histogram Matching in Google Earth Engine. Its working but I am not able to control the bin size ...
1
vote
1answer
138 views

Calculating Enhanced Vegetation Index (EVI) using Sentinel-2 Level 1C, value problem

I am trying to calculate EVI values from Sentinel-2 Level 1C. When I calculate the EVI with this formula : (2.5 * ("Band 8" - "Band 4")) / ("Band 8" + (2.4 * "Band 4&...
1
vote
1answer
33 views

Image (Error) reduce.median: Can't apply calendarRange filter to objects without a timestamp

I tried illumination correction on Sentinel-2 images and obtain monthly median images. However, I'm struggling with the following error: Image (Error) reduce.median: Can't apply calendarRange filter ...
0
votes
0answers
129 views

Resampling Sentinel-2 bands (reduce resolution :10m) to 20m resolution in Google Earth Engine

I am trying to reduce the resolution of 10m bands (B2-4,B8) to 20m resolution so that I have uniform resolution for all bands I want to use. I tried a solution provided by Jepson Nomad for similar ...
0
votes
1answer
121 views

NDVI time series with Sentinel-2 in Google Earth Engine

I want to calculate the time series of the NDVI with Sentinel-2 of a specific area of Australia. I started from this code: Time series analysis of NDVI using Google Earth Engine Substituting Landsat ...
0
votes
0answers
56 views

GEE-SVM classifier output issue

With Google Earth Engine I am using Sentinel-2 satellite imagery to identity wheat crops within a district. I have the coordinates (lat/long) of 1 wheat field within the district. I have calculated ...
0
votes
1answer
97 views

Iterating to calculate mean NDVI and mask pixels having greater than mean NDVI value of each image in image collection using Google Earth Engine

I am working on Sentinel -2 image collection over my study region in Google Earth Engine. I can calculate Mean NDVI for an image using ee.Reducer.mean() and mask pixels using update mask .gt(mean ...

1
2 3 4 5
10