.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "_auto_examples/plot_hamersley.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr__auto_examples_plot_hamersley.py: ============================ Hamersley, Western Australia ============================ .. GENERATED FROM PYTHON SOURCE LINES 6-12 .. code-block:: Python from map2loop.project import Project from map2loop.m2l_enums import VerboseLevel, Datatype from map2loop.sorter import SorterAlpha from map2loop.sampler import SamplerSpacing .. GENERATED FROM PYTHON SOURCE LINES 13-16 Set the region of interest for the project ------------------------------------------- Define the bounding box for the ROI .. GENERATED FROM PYTHON SOURCE LINES 16-51 .. code-block:: Python bbox_3d = { "minx": 515687.31005864, "miny": 7493446.76593407, "maxx": 562666.860106543, "maxy": 7521273.57407786, "base": -3200, "top": 3000, } # Specify minimum details (which Australian state, projection and bounding box # and output file) loop_project_filename = "wa_output.loop3d" proj = Project( use_australian_state_data="WA", working_projection="EPSG:28350", bounding_box=bbox_3d, verbose_level=VerboseLevel.NONE, loop_project_filename=loop_project_filename, overwrite_loopprojectfile=True, ) # Set the distance between sample points for arial and linestring geometry proj.set_sampler(Datatype.GEOLOGY, SamplerSpacing(200.0)) proj.set_sampler(Datatype.FAULT, SamplerSpacing(200.0)) # Choose which stratigraphic sorter to use or run_all with "take_best" flag to run them all proj.set_sorter(SorterAlpha()) # proj.set_sorter(SorterAgeBased()) # proj.set_sorter(SorterUseHint()) # proj.set_sorter(SorterUseNetworkx()) # proj.set_sorter(SorterMaximiseContacts()) # proj.set_sorter(SorterObservationProjections()) proj.run_all(take_best=True) .. rst-class:: sphx-glr-script-out .. code-block:: none Datatype FAULT_ORIENTATION is not set and so cannot be loaded Best sorter SorterAgeBased calculated contact length of 286560.51738879026 Cannot calculate thickness between Fortescue_Group and Bunjinah_Formation Cannot calculate thickness between Bunjinah_Formation and Boolgeeda_Iron_Formation Cannot calculate thickness between Boolgeeda_Iron_Formation and Woongarra_Rhyolite Cannot calculate thickness between Woongarra_Rhyolite and Weeli_Wolli_Formation Cannot calculate thickness between Weeli_Wolli_Formation and Brockman_Iron_Formation Cannot calculate thickness between Wittenoom_Formation and Marra_Mamba_Iron_Formation Cannot calculate thickness between Marra_Mamba_Iron_Formation and Turee_Creek_Group .. GENERATED FROM PYTHON SOURCE LINES 52-54 Visualise the map2loop results ------------------------------------------- .. GENERATED FROM PYTHON SOURCE LINES 54-56 .. code-block:: Python proj.map_data.basal_contacts.plot() .. image-sg:: /_auto_examples/images/sphx_glr_plot_hamersley_001.png :alt: plot hamersley :srcset: /_auto_examples/images/sphx_glr_plot_hamersley_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 12.515 seconds) .. _sphx_glr_download__auto_examples_plot_hamersley.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_hamersley.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_hamersley.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_hamersley.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_