From 0e1f1e07b2c8d87f181e081dec652211221171e0 Mon Sep 17 00:00:00 2001 From: "Cedric H. David" Date: Thu, 11 Jun 2020 13:45:34 -0700 Subject: [PATCH] Added append option to writefile. --- TUTORIAL.ipynb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/TUTORIAL.ipynb b/TUTORIAL.ipynb index 726ab00..f58962b 100644 --- a/TUTORIAL.ipynb +++ b/TUTORIAL.ipynb @@ -10,7 +10,7 @@ "If you have not done so already, you need to create an account at ", "https://urs.earthdata.nasa.gov/ in order to access the data used in this ", "tutorial. Once the account is created, your information has to be ", - "included in this tutorial. To do so, we will include them in a file ", + "included in this notebook. To do so, we will include them in a file ", "that is called `.netrc` and that is located in the home directory `~/`. ", "In the cell below, please replace `YourLogin` and `YourPassword` by your ", "own NASA EarthData credentials." @@ -22,7 +22,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%writefile ~/.netrc\n", + "%%writefile -a ~/.netrc\n", "machine urs.earthdata.nasa.gov login YourLogin password YourPassword" ] }, @@ -30,14 +30,14 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Likewise, this tutorial uses data that are freely available from PO.DAAC, " - "one of NASA's Distributed Active Archive Centers. You do not need to " - "create a new account as the EarthData credentials give you access to " - "PO.DAAC, but you'll need to know your Access API Credentials in order to " - "automatically download data. To obtain them, go to " - "https://podaac-tools.jpl.nasa.gov/drive/ and click Access API credentials." - "In the cell below, please replace `YourLogin` and `YourPassword` by your ", - "own PO.DAAC Access API credentials." + "Likewise, this tutorial uses data that are freely available from PO.DAAC,", + " one of NASA's Distributed Active Archive Centers. You do not need to ", + "create a new account as the EarthData credentials give you access to ", + "PO.DAAC, but you'll need to know your Access API Credentials in order to ", + "automatically download data. To obtain them, go to ", + "https://podaac-tools.jpl.nasa.gov/drive/ and click Access API credentials", + ". In the cell below, please replace `YourLogin` and `YourPassword` by ", + "your own PO.DAAC Access API credentials." ] }, { @@ -46,7 +46,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%writefile ~/.netrc\n", + "%%writefile -a ~/.netrc\n", "machine podaac-tools.jpl.nasa.gov login YourLogin password YourPassword" ] },