{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Data retrieval from the Long-Term Archive\n", "\n", "Sentinel data that has not been accessed for a longer period of time is moved to a Long-Term Archive (LTA).\n", "Data in the LTA can not be retrieved immediately but instead has to moved out of this archive first.\n", "\n", "This notebook shows how API responses in this case look like and what to do in this situation.\n", "The relevant part is at the end of this notebook, the rest is documented for the sake of completeness." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Defining the area of interest\n", "\n", "The data retrieval process looks like in other notebooks:\n", "The sentinelsat API client is initialized and the geometry of an area of interest is fetched using OpenStreetMap nominatim and narrowed down using GeoPandas." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from sentinel_helpers import search_osm, geodataframe_on_map\n", "from datetime import date\n", "import os\n", "from sentinelsat import SentinelAPI\n", "from tqdm.notebook import tqdm\n", "\n", "api = SentinelAPI(os.getenv('SCIHUB_USERNAME'), os.getenv('SCIHUB_PASSWORD'))" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | place_id | \n", "osm_type | \n", "osm_id | \n", "display_name | \n", "place_rank | \n", "category | \n", "type | \n", "importance | \n", "icon | \n", "geometry | \n", "
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "257891092 | \n", "relation | \n", "422436 | \n", "Jüterbog, Teltow-Fläming, Brandenburg, 14913, ... | \n", "16 | \n", "boundary | \n", "administrative | \n", "0.685236 | \n", "https://nominatim.openstreetmap.org/ui/mapicon... | \n", "POLYGON ((12.95605 52.03939, 12.96134 52.03944... | \n", "