watex.geology.geology.setstructures#
- 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 ...