Skip to content

Commit

Permalink
updating asset links
Browse files Browse the repository at this point in the history
  • Loading branch information
erica-mccormick committed Jun 6, 2021
1 parent 9694b37 commit bcaebc8
Showing 1 changed file with 27 additions and 30 deletions.
57 changes: 27 additions & 30 deletions Code_Part1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"name": "Code_Part1",
"provenance": [],
"collapsed_sections": [],
"toc_visible": true
"toc_visible": true,
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
Expand All @@ -17,19 +18,31 @@
{
"cell_type": "markdown",
"metadata": {
"id": "RfRICAHKt6_a"
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"# **Code for *Evidence for widespread woody plant use of water stored in bedrock***"
"<a href=\"https://colab.research.google.com/github/erica-mccormick/widespread-bedrock-water-use/blob/main/Code_Part1.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "DlQLBqfl2-lw"
"id": "RfRICAHKt6_a"
},
"source": [
"Erica McCormick, David Dralle, W. Jesse Hahm, Alison Tune, Logan Schmidt, Dana Chadwick, and Daniella Rempe"
"# **PART 1: Code for *Evidence for widespread woody plant use of water stored in bedrock***\n",
"**Erica McCormick, David Dralle, W. Jesse Hahm, Alison Tune, Logan Schmidt, Dana Chadwick, and Daniella Rempe**\n",
"\n",
"---\n",
"\n",
"All data products are available in the [Hydroshare repository](https://doi.org/10.4211/hs.a2f0d5fd10f14cd189a3465f72cba6f3) and as GEE assets (Images and ImageCollections, see Part 2).\n",
"\n",
"See [Github](https://github.com/erica-mccormick/widespread-bedrock-water-use) or [Zenodo]() for Part 2 and more information on data inputs and products.\n",
"\n",
"For more information, see [website](https://erica-mccormick.github.io/widespread-bedrock-water-use/).\n",
"\n",
"---"
]
},
{
Expand All @@ -47,7 +60,7 @@
"id": "UQCxr-rE2jcT"
},
"source": [
"Press shift+enter on each chunk while highlighted to run code. The output rasters from this script are $S_r$ and $D_{max}$ for CONUS. $S_{bedrock}$ and $D_{bedrock, 2004-2017}$ can be calculated by subtracting $S_{soil}$ (see Methods). The products from this script can be found on [hydroshare](https://www.hydroshare.org/resource/e7ad140edaf54d69ba4f1cf1ec8e7f73/). The protocol for $S_r$ follows that established by Wang-Erlandsson et al. (2016) and Dralle et al. (2020)."
"Press shift+enter on each chunk while highlighted to run code. The output rasters from this script are $S_r$ and $D_{max}$ for CONUS. $S_{bedrock}$ and $D_{bedrock, 2004-2017}$ can be calculated by subtracting $S_{soil}$ (see Methods). The products from this script can be found on [hydroshare](https://www.hydroshare.org/resource/e7ad140edaf54d69ba4f1cf1ec8e7f73/). The protocol for $S_r$ follows that established by [Wang-Erlandsson et al. (2016)](https://doi.org/10.5194/hess-20-1459-2016) and [Dralle et al. (2020)](https://10.5194/hess-25-2861-2021)."
]
},
{
Expand All @@ -71,7 +84,8 @@
},
"source": [
"import ee\n",
"ee.Authenticate()"
"ee.Authenticate()\n",
"ee.Initialize()"
],
"execution_count": null,
"outputs": [
Expand All @@ -91,17 +105,6 @@
}
]
},
{
"cell_type": "code",
"metadata": {
"id": "gTowStYzt1tU"
},
"source": [
"ee.Initialize()"
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -152,15 +155,9 @@
},
"source": [
"# Regions\n",
"conus = ee.FeatureCollection(\"users/ericaelmstead/20_RockMoisture/Regions/CONUS\")\n",
"ca = ee.Feature(ee.FeatureCollection(\"users/daviddralle/ca_et/CA\").first())\n",
"tx = ee.Feature(ee.FeatureCollection(\"users/ericaelmstead/20_RockMoisture/Regions/tx\").first())\n",
"\n",
"# gNATSGO derived (Soil Survey Staff, 2019):\n",
"us_soil = ee.Image(\"users/ericaelmstead/20_RockMoisture/gNATSGO/US_AWS_reprojected\")\n",
"densic = ee.Image(\"users/ericaelmstead/20_RockMoisture/gNATSGO/densic_weavg_lower_reprojected\")\n",
"lithic = ee.Image(\"users/ericaelmstead/20_RockMoisture/gNATSGO/lithic_weavg_lower_reprojected\")\n",
"paralithic = ee.Image(\"users/ericaelmstead/20_RockMoisture/gNATSGO/paralithic_weavg_lower_reprojected\")"
"conus = ee.FeatureCollection('users/ericamccormick/20_RockMoisture/geometries/conus_20m')\n",
"texas = ee.FeatureCollection('users/ericamccormick/20_RockMoisture/geometries/TX')"
],
"execution_count": null,
"outputs": []
Expand All @@ -172,10 +169,10 @@
},
"source": [
"# gNATSGO derived (Soil Survey Staff, 2019):\n",
"us_soil = ee.Image(\"users/ericaelmstead/20_RockMoisture/gNATSGO/US_AWS_reprojected\")\n",
"densic = ee.Image(\"users/ericaelmstead/20_RockMoisture/gNATSGO/densic_weavg_lower_reprojected\").reproject(crs='EPSG:4326',scale=90)\n",
"lithic = ee.Image(\"users/ericaelmstead/20_RockMoisture/gNATSGO/lithic_weavg_lower_reprojected\").reproject(crs='EPSG:4326',scale=90)\n",
"paralithic = ee.Image(\"users/ericaelmstead/20_RockMoisture/gNATSGO/paralithic_weavg_lower_reprojected\").reproject(crs='EPSG:4326',scale=90)"
"us_soil = ee.Image('users/ericamccormick/20_RockMoisture/products/gNATSGO/Ssoil_500m')\n",
"densic = ee.Image('users/ericamccormick/20_RockMoisture/products/gNATSGO/densic_weavg_lower_reprojected').reproject(crs='EPSG:4326',scale=90) # Soil Survey Staff, 2020\n",
"paralithic = ee.Image('users/ericamccormick/20_RockMoisture/products/gNATSGO/paralithic_weavg_lower_reprojected').reproject(crs='EPSG:4326',scale=90) # Soil Survey Staff, 2020\n",
"lithic = ee.Image(\"users/ericaelmstead/20_RockMoisture/gNATSGO/lithic_weavg_lower_reprojected\").reproject(crs='EPSG:4326',scale=90) # Soil Survey Staff, 2020"
],
"execution_count": null,
"outputs": []
Expand Down

0 comments on commit bcaebc8

Please sign in to comment.