Skip to content

Commit

Permalink
shortened cantonal summary
Browse files Browse the repository at this point in the history
  • Loading branch information
hammerdirt committed Jun 10, 2024
1 parent 3d9d38d commit 4b0b53f
Show file tree
Hide file tree
Showing 45 changed files with 1,740 additions and 1,196 deletions.
Binary file modified _build/.doctrees/bern.doctree
Binary file not shown.
Binary file modified _build/.doctrees/combined.doctree
Binary file not shown.
Binary file modified _build/.doctrees/environment.pickle
Binary file not shown.
Binary file modified _build/.doctrees/geneve.doctree
Binary file not shown.
Binary file modified _build/.doctrees/valais.doctree
Binary file not shown.
Binary file modified _build/.doctrees/vaud.doctree
Binary file not shown.
Binary file modified _build/.doctrees/zurich.doctree
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 46 additions & 1 deletion _build/jupyter_execute/bern.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"id": "5bf92247-ef77-4aae-b62f-9388cba6765e",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -113,6 +116,9 @@
"id": "fb4d8635-eb6f-402a-9cd6-8be9c76cce30",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -178,6 +184,9 @@
"id": "d504b355-6ec4-4d6d-b9d6-3459215fcb8b",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -277,6 +286,9 @@
"id": "c016aff6-dc3f-49a1-be4d-48b6448c9d22",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -402,6 +414,9 @@
"id": "7eed90fa-3a84-41d1-8700-6fda0d356f7f",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -527,6 +542,9 @@
"id": "12c52a87-8340-419f-bfd9-75ca85260a97",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1099,6 +1117,9 @@
"id": "fa022a3b-f3bd-41c8-aa11-816ff202eda3",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1126,6 +1147,9 @@
"id": "e2bf0a4b-fc49-420b-bfc1-3e21e0a11cb9",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1157,6 +1181,9 @@
"id": "ef975bf2-e403-4ca2-b9b3-dd80a14c3a86",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1185,6 +1212,9 @@
"id": "2fc10d30-4cc2-456a-aa5e-65365b829ef3",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1217,6 +1247,9 @@
"id": "82f55461-c497-483a-8c38-fbd509809afb",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1246,6 +1279,9 @@
"id": "9b396025-1fa6-4661-9116-593fa1ed741d",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1597,6 +1633,9 @@
"id": "b0bda4c0-1b4a-4011-9ad1-fb3a52aac885",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1637,6 +1676,9 @@
"id": "abc83f2f-6eb7-49c5-8617-4e4df3b5cc8e",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1677,6 +1719,9 @@
"id": "2d5b8904-044b-4aed-916c-5e36018f4087",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1735,7 +1780,7 @@
"\n",
"## Municipal Results - all data\n",
"\n",
"The average pieces per meter of the most common objects for each city.\n",
"The average pieces per meter and the combined land use classification for each city.\n",
"\n",
"::::::::::{tab-set}\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion _build/jupyter_execute/combined.glue.json

Large diffs are not rendered by default.

