Consistently use $SCIHUB_USERNAME and $SCIHUB_PASSWORD

This commit is contained in:
heyarne 2020-11-24 14:31:51 +00:00
commit c82fd70914
6 changed files with 370 additions and 1422 deletions

View file

@ -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,