watex.geology.geology.Structures#

class watex.geology.geology.Structures(configfile=None, **kwds)[source]#

This 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'