Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Amy Steiker <[email protected]>
  • Loading branch information
jroebuck932 and asteiker committed May 3, 2023
1 parent 4f9255f commit f53c9a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion notebooks/measures/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Search, Download and Plot multiple GeoTIFFs
In this tutorial we demonstrate how to programmatically access and download NSIDC DAAC data (that are available in GeoTIFF format) to your local computer. We then walk through the steps for cropping and resampling one GeoTIFF based on the extent and and pixel size of another GeoTIFF, with the end goal of plotting one on top of the other.
In this tutorial we demonstrate how to programmatically access and download GeoTIFF files from the NSIDC DAAC data to your local computer. We then walk through the steps for cropping and resampling one GeoTIFF based on the extent and pixel size of another GeoTIFF, with the end goal of plotting one on top of the other.

We use two data sets from the NASA [MEaSUREs](https://nsidc.org/data/measures) (Making Earth System data records for Use in Research Environments) program as an example:

Expand Down
14 changes: 7 additions & 7 deletions notebooks/measures/Search_Download_and_Plot_GeoTIFFs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"source": [
"## **1. Tutorial Overview**\n",
"\n",
"This tutorial guides you through programmatically accessing and downloading NSIDC DAAC data (that are available in GeoTIFF format) to your local computer. Then cropping and resampling one GeoTIFF based on the extent and and pixel size of another GeoTIFF, then plotting one on top of the other. \n",
"This tutorial guides you through programmatically accessing and downloading GeoTIFF files from the NSIDC DAAC to your local computer. We then crop and resample one GeoTIFF based on the extent and pixel size of another GeoTIFF, then plot one on top of the other. \n",
"\n",
"We will use two data sets from the NASA [MEaSUREs](https://nsidc.org/data/measures) (Making Earth System data records for Use in Research Environments) program as an example:\n",
"\n",
Expand All @@ -35,7 +35,7 @@
"source": [
"### **Credits**\n",
"\n",
"Jennifer Roebuck developed to this tutorial\n",
"This tutorial was developed by Jennifer Roebuck of NSIDC.\n",
"\n",
"For questions regarding the notebook, or to report problems, please create a new issue in the [NSIDC-Data-Tutorials repo](https://github.com/nsidc/NSIDC-Data-Tutorials/issues)."
]
Expand All @@ -61,7 +61,7 @@
"\n",
"To run this tutorial you will need:\n",
"1. An Earthdata Login for authentication and downloading the data. It is completely free. If you don't have one, you can register for one [here](https://urs.earthdata.nasa.gov/). \n",
"2. A .netrc file with your Earthdata Login username and password. We recommend using a .netrc file for storing your Earthdata Login username and password. Instructions for setting one up can be found in Step 1 in this [Programmatic Data Access Guide](https://nsidc.org/data/user-resources/help-center/programmatic-data-access-guide#anchor-0). If you don't want to set one up, you will be prompted for our username and password during the tutorial.\n",
"2. A .netrc file. We recommend using a .netrc file for storing your Earthdata Login username and password. Instructions for setting one up can be found in Step 1 in this [Programmatic Data Access Guide](https://nsidc.org/data/user-resources/help-center/programmatic-data-access-guide#anchor-0). If you don't want to set one up, you will be prompted for our username and password during the tutorial.\n",
"3. A basic understanding of python may also be helpful for this tutorial, but not necessary."
]
},
Expand Down Expand Up @@ -149,9 +149,9 @@
"metadata": {},
"source": [
"### **Search for data using spatial and temporal filters**\n",
"This tutorial assumes we already know which data sets we would like to download (that have data in GeoTIFF format). Each data set at NSIDC has a data set ID, it can be found after the title on the data set landing page. \n",
"This tutorial assumes we already know which data sets we would like to download (that have data in GeoTIFF format). Each data set at NSIDC has a data set ID; it can be found after the title on the data set landing page. \n",
"\n",
"We will look at two data sets focused on Greenland: a Digital Elevation Model (DEM) and velocity at glacier sites ([NSIDC-0715](https://nsidc.org/data/nsidc-0715) and [NSIDC-0481](https://nsidc.org/data/nsidc-0481)). We will use the `search_data` method from the `earthaccess` library and the following variables to search for granules within these data sets and it will output the number of granules that meet the search criteria for each data set:\n",
"We will look at two data sets focused on Greenland: a Digital Elevation Model (DEM) ([NSIDC-0715](https://nsidc.org/data/nsidc-0715)) and velocity at glacier sites ([NSIDC-0481](https://nsidc.org/data/nsidc-0481)). We will use the `search_data` method from the `earthaccess` library and the following variables to search for granules within these data sets and it will output the number of granules that meet the search criteria for each data set:\n",
"\n",
"* `short_name` - this is the data set ID e.g., NSIDC-0715, NSIDC-0481. It can be found in the data set title on the data set landing page.\n",
"* `version` - data set version number, also included in the data set title.\n",
Expand Down Expand Up @@ -201,7 +201,7 @@
"### **Download the data**\n",
"Now we have found granules that meet our search criteria we can download them using the `download` method from `earthaccess`. Note that for these particular data sets within each granule there are multiple files. So even though 1 granule was found for the DEM data set, 6 files will be downloaded. The progress and size of each order will be printed out.\n",
"\n",
"We will create a folder called 'outputs' to save the downloaded files in. This folder will be created in the folder we are running this notebook from. "
"We will create a folder called 'outputs' to store the downloaded files. This folder will be created in the folder where we are currently running this notebook. "
]
},
{
Expand Down Expand Up @@ -403,7 +403,7 @@
"metadata": {},
"source": [
"### **Plot the DEM and velocity data**\n",
"Now we can use the `matplotlib` library to plot the DEM with the velocity data on top. We will set the transparency of the velocity layer so we can see the DEM underneath. There is also an option to save the figure as .png, we can uncomment the last line if we want to save the image."
"Now we can use the `matplotlib` library to plot the DEM with the velocity data on top. We will set the transparency of the velocity layer so we can see the DEM underneath. There is also an option to save the figure as .png; we can uncomment the last line if we want to save the image."
]
},
{
Expand Down

0 comments on commit f53c9a2

Please sign in to comment.