Questions tagged [sentinel2]

Sentinel-2 is a satellite constellation maintained by ESA used to monitor land variability. Use this tag for questions related to processing Sentinel-2 images & data. Add other tags of the programming language you are using, as appropriate.

81 questions
1
vote
1 answer

Read Sentinel-2 L1C view angles from rasterio

I am trying to read the view angles from a Sentinel-2 image (L1C SAFE compact format) for executing an atmospheric correction algorithm. I can get those values by parsing the file MTD_TL.xml, but I am not able to get them through rasterio. I have…
1
vote
1 answer

How do I get the correct scale of a band array in GDAL Python?

I am new to using GDAL in Python and I am trying to use it to retrieve the band data from Sentinel 2 SAFE-products. I managed to extract the band array, but I couldn't manage to get it scaled correctly. This extracts the unscaled array of Band…
jakobxu
  • 15
  • 5
1
vote
1 answer

Converting an imageCollection into a dictionary with unique label values

I am trying to write a function which will create a dictionary from an image collection using Sentinel 2 data which will contain label/value pairs where the label comes from the MGRS_TILE property of the image and the value will contain a list…
1
vote
0 answers

Exporting Sentinel-2 cloudless image collection from Google Earth Engine

I would like to export a composite cloudless Sentinel-2 image from Google Earth engine which compiles data from 2017 until current. I am looking to export composites for each individual band. function maskS2clouds(image) { var qa =…
1
vote
0 answers

How to chain stacks in a loop

I'm trying to create a code that would allow me to stack the 10 bands of the same image for different images contained in different folders. I'm trying to create a code that would allow me to stack the 10 bands of the same image for different images…
Axelle
  • 107
  • 1
  • 6
1
vote
0 answers

How to extract reflectance values from a SAR-Optical stack in R

I have stacked sentinel-1 and sentinel-2 images in QGIS. I did preprocessing in SNAP and used the "align rasters" tool in QGIS to resample the images to 20m and to register them to a common projection. I want to perform classification in R, but it's…
Wong
  • 11
  • 1
1
vote
1 answer

Merging satellite images and retaining coordinates

Thanks for dropping in here. I'm currently working on a project, and I'm not that strong with python yet. So I was hoping for some constructive feedback on this question. I have a dataset containing core samples, all stored with sample id,…
Mars
  • 341
  • 1
  • 3
  • 12
1
vote
1 answer

Converting geographical coordinates (long, lat) to pixel position (x,y) for a Sentinel-1 SAR image

How can i get the (x, y) pixel position from the geographical coordinates in a Sentinel-1 Synthetic Aperture Radar (SAR) satellite image? I can access a downloaded image info sg as from snappy import ProductIO path='path_name' product =…
Ioannis Nasios
  • 8,292
  • 4
  • 33
  • 55
1
vote
1 answer

Converting pixel position to geographical coordinates (lat, long) for a Sentinel-1 SAR image

How can i get the geographical coordinates from x,y position in a Sentinel-1 Synthetic Aperture Radar (SAR) satellite image? For example, I can access a downloaded image info sg as from snappy import ProductIO from snappy import PixelPos…
Ioannis Nasios
  • 8,292
  • 4
  • 33
  • 55
0
votes
1 answer

Mosaic of multiband Sentinel-2 rasters with Terra R package results in all bands having the same values

I have an issue that is driving me crazy that I just can't figure out for the life of me. I'm processing large Sentinel-2 tiles and attempting to use terra::mosaic() to put them together. I start with two SpatRasters, notice how the min-max values…
Meirzev
  • 1
  • 2
0
votes
0 answers

How to fix Google Earth Engine Error: 'FeatureCollection (Error) Image.sample: Unable to find a crs.'

I am trying to make a random forest classifier for mangroves on an island in the Philippines. I have already produced the desired outcome for dates in 2019 using exactly the same code, but I need the dates changed to ones in December 2021. // cloud…
relayyyyy
  • 25
  • 4
0
votes
0 answers

Rasterio can not read jp2 file from s3 bucket

I have developed a lambda with rasterio 1.3.5 and python 3.9 with serverless. My function requires to read image from sentinel-s2-l2a bucket. But whenever the function tries to read a certain url it throws this error. Error:…
0
votes
0 answers

errors when using apiKey for sentinel2 10 landcover

i have arcgis developer account and apiKey, i try to use the https://env1.arcgis.com/arcgis/rest/services/Sentinel2_10m_LandCover/ImageServer, but get error showing invalid token. i wonder how can i test with the…
0
votes
1 answer

Resize Sentinel 2 yields an image with 0 values

I'm trying to resize an NDVI image (derived by Sentinel 2 bands) with different methods in Python, but I always get an image whose values are 0. I want that my image's dimensions are divisible by 5. Here is my original image. NDVI original image I…
0
votes
0 answers

Resume download if _.gstmp files after downloading Sentinel-2 SAFE products using sen2r R package

I have downloaded a large number of Sentinel-2 SAFE files using the R package 'sen2r', which has implemented a Google Cloud download method to retrieve products stored in Long Term Archive. This has worked for me, but after checking the files I have…
Meirzev
  • 1
  • 2