Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Kersten
@Fernerkundung
@valgur no need to apologize for not putting more time into this project, ever. As I said earlier - we are all doing this in our free time. The time every one of us puts into this project varies - and that is to be expected.
That's why we have a democrativ and distributed project structure, so we can work incrementally and everyone on their own time ;)
Ghazal Ba khadher
@Ghazal87
I am new to this python module but I would like to learn about it as much as possible. Therefore, can I download SLC data of sentinel1 using this module and how can I determine the area that I am looking for.
Kersten
@Fernerkundung
@Ghazal87 Yes you can download SLC data with this module. Regarding the area you want to download that is something you to determine yourself - Sentinel-1 has global coverage above land.
Ghazal Ba khadher
@Ghazal87
so after the downloading, can i do calibration using your module
Kersten
@Fernerkundung
No you cannot. The scope of the module is purely search&download of Sentinel data using the DHuS endpoints.
Ghazal Ba khadher
@Ghazal87
So, is there any module to do calibration
Kersten
@Fernerkundung
There are tons. For starters I'd refer you to the Sentinel-1 Toolbox by ESA:http://step.esa.int/main/toolboxes/snap/
Ghazal Ba khadher
@Ghazal87
I know this but I need to work on python
I already worked on SNAP and I want to master working on sentinel1 data using python
Martin Valgur
@valgur
You can access SNAP functionality from Python via its Python API: https://senbox.atlassian.net/wiki/spaces/SNAP/pages/19300362/How+to+use+the+SNAP+API+from+Python
That API is a very thin wrapper around their Java objects, so it's very un-pythonic, though.
I have found it much more convenient to just run SNAP's processing graphs from its command-line utility (gpt) via Python instead.
You can create the necessary processing graphs in SNAP's graph editor
Martin Valgur
@valgur
The official SNAP forum has tons more information on this: http://forum.step.esa.int/
Kersten
@Fernerkundung
+1 on using the graph processing tool. I also build my processing graphs in Python and then use the subprocess module to execute gpt.
Florian Beyer
@florianbeyer
Hi, I have problems to run sentinelsat. In python the OrderedDict() remains empty and in comand line there is a error message concering the geojson: "Error: Got unexpected extra argument (map.geojson)" I generated a rectangle with geojason.io
Can someone help me?
Kersten
@Fernerkundung
Can you include the command you used on the command line (minus your user credentials)?
Any chance you missed the -g in front of map.geojson on the command line?
Florian Beyer
@florianbeyer
sentinelsat -u -p map.geojson -s 20170501 -e 20180131 --sentinel 2 --cloud 50 -d
Kersten
@Fernerkundung
try sentinelsat -u <user> -p <pass> -g map.geojson -s 20170501 -e 20180131 --sentinel 2 --cloud 50 -d
Florian Beyer
@florianbeyer
Error: Invalid value for "--geometry" / "-g": Path "map.geojson" does not exist.
Florian Beyer
@florianbeyer
sorry, it is now working
thanks
the g was missing :-)
Kersten
@Fernerkundung
Happy to help! Und viel Spaß mit den Daten :+1:
volkan yazici
@volkanyazici
Hi. While i type for installation, i take a syntax error like below. Any suggesitons? >>> pip install sentinelsat
File "<stdin>", line 1
pip install sentinelsat
^
SyntaxError: invalid syntax
Kersten
@Fernerkundung
This looks like you are trying to execute pip from the interactive Python shell. Try it from your system shell instead or use "python -m pip install sentinelsat"
volkan yazici
@volkanyazici
Thank you again Kersten. İt is installed successifully. Within the Python 3.6 Shell window i opened file/open/sentineldownload.py and i run the sentineldowload.py. But nothing has changed. ============== RESTART: H:\Volkan_Tez\oku\ImageDown-Volkan.py ==============
now, how can i start the image download proccess?
Kersten
@Fernerkundung
Please take a look at the documentation - everything is outlined there: https://sentinelsat.readthedocs.io/en/stable/cli.html
Martin Valgur
@valgur
Looks like we are available on Debian now as an apt package :)
https://packages.debian.org/sid/sentinelsat
Kersten
@Fernerkundung
Isn't that nice :)
Although I find the name a bit peculiar: Isn't it more common to use a variation of python-$projectname so python-sentinelsat or the like?
sateesh
@masabhathini
Hi
How to download sentinel 5p CH4 data using sentinelsat ?

from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt

area_of_interest = geojson_to_wkt(read_geojson('/home/satviz/Work/scripts/junk/sentinel5p/IndiaDomain.geojson'))
api = SentinelAPI(user='s5pguest', password='s5pguest', api_url='https://s5phub.copernicus.eu/dhus')
products = api.query(area=area_of_interest,
area_relation='Intersects',
date=('20191219', date(2019, 12, 29)),
platformname='Sentinel-5 Precursor',
processinglevel='L2',
producttype='L2__CH4')
api.download_all(products)

Kersten
@Fernerkundung
You can remove processinglevel and platformname and just keep the producttype. Bear in mind, that it is L2__CH4___ (2 underscores, 3 underscores).
This works for the city of Munich
products = api.query(area="POINT (11.2836 48.0858)",
                     date=("NOW-10DAY", "NOW"),
                     producttype="L2__CH4___")
FWJoubert
@FWJoubert
Hi Kersten. Please help. -g 'C:/DATA/Python/JBCoordsTest.geojson' what is wrong here ... from win cmd line
FWJoubert
@FWJoubert
Apology ....-g ('C:\DATA\Python\JBCoordsTest.geojson'), ......... Error: Invalid value for '--geometry' / '-g': Path '('C:\DATA\Python\JBCoordsTest.geojson'),' does not exist. ................ change the path "\" to give same error
FWJoubert
@FWJoubert
Anybody please!
Kersten
@Fernerkundung
This error message states that the command line utility is unable to find anything at the path you have given. You can try to drag-and-drop the file into the command line to get the correct path.
flavves
@flavves
Hello
anyone here
HJBenninga
@HJBenninga

Hello,

I wanted to use the Sentinelsat python package for downloading Sentinel-1 images from the LTA.

However, when using download_all I'm getting a CancelledError referring to line 779 of sentinel.py. Furthermore, when I use _trigger_offline_retrieval() I often get the status_code 500 for images. Perhaps this is related to this: https://scihub.copernicus.eu/news/News00721

Could we solve it?

HJBenninga
@HJBenninga
Btw, I also noted that after multiple tries the status_code sometimes changes to 202 or 403.