CN-122019006-A - Method and device for browsing data by large TV in seismic data processing
Abstract
The invention provides a method and a device for browsing data by a large-scale TV in seismic data processing, and belongs to the field of seismic exploration data processing. The method comprises the steps of 1, selecting required TV pair data through a data tree, initiating a table browsing request, 2, obtaining the number of lines of a data file by the TV, dividing the total number of pages, starting a data reading thread, reading the TV pair data of a set line, filling the data into a first table browsing page, 3, creating a page jumping tool bar at the bottom of the browsing page, 4, designing paging logic, realizing left and right page jumping, 5, displaying the reading condition of the TV pair data required by the input page number jumping by using a reading progress bar, 6, synchronously updating a rear-end TV database, keeping the consistency of the data when the inserting or deleting operation is carried out, and 7, starting a systematic method to process background operation and user interface feedback. The invention obviously improves the interactive experience and the data processing efficiency.
Inventors
- HUANG SHAOHUA
- ZOU SHAOFENG
- XU ZILONG
Assignees
- 中国石油化工股份有限公司
- 中石化石油物探技术研究院有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241111
Claims (10)
- 1. A browsing method of a large TV for data in seismic data processing is characterized by comprising the following steps: Step 1, selecting needed TV pair data through a data tree, and initiating a form browsing request; step 2, acquiring the number of lines of the TV data file, dividing the total number of pages, starting a data reading thread, reading the TV pair data of the set line, and filling the TV pair data into a first form browsing page; Step 3, creating a page jump tool bar at the bottom of the browsed page; step 4, designing paging logic to realize left and right page turning and jumping; Step 5, using a reading progress bar to display the reading condition of the TV on the data required by the jump of the input page code number; step 6, synchronously updating the database by the back-end TV, and keeping the consistency of the data when the insertion or deletion operation is carried out; And 7, starting a systematic method to process background operation and user interface feedback.
- 2. The method according to claim 1, wherein the step 2 includes generating QTableWidgetItem of the TV data in the memory in each line, reading the data in the background thread, and filling QTableWidgetItem into the TV pair table display window class.
- 3. The method of claim 2, wherein step 2 further comprises starting a data read thread to read the first 10 pages of data into the memory.
- 4. The method according to claim 1, wherein said step 3 implements a page jump toolbar by instantiating a component class, comprising: Step 31, creating a page component, wherein the component comprises a toolbar for page jumping; step 32, introducing and using PageNavToolbar components in the main page component; step 33, setting a corresponding route; Step 34, CSS styles and layouts are added.
- 5. The method according to claim 1, wherein the step 4 comprises: Step 41, designing a structure to store the data page loaded in the memory, wherein the key is the page number and the value is the data of the corresponding page; step 42, determining whether the page turning logic checks whether the data of the target page is already in the memory; step 43, when the data of the target page is not in the memory, starting a background thread to load the data; In step 44, the background thread loads the data, updates the data store in the memory, and displays the data of the new page.
- 6. The method of claim 5, wherein the step 42 is performed to determine whether the data is already in memory based on the page location.
- 7. The method according to claim 1, wherein the step 5 includes displaying a progress bar when the user inputs page numbers for jumping, starting a background thread to read data of the page numbers specified by the user, sending a progress update signal in the data reading thread, respectively generating QTableWidgetItem data in a memory according to rows after the data reading is completed, updating the progress bar, filling QTableWidgetItem into a TV table display window class, starting a new thread to read data of 10 pages before and after the current page in parallel, and storing the data in the memory.
- 8. The method according to claim 1, wherein step 6 comprises the TV immediately synchronizing the changes to the back-end TV database when the contents of the data form display window class are modified, reloading the data of the current page from the database, refreshing the page, and updating the data in the memory.
- 9. The method according to claim 1, wherein the step 7 is to start a systematic method for processing background operations and user interface feedback when performing operation on the table columns, and the method comprises the steps of: step 71, the user selects to perform operation on the table columns; Step 72, before the background performs the operation, displaying a progress dialog box to inform the user that the system is processing the operation; Step 73, starting a plurality of operation threads in the background to perform parallel operation; step 74, periodically updating the progress when the background operation thread executes the operation; Step 75, receiving a progress update signal of a background calculation operation thread, and updating a progress dialog box; Step 76, after the operation is finished, the data reading thread is started, the TV pair data of the current page is read from the database, and the TV pair data is stored in the memory.
- 10. A large TV-to-data browsing apparatus in seismic data processing, the apparatus using the large TV-to-data browsing method in seismic data processing according to any one of claims 1 to 9, comprising: the data loading module is used for loading data by a background TV through an asynchronous loading technology; The progress display module is used for establishing a real-time feedback mechanism and providing a data loading progress in time; The browsing control module is used for controlling the visual interface layout, providing page number display, providing front and back data form page turning buttons, page skip buttons and sliding bar dragging operation and displaying the contents of different rows; and the data display module is used for displaying the data of the TV processed by the data loading module.
Description
Method and device for browsing data by large TV in seismic data processing Technical Field The invention belongs to the field of seismic exploration data processing, and particularly relates to a method and a device for browsing data by a large TV in seismic data processing. Background In seismic data processing, when a table is used for browsing data by a large-scale TV, the problems of slow data loading, incapability of one-time complete loading and other interactive experience are often encountered. The problems mainly originate from the aspects that firstly, the data volume is huge, the large-scale TV can contain millions or even hundreds of millions of data points, the data can consume a large amount of computing resources and time when being loaded into a form browsing tool, secondly, the traditional data processing mode is limited, the traditional data processing mode is usually used for loading and processing data in batches, the efficiency is low when processing a large-scale data set, memory overflow and the like are easy to cause, thirdly, the interactive design is insufficient, and the characteristics of the large-scale data set are not fully considered in the interactive design by some form browsing tools, so that the problems of slow loading, untimely response and the like are encountered by users in the use process. Disclosure of Invention The invention aims to solve the problems in the prior art, and provides a method and a device for browsing data by a large TV in seismic data processing, which improve the interactive experience of the large TV in form browsing to the data, and particularly optimize the problems of slow data loading, incapability of one-time complete loading and the like. The invention is realized by the following technical scheme: The invention provides a method for browsing data by a large TV in seismic data processing, which comprises the following steps: Step 1, selecting needed TV pair data through a data tree, and initiating a form browsing request; step 2, acquiring the number of lines of the TV data file, dividing the total number of pages, starting a data reading thread, reading the TV pair data of the set line, and filling the TV pair data into a first form browsing page; Step 3, creating a page jump tool bar at the bottom of the browsed page; step 4, designing paging logic to realize left and right page turning and jumping; Step 5, using a reading progress bar to display the reading condition of the TV on the data required by the jump of the input page code number; step 6, synchronously updating the database by the back-end TV, and keeping the consistency of the data when the insertion or deletion operation is carried out; And 7, starting a systematic method to process background operation and user interface feedback. Further, the step 2 includes generating QTableWidgetItem data in the memory by rows respectively, reading the data in the background thread, and filling the QTableWidgetItem data into a TV pair table display window class. Further, the step 2 further includes starting a data reading thread to read the data of the first 10 pages into the memory. Further, the step 3 implements a page jump toolbar by instantiating a component class, including: Step 31, creating a page component, wherein the component comprises a toolbar for page jumping; step 32, introducing and using PageNavToolbar components in the main page component; step 33, setting a corresponding route; Step 34, CSS styles and layouts are added. Further, the step 4 includes: Step 41, designing a structure to store the data page loaded in the memory, wherein the key is the page number and the value is the data of the corresponding page; step 42, determining whether the page turning logic checks whether the data of the target page is already in the memory; step 43, when the data of the target page is not in the memory, starting a background thread to load the data; In step 44, the background thread loads the data, updates the data store in the memory, and displays the data of the new page. Further, the step 42 determines whether the data is already in the memory according to the page location. Further, the step 5 includes displaying a progress bar when the user inputs page numbers to jump, starting a background thread to read data of the page numbers appointed by the user, sending a progress update signal in the data reading thread, respectively generating QTableWidgetItem data in a memory according to rows after the data reading is completed, updating the progress bar, filling QTableWidgetItem into a TV pair table display window class, starting a new thread to read data of 10 pages before and after the current page in parallel, and storing the data in the memory. Further, the step 6 includes the TV immediately synchronizing the changes to the back-end TV database when the contents of the data form display window class are modified, reloading the data of the current page from the database, refreshi