83 changes: 58 additions & 25 deletions _build/jupyter_execute/combined.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"id": "5bf92247-ef77-4aae-b62f-9388cba6765e",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -180,6 +183,9 @@
"id": "d504b355-6ec4-4d6d-b9d6-3459215fcb8b",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -406,6 +412,9 @@
"id": "7eed90fa-3a84-41d1-8700-6fda0d356f7f",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -532,6 +541,9 @@
"id": "12c52a87-8340-419f-bfd9-75ca85260a97",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1094,6 +1106,9 @@
"id": "fa022a3b-f3bd-41c8-aa11-816ff202eda3",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1121,6 +1136,9 @@
"id": "e2bf0a4b-fc49-420b-bfc1-3e21e0a11cb9",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1152,6 +1170,9 @@
"id": "ef975bf2-e403-4ca2-b9b3-dd80a14c3a86",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1180,6 +1201,9 @@
"id": "2fc10d30-4cc2-456a-aa5e-65365b829ef3",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1212,6 +1236,9 @@
"id": "82f55461-c497-483a-8c38-fbd509809afb",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1241,6 +1268,9 @@
"id": "9b396025-1fa6-4661-9116-593fa1ed741d",
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
Expand Down Expand Up @@ -1607,19 +1637,18 @@
"dxlc = dxl[['location', 'canton', 'feature_type']].drop_duplicates('location')\n",
"dxlc.set_index(['location'], inplace=True, drop=True)\n",
"dxf['canton'] = dxf.location.apply(lambda x : dxlc.loc[x, 'canton'])\n",
"sumlu = {x:'sum' for x in session_config.feature_variables}\n",
"dxf = dxf.groupby(['sample_id', 'canton', *session_config.feature_variables], as_index=False).agg(session_config.unit_agg)\n",
"# sumlu = {x:'sum' for x in session_config.feature_variables}\n",
"dxf = dxf.groupby(['sample_id', 'canton'], as_index=False).agg(session_config.unit_agg)\n",
"\n",
"dxf = dxf.groupby(['canton']).agg({'quantity':'sum', 'pcs/m':'mean', 'sample_id':'nunique', **sumlu})\n",
"dxf = dxf.groupby(['canton']).agg({'quantity':'sum', 'pcs/m':'mean', 'sample_id':'nunique'})\n",
"\n",
"for alabel in session_config.feature_variables:\n",
" dxf[alabel] = dxf[alabel]/dxf.sample_id\n",
"# for alabel in session_config.feature_variables:\n",
"# dxf[alabel] = dxf[alabel]/dxf.sample_id\n",
" \n",
"dxf['check'] = dxf[session_config.feature_variables[:-1]].sum(axis=1)\n",
"dxfc = geospatial.categorize_features(dxf, feature_columns=session_config.feature_variables)\n",
"dxfc.rename(columns={'sample_id':'samples'}, inplace=True)\n",
"dxfc.drop('check', axis=1, inplace=True)\n",
"dxfc = dxfc.style.set_table_styles(userdisplay.table_css_styles)\n",
"# dxf['check'] = dxf[session_config.feature_variables[:-1]].sum(axis=1)\n",
"# dxfc = geospatial.categorize_features(dxf, feature_columns=session_config.feature_variables)\n",
"dxf.rename(columns={'sample_id':'samples'}, inplace=True)\n",
"dxfc = dxf.style.set_table_styles(userdisplay.table_css_styles)\n",
"dxfc = dxfc.apply(highlight_max, arg=lake_results['this_report'].sampling_results_summary['average'], subset=pd.IndexSlice[:, ['pcs/m']])\n",
"dxfc = dxfc.format(userdisplay.format_kwargs, precision=2)\n",
"\n",
Expand Down Expand Up @@ -1647,19 +1676,19 @@
"dxlc = dxl[['location', 'canton', 'feature_type']].drop_duplicates('location')\n",
"dxlc.set_index(['location'], inplace=True, drop=True)\n",
"dxf['canton'] = dxf.location.apply(lambda x : dxlc.loc[x, 'canton'])\n",
"sumlu = {x:'sum' for x in session_config.feature_variables}\n",
"dxf = dxf.groupby(['sample_id', 'canton', *session_config.feature_variables], as_index=False).agg(session_config.unit_agg)\n",
"# sumlu = {x:'sum' for x in session_config.feature_variables}\n",
"dxf = dxf.groupby(['sample_id', 'canton'], as_index=False).agg(session_config.unit_agg)\n",
"\n",
"dxf = dxf.groupby(['canton']).agg({'quantity':'sum', 'pcs/m':'mean', 'sample_id':'nunique', **sumlu})\n",
"dxf = dxf.groupby(['canton']).agg({'quantity':'sum', 'pcs/m':'mean', 'sample_id':'nunique'})\n",
"\n",
"for alabel in session_config.feature_variables:\n",
" dxf[alabel] = dxf[alabel]/dxf.sample_id\n",
"# for alabel in session_config.feature_variables:\n",
"# dxf[alabel] = dxf[alabel]/dxf.sample_id\n",
" \n",
"dxf['check'] = dxf[session_config.feature_variables[:-1]].sum(axis=1)\n",
"dxfcr = geospatial.categorize_features(dxf, feature_columns=session_config.feature_variables)\n",
"dxfcr.rename(columns={'sample_id':'samples'}, inplace=True)\n",
"dxfcr.drop('check', axis=1, inplace=True)\n",
"dxfcr = dxfcr.style.set_table_styles(userdisplay.table_css_styles)\n",
"# dxf['check'] = dxf[session_config.feature_variables[:-1]].sum(axis=1)\n",
"# dxfcr = geospatial.categorize_features(dxf, feature_columns=session_config.feature_variables)\n",
"dxf.rename(columns={'sample_id':'samples'}, inplace=True)\n",
"# dxfcr.drop('check', axis=1, inplace=True)\n",
"dxfcr = dxf.style.set_table_styles(userdisplay.table_css_styles)\n",
"dxfcr = dxfcr.apply(highlight_max, arg=lake_results['this_report'].sampling_results_summary['average'], subset=pd.IndexSlice[:, ['pcs/m']])\n",
"dxfcr = dxfcr.format(userdisplay.format_kwargs, precision=2)\n",
"# glue('all-data-municipal-results', i , display=False)\n",
Expand Down Expand Up @@ -1728,18 +1757,22 @@
":::\n",
"::::\n",
"\n",
"## Municipal Results - all data\n",
"## Cantonal Results - all data\n",
"\n",
"The average pieces per meter of the most common objects for each canton.\n",
"The average pieces per meter for each canton.\n",
"\n",
"::::::::::{tab-set}\n",
"::::::::::{grid}\n",
"\n",
":::::::::{tab-item} Lakes\n",
":::::::::{grid-item-card}\n",
"Lakes\n",
"^^^\n",
"```{glue} lake-municipal-results\n",
"```\n",
":::::::::\n",
"\n",
":::::::::{tab-item} Rivers\n",
":::::::::{grid-item-card}\n",
"Rivers\n",
"^^^\n",
"```{glue} river-municipal-results\n",
"``` \n",
":::::::::\n",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4b0b53f

Please sign in to comment.