From a005a2a2e322c0ce1935241d00ec674efdf57c45 Mon Sep 17 00:00:00 2001 From: rabii-chaarani Date: Wed, 6 Nov 2024 14:25:41 +0930 Subject: [PATCH] chore: update cells --- examples/ntgs_example_1.ipynb | 533 +--------------------------------- 1 file changed, 9 insertions(+), 524 deletions(-) diff --git a/examples/ntgs_example_1.ipynb b/examples/ntgs_example_1.ipynb index 857017c..ebde219 100644 --- a/examples/ntgs_example_1.ipynb +++ b/examples/ntgs_example_1.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "initial_id", "metadata": { "ExecuteTime": { @@ -24,7 +24,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "eec0e1145cd2b0c6", "metadata": { "ExecuteTime": { @@ -53,19 +53,10 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "c100ae76", "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/home/rabii/Git_Repos/m2l_pypi/lib/python3.11/site-packages/osgeo/gdal.py:312: FutureWarning: Neither gdal.UseExceptions() nor gdal.DontUseExceptions() has been explicitly called. In GDAL 4.0, exceptions will be enabled by default.\n", - " warnings.warn(\n" - ] - } - ], + "outputs": [], "source": [ "xmin, ymax = 194970,7342378\n", "xmax, ymin = 348104,7306552\n", @@ -89,7 +80,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "id": "2cefe141abea8187", "metadata": { "ExecuteTime": { @@ -131,7 +122,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "id": "826effa7a96f801f", "metadata": { "ExecuteTime": { @@ -158,64 +149,7 @@ "start_time": "2024-09-16T05:49:12.424661Z" } }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Datatype FAULT is not set and so cannot be loaded\n", - "\n", - "Datatype FAULT_ORIENTATION is not set and so cannot be loaded\n", - "\n", - "Datatype FAULT is not set and so cannot be loaded\n", - "\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "\n", - "/home/rabii/Git_Repos/m2l_pypi/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py:1241: RuntimeWarning: Mean of empty slice\n", - " return np.nanmean(a, axis, out=out, keepdims=keepdims)\n", - "/home/rabii/Git_Repos/map2loop/map2loop/thickness_calculator.py:361: RuntimeWarning: Mean of empty slice\n", - " mean = numpy.nanmean(_thickness)\n", - "/home/rabii/Git_Repos/m2l_pypi/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py:2053: RuntimeWarning: Degrees of freedom <= 0 for slice.\n", - " var = nanvar(a, axis=axis, dtype=dtype, out=out, ddof=ddof,\n", - "/home/rabii/Git_Repos/m2l_pypi/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py:1241: RuntimeWarning: Mean of empty slice\n", - " return np.nanmean(a, axis, out=out, keepdims=keepdims)\n", - "/home/rabii/Git_Repos/map2loop/map2loop/thickness_calculator.py:361: RuntimeWarning: Mean of empty slice\n", - " mean = numpy.nanmean(_thickness)\n", - "/home/rabii/Git_Repos/m2l_pypi/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py:2053: RuntimeWarning: Degrees of freedom <= 0 for slice.\n", - " var = nanvar(a, axis=axis, dtype=dtype, out=out, ddof=ddof,\n", - "/home/rabii/Git_Repos/m2l_pypi/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py:1241: RuntimeWarning: Mean of empty slice\n", - " return np.nanmean(a, axis, out=out, keepdims=keepdims)\n", - "/home/rabii/Git_Repos/map2loop/map2loop/thickness_calculator.py:361: RuntimeWarning: Mean of empty slice\n", - " mean = numpy.nanmean(_thickness)\n", - "/home/rabii/Git_Repos/m2l_pypi/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py:2053: RuntimeWarning: Degrees of freedom <= 0 for slice.\n", - " var = nanvar(a, axis=axis, dtype=dtype, out=out, ddof=ddof,\n", - "/home/rabii/Git_Repos/m2l_pypi/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py:1241: RuntimeWarning: Mean of empty slice\n", - " return np.nanmean(a, axis, out=out, keepdims=keepdims)\n", - "/home/rabii/Git_Repos/map2loop/map2loop/thickness_calculator.py:361: RuntimeWarning: Mean of empty slice\n", - " mean = numpy.nanmean(_thickness)\n", - "/home/rabii/Git_Repos/m2l_pypi/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py:2053: RuntimeWarning: Degrees of freedom <= 0 for slice.\n", - " var = nanvar(a, axis=axis, dtype=dtype, out=out, ddof=ddof,\n", - "/home/rabii/Git_Repos/m2l_pypi/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py:1241: RuntimeWarning: Mean of empty slice\n", - " return np.nanmean(a, axis, out=out, keepdims=keepdims)\n", - "/home/rabii/Git_Repos/map2loop/map2loop/thickness_calculator.py:361: RuntimeWarning: Mean of empty slice\n", - " mean = numpy.nanmean(_thickness)\n", - "/home/rabii/Git_Repos/m2l_pypi/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py:2053: RuntimeWarning: Degrees of freedom <= 0 for slice.\n", - " var = nanvar(a, axis=axis, dtype=dtype, out=out, ddof=ddof,\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Cannot calculate thickness between Areyonga_Formation and Wallara_Formation\n" - ] - } - ], + "outputs": [], "source": [ "import os\n", "from map2loop.project import Project\n", @@ -311,7 +245,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "id": "ff57608c97e4e81e", "metadata": { "ExecuteTime": { @@ -319,456 +253,7 @@ "start_time": "2024-09-16T05:49:14.295627Z" } }, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
layerIdnameminAgemaxAgegroupsupergroupThicknessMeanThicknessMedianThicknessStdDevOrdercodecolour
017Petermann_Sandstone-9999.0-9999.0Pertaoorrta_Group-1.000000-1.0000000.0000000NaN#5d7e60
15Goyder_Formation-9999.0-9999.0Pertaoorrta_Group3668.9401673589.2976762127.5279091NaN#cffb86
24Deception_Formation-9999.0-9999.0Pertaoorrta_Group1933.6874232208.698147842.6117402NaN#1932e2
38Illara_Sandstone-9999.0-9999.0Pertaoorrta_Group2598.2792831892.3578702365.2367673NaN#f48b70
420Tempe_Formation-9999.0-9999.0Pertaoorrta_Group913.773037990.946677238.2833834NaN#e7f2f3
512Namatjira_Formation-9999.0-9999.0Pertaoorrta_Group3551.2508973492.8530661170.5943195NaN#628304
63Chandler_Formation-9999.0-9999.0Pertaoorrta_Group23124.38034223026.421580345.0090236NaN#16c432
71Arumbera_Sandstone-9999.0-9999.0Pertaoorrta_GroupNaNNaNNaN7NaN#106e8a
816Pertatataka_Formation-9999.0-9999.0NoneNaNNaNNaN8NaN#0c2562
913No_formal_name-9999.0-9999.0None5890.0941866250.4862362480.6504429NaN#387866
1015Parke_Siltstone-9999.0-9999.0Pertnjara_Group181.808842141.24240592.58088710NaN#7c2e17
116Hermannsburg_Sandstone-9999.0-9999.0Pertnjara_Group19720.04811820441.33644910755.04727111NaN#5fb3c5
1214Pacoota_Sandstone-9999.0-9999.0Larapinta_Group5559.3317445559.3317440.00000012NaN#47d10a
137Horn_Valley_Siltstone-9999.0-9999.0Larapinta_GroupNaNNaNNaN13NaN#d0d47c
1418Stairway_Sandstone-9999.0-9999.0Larapinta_Group9266.8859398789.3608596283.66700114NaN#6710c2
1519Stokes_Siltstone-9999.0-9999.0Larapinta_Group4470.6402542442.2646884201.17989815O__st_sk#EED1FE
162Carmichael_Sandstone-9999.0-9999.0Larapinta_GroupNaNNaNNaN16NaN#a2f290
1711Mereenie_Sandstone-9999.0-9999.0None10680.22008211270.6551023626.07468717SD__me_st#F7E8FE
1810Loves_Creek_Formation-9999.0-9999.0Bitter_Springs_GroupNaNNaNNaN18NaN#fb0fda
199Johnnys_Creek_Formation-9999.0-9999.0Bitter_Springs_Group5745.1243465748.1134541256.05387419NaN#8e9aef
200Areyonga_Formation-9999.0-9999.0None10116.18903910656.5752913033.13814720NaN#74fbf4
2121Wallara_Formation-9999.0-9999.0None-1.000000-1.0000000.00000021NaN#a2daa5
\n", - "
" - ], - "text/plain": [ - " layerId name minAge maxAge group \\\n", - "0 17 Petermann_Sandstone -9999.0 -9999.0 Pertaoorrta_Group \n", - "1 5 Goyder_Formation -9999.0 -9999.0 Pertaoorrta_Group \n", - "2 4 Deception_Formation -9999.0 -9999.0 Pertaoorrta_Group \n", - "3 8 Illara_Sandstone -9999.0 -9999.0 Pertaoorrta_Group \n", - "4 20 Tempe_Formation -9999.0 -9999.0 Pertaoorrta_Group \n", - "5 12 Namatjira_Formation -9999.0 -9999.0 Pertaoorrta_Group \n", - "6 3 Chandler_Formation -9999.0 -9999.0 Pertaoorrta_Group \n", - "7 1 Arumbera_Sandstone -9999.0 -9999.0 Pertaoorrta_Group \n", - "8 16 Pertatataka_Formation -9999.0 -9999.0 None \n", - "9 13 No_formal_name -9999.0 -9999.0 None \n", - "10 15 Parke_Siltstone -9999.0 -9999.0 Pertnjara_Group \n", - "11 6 Hermannsburg_Sandstone -9999.0 -9999.0 Pertnjara_Group \n", - "12 14 Pacoota_Sandstone -9999.0 -9999.0 Larapinta_Group \n", - "13 7 Horn_Valley_Siltstone -9999.0 -9999.0 Larapinta_Group \n", - "14 18 Stairway_Sandstone -9999.0 -9999.0 Larapinta_Group \n", - "15 19 Stokes_Siltstone -9999.0 -9999.0 Larapinta_Group \n", - "16 2 Carmichael_Sandstone -9999.0 -9999.0 Larapinta_Group \n", - "17 11 Mereenie_Sandstone -9999.0 -9999.0 None \n", - "18 10 Loves_Creek_Formation -9999.0 -9999.0 Bitter_Springs_Group \n", - "19 9 Johnnys_Creek_Formation -9999.0 -9999.0 Bitter_Springs_Group \n", - "20 0 Areyonga_Formation -9999.0 -9999.0 None \n", - "21 21 Wallara_Formation -9999.0 -9999.0 None \n", - "\n", - " supergroup ThicknessMean ThicknessMedian ThicknessStdDev Order \\\n", - "0 -1.000000 -1.000000 0.000000 0 \n", - "1 3668.940167 3589.297676 2127.527909 1 \n", - "2 1933.687423 2208.698147 842.611740 2 \n", - "3 2598.279283 1892.357870 2365.236767 3 \n", - "4 913.773037 990.946677 238.283383 4 \n", - "5 3551.250897 3492.853066 1170.594319 5 \n", - "6 23124.380342 23026.421580 345.009023 6 \n", - "7 NaN NaN NaN 7 \n", - "8 NaN NaN NaN 8 \n", - "9 5890.094186 6250.486236 2480.650442 9 \n", - "10 181.808842 141.242405 92.580887 10 \n", - "11 19720.048118 20441.336449 10755.047271 11 \n", - "12 5559.331744 5559.331744 0.000000 12 \n", - "13 NaN NaN NaN 13 \n", - "14 9266.885939 8789.360859 6283.667001 14 \n", - "15 4470.640254 2442.264688 4201.179898 15 \n", - "16 NaN NaN NaN 16 \n", - "17 10680.220082 11270.655102 3626.074687 17 \n", - "18 NaN NaN NaN 18 \n", - "19 5745.124346 5748.113454 1256.053874 19 \n", - "20 10116.189039 10656.575291 3033.138147 20 \n", - "21 -1.000000 -1.000000 0.000000 21 \n", - "\n", - " code colour \n", - "0 NaN #5d7e60 \n", - "1 NaN #cffb86 \n", - "2 NaN #1932e2 \n", - "3 NaN #f48b70 \n", - "4 NaN #e7f2f3 \n", - "5 NaN #628304 \n", - "6 NaN #16c432 \n", - "7 NaN #106e8a \n", - "8 NaN #0c2562 \n", - "9 NaN #387866 \n", - "10 NaN #7c2e17 \n", - "11 NaN #5fb3c5 \n", - "12 NaN #47d10a \n", - "13 NaN #d0d47c \n", - "14 NaN #6710c2 \n", - "15 O__st_sk #EED1FE \n", - "16 NaN #a2f290 \n", - "17 SD__me_st #F7E8FE \n", - "18 NaN #fb0fda \n", - "19 NaN #8e9aef \n", - "20 NaN #74fbf4 \n", - "21 NaN #a2daa5 " - ] - }, - "execution_count": 16, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "proj.stratigraphic_column.stratigraphicUnits" ]