Skip to content

Commit

Permalink
Modified helps for submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroalberti committed Sep 1, 2018
1 parent 4d4d683 commit 10fcad2
Show file tree
Hide file tree
Showing 22 changed files with 36 additions and 35 deletions.
2 changes: 1 addition & 1 deletion AnglesWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def __init__(self, plugin_name, parent=None):
url_path = "file:///{}/help/help_geological_angles.html".format(os.path.dirname(__file__))
helpTextBrwsr.setSource(QUrl(url_path))
helpTextBrwsr.setSearchPaths(['{}/help'.format(os.path.dirname(__file__))])
helpTextBrwsr.setMinimumSize(700, 800)
helpTextBrwsr.setMinimumSize(700, 600)

layout.addWidget(helpTextBrwsr)

Expand Down
2 changes: 1 addition & 1 deletion StereoplotWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def __init__(self, plugin_name, parent=None):
url_path = "file:///{}/help/help_stereonet.html".format(os.path.dirname(__file__))
helpTextBrwsr.setSource(QUrl(url_path))
helpTextBrwsr.setSearchPaths(['{}/help'.format(os.path.dirname(__file__))])
helpTextBrwsr.setMinimumSize(700, 800)
helpTextBrwsr.setMinimumSize(700, 600)
layout.addWidget(helpTextBrwsr)

self.setLayout(layout)
Expand Down
2 changes: 1 addition & 1 deletion geocouche.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from .AnglesWidget import AnglesWidget
from .about_dialog import about_Dialog

_plugin_name_ = "Geocouche"
_plugin_name_ = "geocouche"
_settings_name_ = "alberese"


Expand Down
14 changes: 7 additions & 7 deletions help/help_geological_angles.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@
<body>
<h2>Geological angles</h2>

This tool allows to calculate the angles (as degrees) between a reference plane and the (eventually selected) features in a point layer (Fig. 8).
This tool allows to calculate the angles (as degrees) between a reference plane and the (eventually selected) features in a point layer (Fig. 1).
<br />It can be applied to determine the degree of misalignement between a reference (for instance, regional) measure and local geological measures.
<br /><br />
<figure>
<img src="ims/angles_01.png" alt="Calculate Angles interface">
<img src="ims/angles_fig_01.png" alt="Calculate Angles interface">
<br />
<figcaption>Fig. 8. Geological angles calculation interface.</figcaption>
<figcaption>Fig. 1. Geological angles calculation interface.</figcaption>
</figure>
<br /><br />
The user has to define the two fields storing the azimuth (dip direction or RHR strike) and the dip angle of each feature,
the attitude of the reference plane, and the name of the output shapefile with a new field storing the calculated angle (Fig. 9).
the attitude of the reference plane, and the name of the output shapefile with a new field storing the calculated angle (Fig. 2).
<br /><br />
<figure>
<img src="ims/angles_02.png" alt="Definition of parameters">
<img src="ims/angles_fig_02.png" alt="Definition of parameters">
<br />
<figcaption>Fig. 9. Definition of parameters for angle calculation.</figcaption>
<figcaption>Fig. 2. Definition of parameters for angle calculation.</figcaption>
</figure>
<br /><br />

<div style="font-size: 85%; font-style: italic;">
-----
<br /><br />
Doc version 2018-08-29, by Mauro Alberti - <a href="mailto:alberti.m65@gmail.com">alberti.m65@gmail.com</a>
Doc version 2018-09-01, by Mauro Alberti - <a href="mailto:alberti.m65@gmail.com">alberti.m65@gmail.com</a>
</div>

<br /><br />
Expand Down
46 changes: 23 additions & 23 deletions help/help_stereonet.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ <h1>Geological stereonets</h1>

This tool allows to create stereonets representing geological plane and axis/slickenline attitudes
as great circles, poles, faults with slickenlines and T-L diagrams.
Its interface is represented in Fig. 2.
Its interface is represented in Fig. 1.
<br /><br />
<figure>
<img src="ims/geocouche_bl_total.png" alt="Geological stereonets">
<img src="ims/stereonet_fig_01.png" alt="Geological stereonets">
<br />
<figcaption>Fig. 2. Stereonet interface.</figcaption>
<figcaption>Fig. 1. Stereonet interface.</figcaption>
</figure>
<br /><br />
To plot data in a stereoplot, there are three main steps to follow:
Expand All @@ -34,13 +34,13 @@ <h1>Geological stereonets</h1>

<h3>Choice of input data</h3>

It is possible to use input data from data stored in a point layer (<i>Layer</i> tab, Fig. 3)
or to use text input (<i>Text</i> tab, Fig. 4).
It is possible to use input data from data stored in a point layer (<i>Layer</i> tab, Fig. 2)
or to use text input (<i>Text</i> tab, Fig. 3).

<h4>Input from point layer</h4>

When using a point layer already loaded in the TOC, plane and/or axis attitudes
are defined via the fields storing their values (Fig. 3). If there is a selection, only selected features will be used.
are defined via the fields storing their values (Fig. 2). If there is a selection, only selected features will be used.
<br />
<br />
Depending if you want to plot planes, lines/axis of faults with slickenlines, you have to define accordingly the source
Expand All @@ -53,9 +53,9 @@ <h4>Input from point layer</h4>

