From f9980d66c1ab4e0bd20a76c19bd6231910639964 Mon Sep 17 00:00:00 2001 From: tkerr1 <theodoremkerr@gmail.com> Date: Mon, 15 Nov 2021 16:50:38 +0000 Subject: [PATCH] changed the filepath for cci and jpl resample rasters --- .../forest_biomass_summary_DRC_output.ipynb | 87 +++++++++---------- 1 file changed, 43 insertions(+), 44 deletions(-) diff --git a/country_outputs/forest_biomass_summary_DRC_output.ipynb b/country_outputs/forest_biomass_summary_DRC_output.ipynb index 8ad6c66..44cd4ed 100644 --- a/country_outputs/forest_biomass_summary_DRC_output.ipynb +++ b/country_outputs/forest_biomass_summary_DRC_output.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "dominant-titanium", + "id": "sharing-writing", "metadata": {}, "source": [ "# ESA Biomass Climate Change Initiative global forest aboveground biomass dataset v2.0 2010, 2017, 2018\n", @@ -18,7 +18,7 @@ }, { "cell_type": "markdown", - "id": "lucky-clearance", + "id": "future-rebel", "metadata": {}, "source": [ "#### Install these R packages first, and load them into the R session. Source R script with support functions." @@ -27,7 +27,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "surprising-freedom", + "id": "saved-albert", "metadata": { "collapsed": true, "jupyter": { @@ -205,7 +205,7 @@ }, { "cell_type": "markdown", - "id": "dried-opinion", + "id": "lesbian-bibliography", "metadata": {}, "source": [ "#### Set the path to the CCI, JPL, and NCEO Biomass data folders & read in world countries shapefile" @@ -214,7 +214,7 @@ { "cell_type": "code", "execution_count": 16, - "id": "romantic-forge", + "id": "cultural-exemption", "metadata": {}, "outputs": [ { @@ -243,13 +243,12 @@ "world <- readOGR(\"/projects/shared-buckets/leitoldv/NaturalEarth/ne_10m_admin_0_countries.shp\")\n", "\n", "#Hansen forest cover, resampled to CCI Biomass and JPL resolutions\n", - "gfc_folder <- \"/projects/shared-buckets/leitoldv/gfc_data_resampled\"\n", - "tk_gfc_folder <- \"/projects/my-public-bucket/gfc_data_resampled\"" + "gfc_folder <- \"/projects/my-public-bucket/gfc_data_resampled\"" ] }, { "cell_type": "markdown", - "id": "indie-gardening", + "id": "level-single", "metadata": {}, "source": [ "#### Generate 10x10 degree WGS84 grid that the CCI Biomass and Hansen Forest Cover products are tiled on" @@ -258,7 +257,7 @@ { "cell_type": "code", "execution_count": 3, - "id": "electoral-fitting", + "id": "confidential-decision", "metadata": {}, "outputs": [ { @@ -280,7 +279,7 @@ }, { "cell_type": "markdown", - "id": "mexican-tampa", + "id": "informed-schedule", "metadata": {}, "source": [ "#### Print out country names in Africa to select from" @@ -289,7 +288,7 @@ { "cell_type": "code", "execution_count": 4, - "id": "labeled-meditation", + "id": "foreign-document", "metadata": {}, "outputs": [ { @@ -597,7 +596,7 @@ }, { "cell_type": "markdown", - "id": "innovative-poland", + "id": "unavailable-tenant", "metadata": {}, "source": [ "#### Select a country in Africa to plot with corresponding data tiles" @@ -606,7 +605,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "common-coalition", + "id": "hawaiian-journalism", "metadata": {}, "outputs": [ { @@ -666,7 +665,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "secondary-cartoon", + "id": "light-domestic", "metadata": {}, "outputs": [], "source": [ @@ -676,7 +675,7 @@ }, { "cell_type": "markdown", - "id": "banner-healthcare", + "id": "contained-leone", "metadata": {}, "source": [ "#### Read in the CCI Biomass data for this AOI from the downloaded CCI Biomass tiles, mosaicing multiple tiles as necessary" @@ -685,7 +684,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "conceptual-socket", + "id": "quarterly-circulation", "metadata": {}, "outputs": [ { @@ -713,7 +712,7 @@ }, { "cell_type": "markdown", - "id": "interracial-exhibit", + "id": "shaped-maldives", "metadata": {}, "source": [ "#### Plot the CCI AGBD for 2020" @@ -722,7 +721,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "cardiac-proposal", + "id": "conceptual-concert", "metadata": {}, "outputs": [ { @@ -747,7 +746,7 @@ }, { "cell_type": "markdown", - "id": "immediate-excerpt", + "id": "wanted-stone", "metadata": {}, "source": [ "#### Read in the NCEO Biomass data for this AOI from the downloaded data. NCEO data is stored as a single file for the continent of Africa, rather than multiple tiles." @@ -756,7 +755,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "collective-roads", + "id": "hairy-tiger", "metadata": {}, "outputs": [ { @@ -809,7 +808,7 @@ }, { "cell_type": "markdown", - "id": "incorporate-cursor", + "id": "interpreted-advancement", "metadata": {}, "source": [ "#### Plot the NCEO AGBD for 2017" @@ -818,7 +817,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "worse-anniversary", + "id": "outside-controversy", "metadata": {}, "outputs": [ { @@ -859,7 +858,7 @@ }, { "cell_type": "markdown", - "id": "global-tunisia", + "id": "powerful-gallery", "metadata": {}, "source": [ "#### Read in the JPL Biomass data for this AOI" @@ -868,7 +867,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "smart-complement", + "id": "arranged-handle", "metadata": {}, "outputs": [ { @@ -927,7 +926,7 @@ { "cell_type": "code", "execution_count": 14, - "id": "instructional-peter", + "id": "integrated-candy", "metadata": {}, "outputs": [ { @@ -958,7 +957,7 @@ }, { "cell_type": "markdown", - "id": "pharmaceutical-sullivan", + "id": "optical-banana", "metadata": {}, "source": [ "#### Plot the JPL AGBD for 2020" @@ -967,7 +966,7 @@ { "cell_type": "code", "execution_count": 15, - "id": "amazing-extension", + "id": "interstate-polymer", "metadata": {}, "outputs": [ { @@ -992,7 +991,7 @@ }, { "cell_type": "markdown", - "id": "arctic-industry", + "id": "developed-bracelet", "metadata": {}, "source": [ "#### Read in forest cover raster. Currently using 30% forest cover from Hansen product. The cover rasters have been resampled to the resolutions of CCI Biomass, JPL Biomass, and NCEO Biomass for use as a forest cover mask." @@ -1001,7 +1000,7 @@ { "cell_type": "code", "execution_count": 18, - "id": "immediate-perth", + "id": "prerequisite-basketball", "metadata": { "collapsed": true, "jupyter": { @@ -1055,7 +1054,7 @@ }, { "cell_type": "markdown", - "id": "fluid-flashing", + "id": "appointed-dublin", "metadata": {}, "source": [ "#### Create 30% cover forest threshold mask for CCI" @@ -1064,7 +1063,7 @@ { "cell_type": "code", "execution_count": null, - "id": "brief-brooklyn", + "id": "other-offense", "metadata": {}, "outputs": [], "source": [ @@ -1077,7 +1076,7 @@ }, { "cell_type": "markdown", - "id": "reasonable-delight", + "id": "enabling-citation", "metadata": {}, "source": [ "#### Create 30% cover forest threshold mask for JPL" @@ -1086,7 +1085,7 @@ { "cell_type": "code", "execution_count": null, - "id": "fatty-requirement", + "id": "vertical-aside", "metadata": {}, "outputs": [], "source": [ @@ -1099,7 +1098,7 @@ }, { "cell_type": "markdown", - "id": "lesser-panama", + "id": "common-bulgaria", "metadata": {}, "source": [ "#### Create 30% cover forest threshold mask for NCEO" @@ -1108,7 +1107,7 @@ { "cell_type": "code", "execution_count": null, - "id": "blank-programmer", + "id": "prompt-broadcasting", "metadata": {}, "outputs": [], "source": [ @@ -1122,7 +1121,7 @@ { "cell_type": "code", "execution_count": 17, - "id": "military-decrease", + "id": "weighted-updating", "metadata": {}, "outputs": [], "source": [ @@ -1134,14 +1133,14 @@ { "cell_type": "code", "execution_count": null, - "id": "sonic-equilibrium", + "id": "interior-scholarship", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "markdown", - "id": "athletic-hawaiian", + "id": "seeing-number", "metadata": {}, "source": [ "## The following is old code I'm keeping here for reference purposes" @@ -1149,7 +1148,7 @@ }, { "cell_type": "markdown", - "id": "professional-anthropology", + "id": "involved-blink", "metadata": {}, "source": [ "#### Calculate total aboveground biomass and average aboveground biomass density for 2020 CCI and NCEO biomass for the selected country" @@ -1158,7 +1157,7 @@ { "cell_type": "code", "execution_count": 23, - "id": "driven-benjamin", + "id": "typical-patent", "metadata": { "collapsed": true, "jupyter": { @@ -1370,7 +1369,7 @@ }, { "cell_type": "markdown", - "id": "enormous-master", + "id": "harmful-notification", "metadata": {}, "source": [ "#### Print out basic forest aboveground biomass statistics for the selected country\n", @@ -1380,7 +1379,7 @@ { "cell_type": "code", "execution_count": 24, - "id": "reverse-justice", + "id": "specified-label", "metadata": {}, "outputs": [ { @@ -1410,7 +1409,7 @@ { "cell_type": "code", "execution_count": 26, - "id": "canadian-timeline", + "id": "incredible-cable", "metadata": {}, "outputs": [ { @@ -1457,7 +1456,7 @@ { "cell_type": "code", "execution_count": null, - "id": "frank-cannon", + "id": "charged-demand", "metadata": {}, "outputs": [], "source": [] -- GitLab