watex.geology.drilling.DSBorehole#
- class watex.geology.drilling.DSBorehole(hole=None, dname=None, projection='ll', utm_zone=None, datum='WGS84', epsg=None, reference_ellipsoid=23, encoding='utf-8', lonlat=None, verbose=0)[source]#
Class deals with Borehole datasets.
watex.geology.drilling.DSBoreholeworks with data collected in a single borehole. For instance, it could follow the arrangement ofh502data inwatex.datasets.load_hlogs()- Parameters:
hole (str) – Name or ID of the borehole.
dname (str, optional) – Depth column name. If depth is specify an attribute depth_ should be created. Depth specification is usefull for log plotting of machine training.
utm_zone (Optional, string) – zone number and ‘S’ or ‘N’ e.g. ‘55S’. Default to the centre point of coordinates points in the survey area. It should be a string (##N or ##S) in the form of number and North or South hemisphere, 10S or 03N
projection (str, ['utm'|'dms'|'ll']) – The coordinate system in which the data points for the profile is collected. If not given, the auto-detection will be triggered and find the suitable coordinate system. However, it is recommended to provide it for consistency. Note that if x and y are composed of value less than 180 degrees for longitude and 90 degrees for latitude, it should be considered as longitude-latitude (
ll) coordinates system. If x and y are degree-minutes-second (dmsordd:mm:ss) data, they must be specify as coordinate system in order to accept the non-numerical data before transforming toll. Ifdatais passed to thefit()method anddmsis not specify, x and y values should be discarded.datum (string, default = 'WGS84') – well known datum ex. WGS84, NAD27, NAD83, etc.
epsg (Optional, int) –
- epsg number defining projection (
see http://spatialreference.org/ref/ for moreinfo)
Overrides utm_zone if both are provided.
reference_ellipsoid (int, default=23) – reference ellipsoids is derived from Peter H. Dana’s website- http://www.utexas.edu/depts/grg/gcraft/notes/datum/elist.html Department of Geography, University of Texas at Austin Internet: pdana@mail.utexas.edu . Default is
23constrained to WGS84.encoding (str, default ='utf8') – Default encoding for parsing data. Can also be [‘utf-16-be’] for reading bytes characters.
lonlat (Tuple, Optional) – longitude/latitude for borehole coordinates. The location where the borehole is performed.
verbose (int, default=0) – Output messages.
- depth_#
Depth array if dname is specified.
- Type:
Series
- data_#
Sanitized dataframe.
- Type:
Pandas DataFrame
- feature_names_in_#
Name of features that composes the dataset.
- Type:
list
Note
Each columns of the dataframe is an attribute. Note that all the non- alphabetic letters is removed and replace by ‘_’.
Examples
>>> import watex as wx >>> from watex.geology import DSBorehole >>> hdata= wx.fetch_data ('hlogs',samples = 12 ).frame >>> b = DSBorehole (hole='H502').fit(hdata) >>> b.feature_names_in_ Out[77]: ['depth_top', 'depth_bottom', 'layer_thickness', 'resistivity', 'gamma_gamma', 'natural_gamma', 'sp', 'short_distance_gamma', 'well_diameter', 'aquifer_thickness', 'hole_depth_before_pumping', 'hole_depth_after_pumping', 'hole_depth_loss', 'depth_starting_pumping', 'pumping_depth_at_the_end', 'pumping_depth', 'section_aperture', 'k', 'kp', 'r', 'rp', 'hole_id', 'strata_name', 'rock_name', 'aquifer_group', 'pumping_level'] >>> b.strata_name Out[78]: 0 topsoil 1 gravel 2 mudstone 3 siltstone 4 mudstone
176 coal 177 siltstone 178 coarse-grained sandstone 179 fine-grained sandstone 180 coarse-grained sandstone Name: strata_name, Length: 181, dtype: object