mirror of
https://github.com/heyarne/earth-observation-for-journalism.git
synced 2026-05-07 03:23:40 +02:00
Consistently use $SCIHUB_USERNAME and $SCIHUB_PASSWORD
This commit is contained in:
parent
5d4d870bb4
commit
c82fd70914
6 changed files with 370 additions and 1422 deletions
|
|
@ -73,10 +73,10 @@
|
|||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import os\n",
|
||||
"from sentinelsat import SentinelAPI\n",
|
||||
"\n",
|
||||
"# you need to set up the ~/.netrc in order for the login to work\n",
|
||||
"api = SentinelAPI(None, None)"
|
||||
"api = SentinelAPI(os.getenv('SCIHUB_USERNAME'), os.getenv('SCIHUB_PASSWORD'))"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -765,9 +765,7 @@
|
|||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"metadata": {
|
||||
"scrolled": false
|
||||
},
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
|
|
@ -5971,7 +5969,7 @@
|
|||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.8.5"
|
||||
"version": "3.8.6"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue