Package GeoDrill
Module GeoCore
Module Structural
- class pycsamt.geodrill.structural.Geo_formation(agso_file=None, **kwargs)[source]
This class is an axilliary 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.
Note
replace in attributes param “**” by the name of struture
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
To see the names of strutures , write the script below
- Example
>>> from pycsamt.geodrill.geoCore.strutural import Geo_formation as gf >>> geo_structure = gf() >>> geo_structure.names
To extract color and to get the code of structure like amphibolite
- Example
>>> from pycsamt.geodrill.geoCore.strutural import Geo_formation as gf >>> geo_structure = gf() >>> geo_structure.amphibolite['color'] >>> geo_structure.amphibolite['code'] >>> geoformation_obj.AMP['color'] ... 'R128G128'
- class pycsamt.geodrill.structural.Structure(**kwargs)[source]
Class for typical geological strutural conventions for AGSO_STCODES . All geological structural informations are geostructral object.
Holds the following information:
More attributes can be added by inputing a key word dictionary
- Example
>>> from pycsamt.geodrill.geoCore.structural import Structure >>> structural=Structure() >>> boudin=boudin_axis() >>> print(boudin.code) >>> print(structural.boudin_axis.name) >>> print(structural.boudin_axis.color)
- class pycsamt.geodrill.structural.banding_gneissosity(**kwargs)[source]
Special class for banding_gneissosity
Holds the following information:
Attributes
Type
Explanation
code
str
conventional code
label
str
named label
size
str
drawing size
pattern
str
drawing pattern
density
str
elmts density
thickness
str
drawing thickness
color
str
color set
More attributes can be added by inputing a key word dictionary
- class pycsamt.geodrill.structural.boudin_axis(**kwargs)[source]
Special class for boudins_axis
Holds the following information:
Attributes
Type
Explanation
code
str
conventional code
label
str
named label
size
str
drawing size
pattern
str
drawing pattern
density
str
elmts density
thickness
str
drawing thickness
color
str
color set
More attributes can be added by inputing a key word dictionary
- class pycsamt.geodrill.structural.fault_plane(**kwargs)[source]
Special class for fault_plane
Holds the following information:
Attributes
Type
Explanation
code
str
conventional code
label
str
named label
size
str
drawing size
pattern
str
drawing pattern
density
str
elmts density
thickness
str
drawing thickness
color
str
color set
More attributes can be added by inputing a key word dictionary
- class pycsamt.geodrill.structural.fold_axial_plane(**kwargs)[source]
Special class for fold_axial_plane
Holds the following information:
Attributes
Type
Explanation
code
str
conventional code
label
str
named label
size
str
drawing size
pattern
str
drawing pattern
density
str
elmts density
thickness
str
drawing thickness
color
str
color set
More attributes can be added by inputing a key word dictionary
- class pycsamt.geodrill.structural.fracture_joint_set(**kwargs)[source]
Special class for fracture_joint_set
Holds the following information:
Attributes
Type
Explanation
code
str
conventional code
label
str
named label
size
str
drawing size
pattern
str
drawing pattern
density
str
elmts density
thickness
str
drawing thickness
color
str
color set
More attributes can be added by inputing a key word dictionary
- class pycsamt.geodrill.structural.geo_pattern[source]
Singleton class to deal with geopattern with other modules. It is and exhaustive pattern dict, can be add and change. This pattern will be depreacted later , to create for pyCSAMT,its owwn geological pattern in coformity with the conventional geological swatches . deal with USGS(US Geological Survey ) swatches- references and FGDC (Digital cartographic Standard for Geological Map Symbolisation
-FGDCgeostdTM11A2_A-37-01cs2.eps)
- make _pattern:{‘/’, ‘’, ‘|’, ‘-’, ‘+’, ‘x’, ‘o’, ‘O’, ‘.’, ‘*’}
/ - diagonal hatching - back diagonal | - vertical - - horizontal + - crossed x - crossed diagonal o - small circle O - large circle . - dots * - stars
- pycsamt.geodrill.structural.get_color_palette(RGB_color_palette)[source]
Convert RGB color into matplotlib color palette. In the RGB color system two bits of data are used for each color, red, green, and blue. That means that each color runs on a scale from 0 to 255. Black would be 00,00,00, while white would be 255,255,255. Matplotlib has lots of pre-defined colormaps for us . They are all normalized to 255, so they run from 0 to 1. So you need only normalize data, then we can manually select colors from a color map
- Parameters
RGB_color_palette (str) – str value of RGB value
- Returns
rgba, tuple of (R, G, B)
- Return type
tuple
- Example
>>> from pycsamt.geodrill.geoCore.structural import get_color_palette >>> get_color_palette (RGB_color_palette ='R128B128')
- class pycsamt.geodrill.structural.s_fabric(**kwargs)[source]
Special class for s_fabric
Holds the following information:
Attributes
Type
Explanation
code
str
conventional code
label
str
named label
size
str
drawing size
pattern
str
drawing pattern
density
str
elmts density
thickness
str
drawing thickness
color
str
color set
More attributes can be added by inputing a key word dictionary
- class pycsamt.geodrill.structural.sharp_contact(**kwargs)[source]
Special class for sharp_contact
Holds the following information:
More attributes can be added by inputing a key word dictionary
- class pycsamt.geodrill.structural.undifferentiated_plane(**kwargs)[source]
Special class for undifferentiated_plane
Holds the following information:
Attributes
Type
Explanation
code
str
conventional code
label
str
named label
size
str
drawing size
pattern
str
drawing pattern
density
str
elmts density
thickness
str
drawing thickness
color
str
color set
More attributes can be added by inputing a key word dictionary