Python-based hydrological geochemical Schacaroff classification method

文档序号:1629551 发布日期:2020-01-14 浏览:23次 中文

阅读说明:本技术 一种基于Python的水文地球化学舒卡列夫分类方法 (Python-based hydrological geochemical Schacaroff classification method ) 是由 汪子涛 刘启蒙 于 2019-09-30 设计创作,主要内容包括:本发明具体公开了一种基于Python的水文地球化学舒卡列夫分类方法,该方法包利用Python语言编写程序,通过导入地下水中七大常规离子(Cl<Sup>-</Sup>、HCO<Sub>3</Sub><Sup>-</Sup>、SO<Sub>4</Sub><Sup>2-</Sup>、K<Sup>+</Sup>、Na<Sup>+</Sup>、Ca<Sup>2+</Sup>、Mg<Sup>2+</Sup>)数据,建立计算水化学类型模型和舒卡列夫分类判别体系,使用PyQt5库建立批量处理窗口和可视化操作界面,对导入的txt或xls格式的水样数据进行筛选、计算与判别,导出其水化学类型和舒卡列夫分类式。导出结果准确可靠,具有一定的创新性,且本发明操作简单,有助于水文地质工作人员和相关专业的学生、老师日常科研与工作。(The invention particularly discloses a Python-based hydrological geochemistry Schslip classification method, which comprises the steps of programming by utilizing Python language and introducing seven conventional ions (Cl) into underground water ‑ 、HCO 3 ‑ 、SO 4 2‑ 、K + 、Na + 、Ca 2+ 、Mg 2+ ) And establishing a water chemistry type calculation model and a Schuckleff classification discrimination system, establishing a batch processing window and a visual operation interface by using a PyQt5 library, screening, calculating and discriminating the imported water sample data in txt or xls format, and deriving the water chemistry type and the Schuckleff classification. The method has the advantages of accurate and reliable derivation result, certain innovation, simple operation and contribution to daily scientific research and work of hydrogeology workers and students and teachers of relevant specialties.)

1. A Python-based hydrologic geochemical Schukaff classification method is characterized by comprising the following steps:

step A, collecting seven large ion data (specifically including Cl) of water sample in research area-、HCO3 -、SO4 2-、K+、Na+、Ca2+、Mg2+);

Step B, compiling a main program by using Python language, wherein the main program comprises the steps of screening qualified water samples (the inspection rate of anions and cations is lower than 5 percent), and establishing a water chemistry type calculation model and a Schslip classification discrimination system;

and step C, establishing a batch processing window and a visual operation interface through a PyQt5 library in Python, and finally directly obtaining the water chemistry types and the Schuckerff classification formulas of all water samples through importing data.

2. The Python-based hydrological geochemical Schuckafft classification method of claim 1, wherein in step B, the classification model is established based on water chemistry parameter data. The specific process is as follows:

(1) setting the molecular weight of each ion by using a dictionary function, and uniformly converting the collected sample mass concentration data into the mass concentration (mmol. L) of the substance-1) With milliequivalent concentration (meq. L)-1) The respective TDS values (total dissolved solids) were calculated. The reliability of the acquired data is verified by implanting an anion-cation balance check formula, screening is carried out by using condition judgment statements, and the check value is set to be less than or equal to 5% as reliable, otherwise, unreliable is not obtained and is automatically ignored.

(2) Determining the relation among variables, setting condition threshold, extracting ions with equivalent concentration occupying more than 25% of self anions and cations, sequencing the ions, and determining the water chemistry type. And establishing a Schuckleboff comparison dictionary by using a dictionary function, and sequentially judging the Schuckleboff type of the water sample.

3. The Python-based hydrological geochemical Schuckafft classification method according to claim 1, wherein in step C, a visual operation interface is set by using a PyQt5 library.

And setting an operation interface button and a text display box, carrying out reasonable layout, and establishing a slot function to be mutually associated with the model. And establishing a file batch processing window capable of supporting the format of xls or txt.

Technical Field

The invention relates to the field of hydrological geochemistry, in particular to a hydrological geochemistry Schslip classification method based on Python.

Background

In the field of hydrogeochemistry, it is often desirable to determine the water chemistry type of a body of water based on the different ionic species and content of the groundwater, with the most common classification method being the schradekoff classification. However, in the process of manually performing schkalleff classification on a water body, due to the adverse factors of large calculation amount, complex process, long time consumption and the like, the classification result is wrong, and the problem is more obvious if the water sample data is larger. Therefore, aiming at the situation, the invention provides the Schueloff classification method which is simple to operate and can carry out batch processing on the water sample by using Python as a platform.

Disclosure of Invention

1. Objects of the invention

In view of the above, the invention provides a method for manually classifying the hydrologic geochemical Schslip, which is simple to operate and can calculate the Schslip classification of the water sample in batches.

2. Technical scheme of the invention

