Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 14, 2024
1 parent 84906cd commit 5374c07
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 162 deletions.
161 changes: 6 additions & 155 deletions notebooks/Implementations/MENA_Benchmarking/NTL_zonal_stats.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -33,7 +33,7 @@
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -61,7 +61,7 @@
},
{
"cell_type": "code",
"execution_count": 108,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -72,165 +72,16 @@
},
{
"cell_type": "code",
"execution_count": 85,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>eFUA_ID</th>\n",
" <th>UC_num</th>\n",
" <th>UC_IDs</th>\n",
" <th>eFUA_name</th>\n",
" <th>Commuting</th>\n",
" <th>Cntry_ISO</th>\n",
" <th>Cntry_name</th>\n",
" <th>FUA_area</th>\n",
" <th>UC_area</th>\n",
" <th>FUA_p_2015</th>\n",
" <th>UC_p_2015</th>\n",
" <th>Com_p_2015</th>\n",
" <th>geometry</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1.0</td>\n",
" <td>1.0</td>\n",
" <td>5959</td>\n",
" <td>Herat</td>\n",
" <td>1.0</td>\n",
" <td>AFG</td>\n",
" <td>Afghanistan</td>\n",
" <td>139.0</td>\n",
" <td>60.0</td>\n",
" <td>888811.175807</td>\n",
" <td>844574.564331</td>\n",
" <td>44236.611476</td>\n",
" <td>MULTIPOLYGON (((5529000.000 4155000.000, 55310...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>192.0</td>\n",
" <td>1.0</td>\n",
" <td>5964</td>\n",
" <td>Guzarah</td>\n",
" <td>1.0</td>\n",
" <td>AFG</td>\n",
" <td>Afghanistan</td>\n",
" <td>32.0</td>\n",
" <td>16.0</td>\n",
" <td>169489.573231</td>\n",
" <td>160204.260864</td>\n",
" <td>9285.312366</td>\n",
" <td>MULTIPOLYGON (((5541000.000 4139000.000, 55420...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>354.0</td>\n",
" <td>1.0</td>\n",
" <td>5968</td>\n",
" <td>Shindand</td>\n",
" <td>0.0</td>\n",
" <td>AFG</td>\n",
" <td>Afghanistan</td>\n",
" <td>12.0</td>\n",
" <td>12.0</td>\n",
" <td>147553.403870</td>\n",
" <td>147553.403870</td>\n",
" <td>0.000000</td>\n",
" <td>MULTIPOLYGON (((5573000.000 4030000.000, 55740...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>505.0</td>\n",
" <td>1.0</td>\n",
" <td>5970</td>\n",
" <td>Qala i Naw</td>\n",
" <td>0.0</td>\n",
" <td>AFG</td>\n",
" <td>Afghanistan</td>\n",
" <td>3.0</td>\n",
" <td>3.0</td>\n",
" <td>79809.722656</td>\n",
" <td>79809.722656</td>\n",
" <td>0.000000</td>\n",
" <td>MULTIPOLYGON (((5592000.000 4221000.000, 55900...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>648.0</td>\n",
" <td>1.0</td>\n",
" <td>5973</td>\n",
" <td>Farah</td>\n",
" <td>1.0</td>\n",
" <td>AFG</td>\n",
" <td>Afghanistan</td>\n",
" <td>32.0</td>\n",
" <td>16.0</td>\n",
" <td>131508.797060</td>\n",
" <td>122843.460327</td>\n",
" <td>8665.336733</td>\n",
" <td>MULTIPOLYGON (((5607000.000 3923000.000, 56080...</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" eFUA_ID UC_num UC_IDs eFUA_name Commuting Cntry_ISO Cntry_name \\\n",
"0 1.0 1.0 5959 Herat 1.0 AFG Afghanistan \n",
"1 192.0 1.0 5964 Guzarah 1.0 AFG Afghanistan \n",
"2 354.0 1.0 5968 Shindand 0.0 AFG Afghanistan \n",
"3 505.0 1.0 5970 Qala i Naw 0.0 AFG Afghanistan \n",
"4 648.0 1.0 5973 Farah 1.0 AFG Afghanistan \n",
"\n",
" FUA_area UC_area FUA_p_2015 UC_p_2015 Com_p_2015 \\\n",
"0 139.0 60.0 888811.175807 844574.564331 44236.611476 \n",
"1 32.0 16.0 169489.573231 160204.260864 9285.312366 \n",
"2 12.0 12.0 147553.403870 147553.403870 0.000000 \n",
"3 3.0 3.0 79809.722656 79809.722656 0.000000 \n",
"4 32.0 16.0 131508.797060 122843.460327 8665.336733 \n",
"\n",
" geometry \n",
"0 MULTIPOLYGON (((5529000.000 4155000.000, 55310... \n",
"1 MULTIPOLYGON (((5541000.000 4139000.000, 55420... \n",
"2 MULTIPOLYGON (((5573000.000 4030000.000, 55740... \n",
"3 MULTIPOLYGON (((5592000.000 4221000.000, 55900... \n",
"4 MULTIPOLYGON (((5607000.000 3923000.000, 56080... "
]
},
"execution_count": 85,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"inF.head()"
]
},
{
"cell_type": "code",
"execution_count": 113,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "9fd5e3dd",
"id": "0",
"metadata": {},
"source": [
"# Urbanization comparison\n",
Expand All @@ -20,7 +20,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "9c6da02f",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -36,7 +36,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "df1bf2ed",
"id": "2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -51,7 +51,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b135cd57",
"id": "3",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -84,7 +84,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "97add9be",
"id": "4",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -115,7 +115,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "34d495aa",
"id": "5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -125,7 +125,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "50115a0d",
"id": "6",
"metadata": {},
"outputs": [],
"source": []
Expand Down

0 comments on commit 5374c07

Please sign in to comment.