Questions tagged [sentinelsat]
Python library for querying and downloading satellite imagery from the European Space Agency's API. Only use if your code includes the line `import sentinelsat` or similar!
30
questions
0
votes
1
answer
26
views
using python to download sentinel imagery directly
I'm trying to download sentinel satellite images directly using python.
the idea is to use sentinelsat API and a geojson polygon to download it.
however it downloads the entire image and not only the ...
2
votes
1
answer
20
views
Cannot import sentinelsat python module
I am a python newbie and am trying to get the sentinelhub module to work but have been receving this error message on my code:
import sentinelhub
Traceback (most recent call last):
File "<...
1
vote
1
answer
58
views
Invalid Checksum with Python API sentinelsat. Using GEOPANDAS and Geojson
I'm trying to find a way to automatically download satellite imagery to create a database.
I'm figuring this out and started with sentinelsat API, there isn't much about it out there due to its ...
1
vote
0
answers
20
views
Display .nc obtained via SentinelAPI
I obtained some satellite data with the sentinelsat package in python. I have 2 main problems:
I would like to plot the data I have downloaded,
I cannot find the documentation describing all the ...
0
votes
1
answer
26
views
Exporting geometry form Sentinel 1 data using -S1 TOPS SPLIT Analyzer (STSA)
Im looking to export geometry from Sentinel 1 SLC product.
Im using S1 TOPS SPLIT Analyzer (STSA) which is documented here.
Everything seems to work up to the export part.
My code as per example in ...
0
votes
1
answer
84
views
Python requests - download image and write to file not working due to nature of URI and authentification procedure
I am writing a script that downloads Sentinel 2 products (satellite imagery) using sentinelsat Python API.
A product's description is structured as JSON and contains the parameter quicklook_url.
...
0
votes
0
answers
16
views
How to check if I entered correct password in sentinelsat api with getpass
I want to check if the password I entered is correct. Basically I want a response from sentinelsat api that everything is ok.
My code:
from sentinelsat import SentinelAPI
password = getpass.getpass(&...
0
votes
1
answer
130
views
How to solve the error << TqdmKeyError: "Unknown argument(s): {'delay': 2}" >> when downloading sentinel data using the sentinelsat API in Python?
I am trying to download Sentinel-3 data using the sentinelsat API for Python. When running the code, I am getting the following error:
""
TqdmKeyError("Unknown argument(s): " + str(...
0
votes
2
answers
37
views
Extracting from numerical string only some digits
I have a folder full of raster files. They come by group of 12 where each one of them is a band (there are 12 bands) of the satellite Sentinel 2. I simply want to create a loop that goes through the ...
0
votes
0
answers
24
views
Why do some Sentinel-2 scenes follow SAFE format, and some don't?
Why do some scenes follow SAFE format, and some don't?
For example,
scene
https://scihub.copernicus.eu/dhus/odata/v1/Products('8212e831-cea4-49d3-996c-cde2e9022188')
follow SAFE, as it described in ...
1
vote
1
answer
2k
views
AttributeError: module 'rasterio' has no attribute 'mask'
I am trying to learn sentinelsat by following some tutorials. Part of the codes goes like this.
import rasterio as rio
import geopandas as gpd
nReserve = gpd.read_file('NReserve/...
1
vote
0
answers
144
views
Issues Querying and Downloading Sentinel-3 OLCI Data with Sentinelsat
I am working with Sentinel-3 OLCI Level-2 Data Products with the Sentinelsat API and am having issues querying and exceeding my data download quota. Overall, I would like to write a program that ...
1
vote
0
answers
27
views
Why does running fmask detection code give me wrong results when I run the script?
I used ubarsc's fmask scripts to detect clouds,shadows,water and snow in Sentinel satellite images. here is the repo link :https://github.com/ubarsc/python-fmask/blob/master/fmask/cmdline/...
5
votes
0
answers
361
views
"HTTP status 500 Internal Server Error :UnsupportedOperationException : Error creating stream from file"- SentinelAPI
I'm using SentinelAPI (from sentinelsat), to download Satellite imagery from sentinel.
The code i'm using (not fully):
from sentinelsat import SentinelAPI
api = SentinelAPI(user, password, 'https://...
1
vote
0
answers
72
views
Sentinel 2 download not triggered
I am trying to download sentinel 2 data from the Copernicus Open Access Hub, with a python script and using the sentinelsat library. I know that the rate at which you can download data is limited: max ...
2
votes
1
answer
317
views
Downscaling sentinel-2 bands to 10m using R language
I'm trying to calculate NDRE using sentinel-2 bands in R language.
The formula for NDRE = (nir-re)/(nir+re)
nir- Near InfraRed (Band8)
re - RedEdge (Band5)
My Code:
library(raster)
library(RStoolbox)...
1
vote
1
answer
82
views
Sentinel API error on Python: HTTP status 200 OK: API response not valid. JSON decoding failed
I have been trying to follow an easy tutorial on how to get sentinel 2 images for a series of polygons I have. For some reason, no matter what I do I keep running into the same error (detailed above).
...
1
vote
1
answer
237
views
Unable to access and download Sentinel-2 images from Python API with the standard code
rec = POLYGON ((597843.23 2977645.792070312, 686175.1025585937 2977645.792070312, 686175.1025585937 3112308.537736816, 597843.23 3112308.537736816, 597843.23 2977645.792070312))
products = api.query(...
1
vote
2
answers
416
views
SentinelAPIError. HTTP status 200 OK: API response not valid. JSON decoding failed
I have been attempting to get data via sentinel2 API with python and I have been unable to get data via geojson format. It keeps throwing a
"SentinelAPIError: HTTP status 200 OK: API response not ...
-1
votes
3
answers
117
views
Variable/optional arguments in a function within a function
I am working on a script that let's me connect to the Sentinel satellite database to download the requested map files.
from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt
def ...
2
votes
1
answer
1k
views
Error ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
I am working on importing Sentinel 2 satellite images to jupyter notebook for applying raster analysis but while importing I have faced this issue:
from sentinelsat import SentinelAPI
user = 'Username'...
2
votes
1
answer
881
views
Python API sentinelsat HTTP status 500 Internal Server Error:
shows the error:
"HTTP status 500 Internal Server Error: Trying to download an offline product"
The code i am using is
import time
import datetime
from sentinelsat import SentinelAPI, ...
2
votes
0
answers
547
views
Issues - Extracting satellite image using sentinelsat
I am using the below code to extract satellite image using sentinelsat
from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt
from datetime import date
api = SentinelAPI('userid', '...
1
vote
0
answers
81
views
How to change the output filename of a raster using sentinel-hub?
I'm downloading satellite images using sentinel hub.
Everything is going fine, but I would like to change the downloaded raster name by the date of the image, for example.
...
2
votes
2
answers
439
views
How to download a product in a directory?
I am coding a simple script to obtain some SENTINEL products using the Sentinelsat´s Python API
Then I would like to download some of the products to a diferent directory than the script is.
I don´...
1
vote
0
answers
102
views
opendatacube ingestion of a Sentinel3 product
I would like to ingest a Sentinel 3 OLCI Level 2 product so I'm trying to make the 'prepare_dataset.py' script. I can't get the 'grid_spatial/projection' details, particularly 'geo_ref_points'. I've ...
5
votes
2
answers
820
views
Python API sentinelsat error in query intersect
I'm facing a problem when searching for an image that contains specific coordinates. I can't get the intersect function to work with the API.
I'm getting this error message:
sentinelsat.sentinel....
2
votes
1
answer
47
views
Obtaining the sum of several elements listed in a geojson
I apologize if this question has been asked or answered elsewhere before. I couldn't locate it.
I'm still relatively new to python and I'm currently setting up a script for downloading files from the ...
2
votes
1
answer
1k
views
Python API sentinelsat error in download
I am having a go at using the sentinelsat python API to download satellite imagery. However, I am receiving error messages when I try to convert to a pandas dataframe. This code works and downloads my ...
1
vote
0
answers
322
views
sentinelsat package in OSGeo4W (qgis)
I intend to download automatically Sentinel images, in a QGIS plugin. I found sentinelsat package and I install it in my OSGeo4W installation. However When I test in command line (in this case OSGeo4W ...