In order to achieve the purpose, the invention specifically relates to a Python-based hydrological geochemistry Schslip classification method, which comprises the following steps: step A, collecting seven large ion data (specifically including Cl) of water sample in research area-、HCO3 -、SO4 2-、K+、Na+、Ca2+、Mg2+) (ii) a Step B, compiling a main program by using Python language, wherein the main program comprises the steps of screening qualified water samples (the inspection rate of anions and cations is lower than 5 percent), and establishing a water chemistry type calculation model and a Schslip classification discrimination system; and step C, establishing a batch processing window and a visual operation interface through a PyQt5 library in Python, and finally directly obtaining the water chemistry types and the Schuckerff classification formulas of all water samples through importing data.

The invention relates to a Python-based hydrological geochemistry Schslip classification method, which utilizes a Python language writing program to analyze conventional ion content data in a water sample, establishes a computational water chemistry type model and a Schslip classification discrimination system, establishes a batch processing window and a visual operation interface through a PyQt5 library, screens, calculates and discriminates imported water sample data in txt or xls format, and derives the water chemistry type and the Schslip classification formula. The method has the advantages of accurate and reliable derivation result, certain innovation, simple operation and contribution to daily scientific research and work of hydrogeology workers and students and teachers of relevant specialties.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention.

FIG. 1 is a flow chart of a Python-based hydrological geochemistry Schukenff classification method.

FIG. 2 is a schematic diagram of a final operation interface and a batch processing window of a Python-based hydrological geochemistry Schslip classification method.

Detailed description of the preferred embodiments

The invention is further described below with reference to the drawings and examples of its application.

FIG. 1 is a flow chart of the Python-based hydrological geochemistry Schukenff classification method of the present invention. As shown in fig. 1, the method includes:

step A, collecting seven large ion data (specifically including Cl) of water sample in research area-、HCO3 -、SO4 2-、K+、Na+、Ca2+、Mg2+);

Step B, compiling a main program by using Python language, wherein the main program comprises the steps of screening qualified water samples (the inspection rate of anions and cations is lower than 5 percent), and establishing a water chemistry type calculation model and a Schslip classification discrimination system;

and step C, establishing a batch processing window and a visual operation interface through a PyQt5 library in Python, and finally directly obtaining the water chemistry types and the Schuckerff classification formulas of all water samples through importing data.

Each of the above steps is explained below with reference to specific examples.

Step A, collecting seven-large ion content data (specifically including Cl) of water sample in research area-、HCO3 -、SO4 2-、K+、Na+、Ca2+、Mg2+)。

In the present example, in conjunction with a coal mine production practice, data was collected on the seven macroion content of groundwater from several different aquifers in the area of the mine (Na will be used according to the convention of groundwater chemistry)+、K+Regarded as an ion and set the molecular weight to 25), see in particular table 1.

TABLE 1 statistical table of seven major ion content of certain mine groundwater (unit: mg. L)-1)

And step B, compiling a main program by using Python language, including screening qualified water samples (the inspection rate of anions and cations is lower than 5%), establishing a water chemistry type calculation model and establishing a Schuckleboff classification discrimination system.

In the embodiment of the invention, based on Python language, a water chemistry type calculation model and a Schuckleboff classification discrimination system are established:

(1) setting the molecular weight of each ion by using a dictionary function, and uniformly converting the collected sample mass concentration data into the mass concentration (mmol. L) of the substance-1) With milliequivalent concentration (meq. L)-1) The respective TDS values (total dissolved solids) were calculated. The reliability of the acquired data is verified by implanting an anion-cation balance check formula, screening is carried out by using condition judgment statements, and the check value is set to be less than or equal to 5% as reliable, otherwise, unreliable is not obtained and is automatically ignored.

(2) Determining the relation among variables, setting condition threshold, extracting ions with equivalent concentration occupying more than 25% of self anions and cations, sequencing the ions, and determining the water chemistry type. And establishing a Schuckleboff comparison dictionary by using a dictionary function, and sequentially judging the Schuckleboff type of the water sample.

And step C, establishing a batch processing window and a visual operation interface through a PyQt5 library in Python, and finally directly obtaining the water chemistry types and the Schuckerff classification formulas of all water samples through importing data.

And B, after a water chemistry classification and Schuckleboff discrimination model is established, setting operation interface buttons and a text display box by using a PyQt5 library, carrying out reasonable layout, and establishing a slot function to be mutually linked with the model. And establishing a file batch processing window capable of supporting the format of xls or txt.

The data in table 1 were imported into the present invention in xls format, and the final results are shown in table 2.

TABLE 2 Water chemistry types of certain mine groundwater and Schueloff classification results

Figure BDA0002223162410000031

The invention relates to a Python-based hydrological geochemical Schslip classification method, which analyzes conventional ion content data in a water sample by compiling a program, establishes a computational water chemistry type model and a Schslip classification discrimination system, and establishes a batch processing window and a visual operation interface by utilizing a PyQt5 library. And (3) screening, calculating and distinguishing water sample data to derive the water chemistry type and the Schacalepff classification formula of the water sample data. The method has the advantages of accurate and reliable derivation result, certain innovation, simple operation and contribution to daily scientific research and work of hydrogeology workers and students and teachers of relevant specialties. The above-mentioned embodiments are intended to illustrate the objects, procedures and advantages of the present invention, and should not be construed as limiting the scope of the present invention, but rather as embodying the invention in any modification, equivalent replacement or the like within the spirit and scope of the present invention.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于步频的高精度运动量识别系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!