watex.geology.drilling.DSBorehole#
- class watex.geology.drilling.DSBorehole(name=None, dname=None, projection='ll', utm_zone=None, datum='WGS84', epsg=None, reference_ellipsoid=23, encoding='utf-8', lonlat=None, verbose=0)[source]#
Class delas 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:
name (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
Note
Each columns of the dataframe is an attribute. Note that all the non- alphabetic letters is removed and replace by ‘_’.