{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "Flutungsbeginn war der 12.4.2019. Wir versuchen mit Daten der Sentinel-1- und -2-Satelliten nachzuvollziehen, wie hoch der Wasserstand zum jeweiligen Zeitpunkt war." ] }, { "cell_type": "code", "execution_count": 47, "metadata": {}, "outputs": [], "source": [ "from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt\n", "from datetime import date\n", "\n", "# set up ~/.netrc using the provided ~/.netrc.example in order to be properly authenticated\n", "api = SentinelAPI(None, None)\n", "\n", "# the \"footprint\" is what we can use to preselect a certain area;\n", "# the lakesentinelsat/ is at (51.7874, 14.4226)\n", "footprint = 'POLYGON((14.359428613281251 51.806620319822734,14.466545312500001 51.806620319822734,14.466545312500001 51.757343872357566,14.359428613281251 51.757343872357566,14.359428613281251 51.806620319822734))'" ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [], "source": [ "products = api.query(footprint,\n", " platformname='Sentinel-2',\n", " processinglevel='Level-2A',\n", " date=(date(2019,4,1), date.today()),\n", " cloudcoverpercentage=(0,30))" ] }, { "cell_type": "code", "execution_count": 51, "metadata": {}, "outputs": [], "source": [ "# we create the directory structure we need for the following notebooks\n", "! mkdir -p input/raster" ] }, { "cell_type": "code", "execution_count": 50, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "\n", "\n", "Downloading: 14%|█▍ | 159M/1.13G [00:00