- class watex.geology.geology.Geology(geofn=None, **kwargs)[source]#
Bases:
objectGeology class deals with all concerns the structures during investigation sites
- class watex.geology.geology.Structural(configfile=None, **kwds)[source]#
Bases:
BaseGeology strutural conventions class.
Note that the given structural objects are quite less than the litterature More structural object can be added as the structures is known. All geological structural informations are geostructral object.
Holds the following informations:
More attributes can be added by inputing a key word dictionary
- Example:
>>> from watex.geology import Structural >>> s=Structural().fit() >>> s.boudin_axis.code_ ... 'lsb' >>> s.boudin_axis.name_ ... 'Boudin Axis' >>> s.boudin_axis.color_ ... 'R128GB'
- class watex.geology.geology.Structures(configfile=None, **kwds)[source]#
Bases:
BaseThis class is an auxilliary class to supplement geodatabase , if the GeodataBase doesnt reply to SQL request , then use this class to secah information about structures . If SQL is done as well , program won’t call this class as rescure . Containers of more than 150 geological strutures.
Attributes
Type
Explanation
names
array_like
names of all geological strutures
codes
array_like
names of all geological codes
**code
str
code of specific geological structure
**label
str
label of specific structure
**name
str
label of specific structure
**pattern
str
pattern of specific structure
**pat_size
str
pattern size of specific structure
**pat_density
str
pattern density l of specific structure
**pat_thickness
str
pttern thickess of specific structure
**color
str
color of specific structure
Note
To get the attribute value, merely replace the param “**” by the name of struture following by dot “.”. See examples:
Examples
To get the names of different strutures, write the script below:
>>> from watex.geology.geology import Structures >>> geo_structure = Structures().fit() >>> geo_structure.names_ # get the list of all geological strutures
To extract color and to get the code of structure like tonalite:
>>> from watex.geology.geology import Structures >>> sobj = Structures().fit() >>> sobj.tonalite.pat_thickness_ ... 0. # -> not implemented >>> sobj.tonalite.code_ >>> ...'TNL' >>> sobj.tonalite.color_ ... ''RB128'
- codef = ['code', 'label', '__description', 'pattern', 'pat_size', 'pat_density', 'pat_thickness', 'color']#
- property coerce#
Force configuration if auto getting the property file fails.
- fit(**kwd)[source]#
Fit and set the geological strutures as object attributes and kwd arguments refer to the argument below.
- Parameters:
configfile (str) – is a configure file from ‘AGS0’ data
fillna (float,) – fill NaN values in the AGS0 file. The default values to fill is 0 for False.
Notes
Each geological strutures can be retrieved as an attribute. For instance to get the code, the label and the pattern density of the ‘amphibolite’.
Example
>>> from watex.geology import Structures >>> sobj = Structures().fit() >>> sobj.amphibolite.code ... 'AMP' >>> sobj.amphibolite.label_ ... 'AMP' >>> sobj.amphibolite.pat_density_ ... 0. # not set >>> # To get all the key (attributes of the structures ), uses:: >>> sobj.keys
- watex.geology.geology.setstructures(self, configfile=None, fillna=0)[source]#
configure the geological structures as a property object and load attributes.
- Parameters:
configfile – is a configure file from ‘AGS0’ data
fillna – fill NaN values in the AGS0 file. The default values to fill is 0 for False.
- Returns:
selffor method chaining.
Note
Each geological strutures can be retrieved as an attribute. For instance to get the code, the label and the pattern density of the ‘amphibolite’, one can use:
>>> from watex.geology import Structures >>> sobj = Structures().fit() >>> sobj.amphibolite.code ... 'AMP' >>> sobj.amphibolite.label_ ... 'AMP' >>> sobj.amphibolite.pat_density_ ... nan # not set >>> # To get all the key (attributes of the structures ), uses: >>> sobj.keys ...