<br /><br />
<figure>
<img src="ims/geocouche_bl_input_layer.png" alt="Input from point layer">
<img src="ims/stereonet_fig_02.png" alt="Input from point layer">
<br />
<figcaption>Fig. 3. Interface for input from point layer interface.</figcaption>
<figcaption>Fig. 2. Interface for input from point layer interface.</figcaption>
</figure>
<br /><br />

Expand All @@ -74,12 +74,12 @@ <h4>Input from point layer</h4>
<br />0&deg; > rakes > -180&deg; -> normal movements
<br />
<br />When using rakes, slickenline trend and plunge does not need to be explicited.
<br />Moreover, when defined, rake values <u> take priority </u> above any defined trend-plunge and movement sense values (if present).
<br />Moreover, when defined, rake values <u> take priority</u> above any defined trend-plunge and movement sense values (if present).


<h4>Input from text</h4>

The input can be inserted into a text window (Fig. 4), defining if data consist of:
The input can be inserted into a text window (Fig. 3), defining if data consist of:
<ul>
<li>planes</li>
<li>axes</li>
Expand All @@ -91,47 +91,47 @@ <h4>Input from text</h4>
using dip direction or RHR strike.
<br /><br />
<figure>
<img src="ims/geocouche_bl_input_text.png" alt="Input from text">
<img src="ims/stereonet_fig_03.png" alt="Input from text">
<br />
<figcaption>Fig. 4. Input from text interface.</figcaption>
<figcaption>Fig. 3. Input from text interface.</figcaption>
</figure>
<br /><br />
<h3>Plot style</h3>

Styles can be defined for both great circles and poles: color, width/size, line/marker style, and transparency (Fig. 5).
Styles can be defined for both great circles and poles: color, width/size, line/marker style, and transparency (Fig. 4).
<br />Settings are stored in memory and resused in subsequent sessions.
<br /><br />
<figure>
<img src="ims/geocouche_bl_plot_style.png" alt="Plot style">
<img src="ims/stereonet_fig_04.png" alt="Plot style">
<br />
<figcaption>Fig. 5. Plot style interface.</figcaption>
<figcaption>Fig. 4. Plot style interface.</figcaption>
</figure>
<br /><br />
<h3>Stereonet plotting</h3>

Plots can use a new or a pre-existing stereonet plot. Previous plots can be erased by using the button <b>Clear stereonet</b> (see Fig. 2).
Plots can use a new or a pre-existing stereonet plot. Previous plots can be erased by using the button <b>Clear stereonet</b> (see Fig. 1).
<br />Plane can be plotted as great circles or as plane normals, axes as poles or as normal great circles, faults with slickenlines
as great circles with arrows or alternatvely as T-L diagrams (Fig. 6).
as great circles with arrows or alternatvely as T-L diagrams (Fig. 5).
<br /><br />
<figure>
<img src="ims/geocouche_bl_plot_choices.png" alt="Stereonet plotting">
<img src="ims/stereonet_fig_05.png" alt="Stereonet plotting">
<br />
<figcaption>Fig. 6. Stereonet plot interface.</figcaption>
<figcaption>Fig. 5. Stereonet plot interface.</figcaption>
</figure>
<br /><br />
An example of stereonet is shown in Fig. 7.
An example of stereonet is shown in Fig. 6.
<br /><br />
<figure>
<img src="ims/stereonet_06.png" alt="Stereonet interface">
<img src="ims/stereonet_fig_06.png" alt="Stereonet interface">
<br />
<figcaption>Fig. 7. Stereonet example.</figcaption>
<figcaption>Fig. 6. Stereonet example.</figcaption>
</figure>
<br /><br />

<div style="font-size: 85%; font-style: italic;">
-----
<br /><br />
Doc version 2018-08-29, by Mauro Alberti - <a href="mailto:alberti.m65@gmail.com">alberti.m65@gmail.com</a>
Doc version 2018-09-01, by Mauro Alberti - <a href="mailto:alberti.m65@gmail.com">alberti.m65@gmail.com</a>
</div>

<br /><br />
Expand Down
Binary file removed help/ims/angles_01.png
Binary file not shown.
Binary file removed help/ims/angles_02.png
Binary file not shown.
Binary file added help/ims/angles_fig_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added help/ims/angles_fig_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed help/ims/geocouche_bl_input_layer.png
Binary file not shown.
Binary file removed help/ims/geocouche_bl_input_text.png
Binary file not shown.
Binary file removed help/ims/geocouche_bl_plot_choices.png
Binary file not shown.
Binary file removed help/ims/geocouche_bl_plot_style.png
Binary file not shown.
Binary file removed help/ims/geocouche_bl_total.png
Binary file not shown.
Binary file removed help/ims/screenshot_01.png
Binary file not shown.
Binary file added help/ims/stereonet_fig_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added help/ims/stereonet_fig_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added help/ims/stereonet_fig_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added help/ims/stereonet_fig_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added help/ims/stereonet_fig_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
5 changes: 3 additions & 2 deletions pygsf/libs_utils/gdal/ogr.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ def shapefile_create(path, geom_type, fields_dict_list, crs=None):
else:
outShapelayer = outShapefile.CreateLayer("layer", geom_type=geom_type)

map(lambda field_def_params: outShapelayer.CreateField(shapefile_create_def_field(field_def_params)),
fields_dict_list)
for field_def_params in fields_dict_list:
field_def = shapefile_create_def_field(field_def_params)
outShapelayer.CreateField(field_def)

return outShapefile, outShapelayer

Expand Down

0 comments on commit 10fcad2

Please sign in to comment.