Skip to content

Commit

Permalink
Fix typos in .ipynb files with codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jul 11, 2021
1 parent cab09eb commit 908bdad
Show file tree
Hide file tree
Showing 31 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
pip install --user --no-cache-dir Cython
pip install codespell -r requirements.txt -r requirements_dev.txt
- name: Discover typos with codespell
run: codespell --ignore-words-list="aci,fallow,hist,nd,wqs" --skip="*.bib,*.csv,*.geojson,*.ipynb,*.json,*.kml"
run: codespell --skip="*.csv,*.geojson" --ignore-words-list="aci,acount,acounts,fallow,hart,hist,nd,ned,ois,wqs"
- name: LOAD EE CREDENTIALS
run: python ./.github/ee_token.py
env:
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/14_legends.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"There are three ways you can add customized legends for Earth Engine data\n",
"\n",
"1. Define legend keys and colors\n",
"2. Defind legend dictionary\n",
"2. Define legend dictionary\n",
"3. Convert Earth Engine class table to legend dictionary\n",
"\n",
"### Define legend keys and colors"
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/25_load_rasters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"To follow this tutorial, you need to install the [geemap] and [xarray_leaflet](https://github.com/davidbrochart/xarray_leaflet/tree/master/xarray_leaflet) Python packages. Use the following conda commmands to create a conda env and install packages:\n",
"To follow this tutorial, you need to install the [geemap] and [xarray_leaflet](https://github.com/davidbrochart/xarray_leaflet/tree/master/xarray_leaflet) Python packages. Use the following conda commands to create a conda env and install packages:\n",
"\n",
"- `conda create -n gee python`\n",
"- `conda activate gee`\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/notebooks/41_water_app.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"\n",
"**Steps to create Landsat timeseries:**\n",
"\n",
"1. Pan and zoom to your area of interest (AOI), and click on the map to select a polygon. Alternatively, you can enable `Use user-drawn AOI` and use the Drawing tools (e.g., rectange) to draw a shape on the map.\n",
"1. Pan and zoom to your area of interest (AOI), and click on the map to select a polygon. Alternatively, you can enable `Use user-drawn AOI` and use the Drawing tools (e.g., rectangle) to draw a shape on the map.\n",
"2. Adjust the parameters (e.g., band combination, threshold, color, download chart data) if needed. \n",
"3. Click the `Submit` button to create timeseries of Landsat imagery and normalized difference indices.\n",
"\n",
Expand Down Expand Up @@ -164,7 +164,7 @@
" 'Soil Index (NDSI)',\n",
" 'Burn Ratio (NBR)',\n",
" 'Customized']\n",
"nd_indices = widgets.Dropdown(options=nd_options, value='Modified Water Index (MNDWI)', description='Normalized Difference Indes:', style=style)\n",
"nd_indices = widgets.Dropdown(options=nd_options, value='Modified Water Index (MNDWI)', description='Normalized Difference Index:', style=style)\n",
"\n",
"first_band = widgets.Dropdown(\n",
" description='1st band:',\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/notebooks/46_local_rf_training.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"metadata": {},
"outputs": [],
"source": [
"# get the features and labels into seperate variables\n",
"# get the features and labels into separate variables\n",
"X = df[feature_names]\n",
"y = df[label]"
]
Expand Down Expand Up @@ -245,7 +245,7 @@
"source": [
"Yay!! 🎉 Looks like our example works. Don't party too much because there is a catch...\n",
"\n",
"This workflow has several limitations particularly due to how much data you can pass from the client to the server and how large of a model ee can acutally handle. EE can only handle 40MB of data passed to the server, so if you have a lot of large decision tree strings then this will not work. Also, creating a classifier from strings has limitation (see this ee-forum discussion: https://groups.google.com/g/google-earth-engine-developers/c/lFFU1GBPzi8/m/6MewQk1FBwAJ), this is again limited by string lengths when ee creates a computation graph.\n",
"This workflow has several limitations particularly due to how much data you can pass from the client to the server and how large of a model ee can actually handle. EE can only handle 40MB of data passed to the server, so if you have a lot of large decision tree strings then this will not work. Also, creating a classifier from strings has limitation (see this ee-forum discussion: https://groups.google.com/g/google-earth-engine-developers/c/lFFU1GBPzi8/m/6MewQk1FBwAJ), this is again limited by string lengths when ee creates a computation graph.\n",
"\n",
"So, you can use this but know you will probably run into errors when training large models."
]
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/48_folium_legend.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"There are three ways you can add customized legends for Earth Engine data\n",
"\n",
"1. Define legend labels and colors\n",
"2. Defind legend dictionary\n",
"2. Define legend dictionary\n",
"3. Convert Earth Engine class table to legend dictionary\n",
"\n",
"### Define legend keys and colors"
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/51_cartoee_projections.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"As you can see from the result there are warping effects on the plotted image. There is really no way of getting aound this (other than requesting a larger extent of data which may not alway be the case). \n",
"As you can see from the result there are warping effects on the plotted image. There is really no way of getting aound this (other than requesting a larger extent of data which may not always be the case). \n",
"\n",
"So, what we can do is set the extent of the map to a more realistic view after plotting the image as in the following example:"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/57_cartoee_blend.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
" \"color\": \"00000088\",\n",
" \"width\": 1,\n",
" \"fillColor\": \"00000000\"}\n",
"Map.addLayer(countries.style(**style), {}, \"Countires\")\n",
"Map.addLayer(countries.style(**style), {}, \"Countries\")\n",
"\n",
"ndvi = image.visualize(**vis_params)\n",
"blend = ndvi.blend(countries.style(**style))\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/cartoee_projections.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"As you can see from the result there are warping effects on the plotted image. There is really no way of getting aound this (other than requesting a larger extent of data which may not alway be the case). \n",
"As you can see from the result there are warping effects on the plotted image. There is really no way of getting aound this (other than requesting a larger extent of data which may not always be the case). \n",
"\n",
"So, what we can do is set the extent of the map to a more realistic view after plotting the image as in the following example:"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/geemap_and_ipyleaflet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
"version_minor": 0
},
"text/plain": [
"Map(center=[47.5, -101], controls=(WidgetControl(options=['position'], widget=HBox(children=(ToggleButton(valu"
"Map(center=[47.5, -101], controls=(WidgetControl(options=['position'], widget=HBox(children=(ToggleButton(value"
]
},
"metadata": {},
Expand Down
4 changes: 2 additions & 2 deletions docs/notebooks/local_rf_training.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"metadata": {},
"outputs": [],
"source": [
"# get the features and labels into seperate variables\n",
"# get the features and labels into separate variables\n",
"X = df[feature_names]\n",
"y = df[label]"
]
Expand Down Expand Up @@ -200,7 +200,7 @@
"source": [
"Yay!! 🎉 Looks like our example works. Don't party too much because there is a catch...\n",
"\n",
"This workflow has several limitations particularly due to how much data you can pass from the client to the server and how large of a model ee can acutally handle. EE can only handle 40MB of data passed to the server, so if you have a lot of large decision tree strings then this will not work. Also, creating a classifier from strings has limitation (see this ee-forum discussion: https://groups.google.com/g/google-earth-engine-developers/c/lFFU1GBPzi8/m/6MewQk1FBwAJ), this is again limited by string lengths when ee creates a computation graph.\n",
"This workflow has several limitations particularly due to how much data you can pass from the client to the server and how large of a model ee can actually handle. EE can only handle 40MB of data passed to the server, so if you have a lot of large decision tree strings then this will not work. Also, creating a classifier from strings has limitation (see this ee-forum discussion: https://groups.google.com/g/google-earth-engine-developers/c/lFFU1GBPzi8/m/6MewQk1FBwAJ), this is again limited by string lengths when ee creates a computation graph.\n",
"\n",
"So, you can use this but know you will probably run into errors when training large models."
]
Expand Down
4 changes: 2 additions & 2 deletions docs/notebooks/oil_palm_and_rubber_plantation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@
"legend = widgets.HTML(\n",
" value='<img src=\"https://i.imgur.com/Ye2sgan.png\">',\n",
" placeholder='Land cover',\n",
" descripition='Land cover'\n",
" description='Land cover'\n",
")\n",
"\n",
"citation = widgets.HTML(\n",
" value='Reference: <a href=\"https://go.nature.com/2QBIrYe\">https://go.nature.com/2QBIrYe</a>',\n",
" placeholder='Land cover',\n",
" descripition='Land cover'\n",
" description='Land cover'\n",
")\n",
"\n",
"dropdown = widgets.Dropdown(\n",
Expand Down
10 changes: 5 additions & 5 deletions docs/notebooks/select_features.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"source": [
"<h1>Contents<span class=\"tocSkip\"></span></h1>\n",
"<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#Install-geemap\" data-toc-modified-id=\"Install-geemap-1\"><span class=\"toc-item-num\">1&nbsp;&nbsp;</span>Install geemap</a></span></li><li><span><a href=\"#Create-an-interactive-map\" data-toc-modified-id=\"Create-an-interactive-map-2\"><span class=\"toc-item-num\">2&nbsp;&nbsp;</span>Create an interactive map</a></span></li><li><span><a href=\"#Add-data-to-the-map\" data-toc-modified-id=\"Add-data-to-the-map-3\"><span class=\"toc-item-num\">3&nbsp;&nbsp;</span>Add data to the map</a></span></li><li><span><a href=\"#TIGER:-US-Census-States\" data-toc-modified-id=\"TIGER:-US-Census-States-4\"><span class=\"toc-item-num\">4&nbsp;&nbsp;</span>TIGER: US Census States</a></span><ul class=\"toc-item\"><li><span><a href=\"#Displaying-data\" data-toc-modified-id=\"Displaying-data-4.1\"><span class=\"toc-item-num\">4.1&nbsp;&nbsp;</span>Displaying data</a></span></li><li><span><a href=\"#Dispalying-vector-as-raster\" data-toc-modified-id=\"Dispalying-vector-as-raster-4.2\"><span class=\"toc-item-num\">4.2&nbsp;&nbsp;</span>Dispalying vector as raster</a></span></li><li><span><a href=\"#Select-by-attribute\" data-toc-modified-id=\"Select-by-attribute-4.3\"><span class=\"toc-item-num\">4.3&nbsp;&nbsp;</span>Select by attribute</a></span><ul class=\"toc-item\"><li><span><a href=\"#Select-one-single-state\" data-toc-modified-id=\"Select-one-single-state-4.3.1\"><span class=\"toc-item-num\">4.3.1&nbsp;&nbsp;</span>Select one single state</a></span></li><li><span><a href=\"#Select-multiple-states\" data-toc-modified-id=\"Select-multiple-states-4.3.2\"><span class=\"toc-item-num\">4.3.2&nbsp;&nbsp;</span>Select multiple states</a></span></li><li><span><a href=\"#Printing-all-values-of-a-column\" data-toc-modified-id=\"Printing-all-values-of-a-column-4.3.3\"><span class=\"toc-item-num\">4.3.3&nbsp;&nbsp;</span>Printing all values of a column</a></span></li><li><span><a href=\"#Discriptive-statistics-of-a-column\" data-toc-modified-id=\"Discriptive-statistics-of-a-column-4.3.4\"><span class=\"toc-item-num\">4.3.4&nbsp;&nbsp;</span>Discriptive statistics of a column</a></span></li><li><span><a href=\"#Add-a-new-column-to-the-attribute-table\" data-toc-modified-id=\"Add-a-new-column-to-the-attribute-table-4.3.5\"><span class=\"toc-item-num\">4.3.5&nbsp;&nbsp;</span>Add a new column to the attribute table</a></span></li><li><span><a href=\"#Set-symbology-based-on-column--values\" data-toc-modified-id=\"Set-symbology-based-on-column--values-4.3.6\"><span class=\"toc-item-num\">4.3.6&nbsp;&nbsp;</span>Set symbology based on column values</a></span></li><li><span><a href=\"#Download-attribute-table-as-a-CSV\" data-toc-modified-id=\"Download-attribute-table-as-a-CSV-4.3.7\"><span class=\"toc-item-num\">4.3.7&nbsp;&nbsp;</span>Download attribute table as a CSV</a></span></li><li><span><a href=\"#Formatting-the-output\" data-toc-modified-id=\"Formatting-the-output-4.3.8\"><span class=\"toc-item-num\">4.3.8&nbsp;&nbsp;</span>Formatting the output</a></span></li><li><span><a href=\"#Download-data-as-shapefile-to-Google-Drive\" data-toc-modified-id=\"Download-data-as-shapefile-to-Google-Drive-4.3.9\"><span class=\"toc-item-num\">4.3.9&nbsp;&nbsp;</span>Download data as shapefile to Google Drive</a></span></li></ul></li></ul></li><li><span><a href=\"#TIGER:-US-Census-Blocks\" data-toc-modified-id=\"TIGER:-US-Census-Blocks-5\"><span class=\"toc-item-num\">5&nbsp;&nbsp;</span>TIGER: US Census Blocks</a></span></li><li><span><a href=\"#TIGER:-US-Census-Counties-2018\" data-toc-modified-id=\"TIGER:-US-Census-Counties-2018-6\"><span class=\"toc-item-num\">6&nbsp;&nbsp;</span>TIGER: US Census Counties 2018</a></span></li><li><span><a href=\"#TIGER:-US-Census-Tracts\" data-toc-modified-id=\"TIGER:-US-Census-Tracts-7\"><span class=\"toc-item-num\">7&nbsp;&nbsp;</span>TIGER: US Census Tracts</a></span></li><li><span><a href=\"#TIGER:-US-Census-Roads\" data-toc-modified-id=\"TIGER:-US-Census-Roads-8\"><span class=\"toc-item-num\">8&nbsp;&nbsp;</span>TIGER: US Census Roads</a></span></li></ul></div>"
"<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#Install-geemap\" data-toc-modified-id=\"Install-geemap-1\"><span class=\"toc-item-num\">1&nbsp;&nbsp;</span>Install geemap</a></span></li><li><span><a href=\"#Create-an-interactive-map\" data-toc-modified-id=\"Create-an-interactive-map-2\"><span class=\"toc-item-num\">2&nbsp;&nbsp;</span>Create an interactive map</a></span></li><li><span><a href=\"#Add-data-to-the-map\" data-toc-modified-id=\"Add-data-to-the-map-3\"><span class=\"toc-item-num\">3&nbsp;&nbsp;</span>Add data to the map</a></span></li><li><span><a href=\"#TIGER:-US-Census-States\" data-toc-modified-id=\"TIGER:-US-Census-States-4\"><span class=\"toc-item-num\">4&nbsp;&nbsp;</span>TIGER: US Census States</a></span><ul class=\"toc-item\"><li><span><a href=\"#Displaying-data\" data-toc-modified-id=\"Displaying-data-4.1\"><span class=\"toc-item-num\">4.1&nbsp;&nbsp;</span>Displaying data</a></span></li><li><span><a href=\"#Displaying-vector-as-raster\" data-toc-modified-id=\"Displaying-vector-as-raster-4.2\"><span class=\"toc-item-num\">4.2&nbsp;&nbsp;</span>Displaying vector as raster</a></span></li><li><span><a href=\"#Select-by-attribute\" data-toc-modified-id=\"Select-by-attribute-4.3\"><span class=\"toc-item-num\">4.3&nbsp;&nbsp;</span>Select by attribute</a></span><ul class=\"toc-item\"><li><span><a href=\"#Select-one-single-state\" data-toc-modified-id=\"Select-one-single-state-4.3.1\"><span class=\"toc-item-num\">4.3.1&nbsp;&nbsp;</span>Select one single state</a></span></li><li><span><a href=\"#Select-multiple-states\" data-toc-modified-id=\"Select-multiple-states-4.3.2\"><span class=\"toc-item-num\">4.3.2&nbsp;&nbsp;</span>Select multiple states</a></span></li><li><span><a href=\"#Printing-all-values-of-a-column\" data-toc-modified-id=\"Printing-all-values-of-a-column-4.3.3\"><span class=\"toc-item-num\">4.3.3&nbsp;&nbsp;</span>Printing all values of a column</a></span></li><li><span><a href=\"#Discriptive-statistics-of-a-column\" data-toc-modified-id=\"Discriptive-statistics-of-a-column-4.3.4\"><span class=\"toc-item-num\">4.3.4&nbsp;&nbsp;</span>Discriptive statistics of a column</a></span></li><li><span><a href=\"#Add-a-new-column-to-the-attribute-table\" data-toc-modified-id=\"Add-a-new-column-to-the-attribute-table-4.3.5\"><span class=\"toc-item-num\">4.3.5&nbsp;&nbsp;</span>Add a new column to the attribute table</a></span></li><li><span><a href=\"#Set-symbology-based-on-column--values\" data-toc-modified-id=\"Set-symbology-based-on-column--values-4.3.6\"><span class=\"toc-item-num\">4.3.6&nbsp;&nbsp;</span>Set symbology based on column values</a></span></li><li><span><a href=\"#Download-attribute-table-as-a-CSV\" data-toc-modified-id=\"Download-attribute-table-as-a-CSV-4.3.7\"><span class=\"toc-item-num\">4.3.7&nbsp;&nbsp;</span>Download attribute table as a CSV</a></span></li><li><span><a href=\"#Formatting-the-output\" data-toc-modified-id=\"Formatting-the-output-4.3.8\"><span class=\"toc-item-num\">4.3.8&nbsp;&nbsp;</span>Formatting the output</a></span></li><li><span><a href=\"#Download-data-as-shapefile-to-Google-Drive\" data-toc-modified-id=\"Download-data-as-shapefile-to-Google-Drive-4.3.9\"><span class=\"toc-item-num\">4.3.9&nbsp;&nbsp;</span>Download data as shapefile to Google Drive</a></span></li></ul></li></ul></li><li><span><a href=\"#TIGER:-US-Census-Blocks\" data-toc-modified-id=\"TIGER:-US-Census-Blocks-5\"><span class=\"toc-item-num\">5&nbsp;&nbsp;</span>TIGER: US Census Blocks</a></span></li><li><span><a href=\"#TIGER:-US-Census-Counties-2018\" data-toc-modified-id=\"TIGER:-US-Census-Counties-2018-6\"><span class=\"toc-item-num\">6&nbsp;&nbsp;</span>TIGER: US Census Counties 2018</a></span></li><li><span><a href=\"#TIGER:-US-Census-Tracts\" data-toc-modified-id=\"TIGER:-US-Census-Tracts-7\"><span class=\"toc-item-num\">7&nbsp;&nbsp;</span>TIGER: US Census Tracts</a></span></li><li><span><a href=\"#TIGER:-US-Census-Roads\" data-toc-modified-id=\"TIGER:-US-Census-Roads-8\"><span class=\"toc-item-num\">8&nbsp;&nbsp;</span>TIGER: US Census Roads</a></span></li></ul></div>"
]
},
{
Expand Down Expand Up @@ -86,7 +86,7 @@
"source": [
"## Add data to the map\n",
"\n",
"If you have shapefiles on your computer, you can load shapefiles onto the map using the following script. Note that this will work with small shapefiles. If you shapefiles have complicated geometries and numerous verticies, they might exceed the direct upload limit. In that case, you will have to ingest shapefiles to your GEE account. See instructions [here](https://developers.google.com/earth-engine/importing). "
"If you have shapefiles on your computer, you can load shapefiles onto the map using the following script. Note that this will work with small shapefiles. If you shapefiles have complicated geometries and numerous vertices, they might exceed the direct upload limit. In that case, you will have to ingest shapefiles to your GEE account. See instructions [here](https://developers.google.com/earth-engine/importing). "
]
},
{
Expand Down Expand Up @@ -239,7 +239,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Dispalying vector as raster"
"### Displaying vector as raster"
]
},
{
Expand Down Expand Up @@ -382,7 +382,7 @@
"source": [
"#### Discriptive statistics of a column\n",
"\n",
"For example, we can calcualte the total land area of all states:"
"For example, we can calculate the total land area of all states:"
]
},
{
Expand Down Expand Up @@ -531,7 +531,7 @@
"\n",
"desc = 'states'\n",
"\n",
"# Set configration parameters for output vector\n",
"# Set configuration parameters for output vector\n",
"task_config = {\n",
" 'folder': 'gee-data', # output Google Drive folder\n",
" 'fileFormat': 'SHP', \n",
Expand Down
6 changes: 3 additions & 3 deletions docs/notebooks/us_census_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Dispalying vector as raster"
"### Displaying vector as raster"
]
},
{
Expand Down Expand Up @@ -239,7 +239,7 @@
"source": [
"#### Discriptive statistics of a column\n",
"\n",
"For example, we can calcualte the total land area of all states:"
"For example, we can calculate the total land area of all states:"
]
},
{
Expand Down Expand Up @@ -388,7 +388,7 @@
"\n",
"desc = 'states'\n",
"\n",
"# Set configration parameters for output vector\n",
"# Set configuration parameters for output vector\n",
"task_config = {\n",
" 'folder': 'gee-data', # output Google Drive folder\n",
" 'fileFormat': 'SHP', \n",
Expand Down
Loading

0 comments on commit 908bdad

Please sign in to comment.