A method and system for converting time-indexed meteorological data into space-indexed data

By storing the meteorological data of the time index in the format of the spatial index, the problem of low data input and output efficiency in the prior art is solved, and more efficient data access is achieved.

CN115048378BActive Publication Date: 2025-06-10ZHONGNENG FUSION SMART TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210654172.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-09
Publication Date
2025-06-10
Estimated Expiration
2042-06-09

AI Technical Summary

Technical Problem

In the prior art, when the meteorological data indexed by time needs to obtain data from a certain grid point for a certain period of time, the meteorological data of all grid points of all time nodes needs to be read, resulting in low data input and output efficiency.

Method used

A method of converting meteorological data with time index into spatial index is proposed. By dividing meteorological data into sub-tables by latitude and longitude, and combining corresponding meteorological parameters time series, it is restored into a format by spatial index.

Benefits of technology

The data input and output speed of retrieving data at a certain grid point for a certain period of time has been improved, and the data access efficiency has been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115048378B_ABST
    Figure CN115048378B_ABST
Patent Text Reader

Abstract

The present invention provides a method and a system for converting time-indexed meteorological data into space-indexed data. The method includes: reading in all meteorological data to be processed, where the lat table contains the latitude data of each grid point and the lon table contains the longitude data of each grid point; splitting the lat table and the lon table to obtain sub-tables of the lat table and sub-tables of the lon table; for the grid point ranges corresponding to each sub-table of the lat table and each sub-table of the lon table, merging the time series of the 1st to the Nth meteorological parameters; if the root directory for data storage is the first-level storage directory, then the second-level storage directory represents the files corresponding to the 1st to the Kth latitude ranges, and the third-level storage directory represents the files corresponding to the 1st to the Lth longitude ranges. The present invention has a method for forming space-indexed meteorological data, which improves the data input / output speed for retrieving data of a certain grid point within a certain period of time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of wind farm meteorology, and particularly relates to a method and system for converting time-indexed meteorological data into space-indexed data. Background Art

[0002] Through retrieval of databases such as domestic and foreign papers, academic conferences, scientific and technological literature, patents, etc., it is found that the commonly used meteorological reanalysis data at present mainly includes CFSR data, ERA5 data, and MERRA2 data. Among them, the CFSR data has a spatial resolution of 0.2045°, a temporal resolution of 1 hour, and the data for each month is stored as a file. The ERA5 data has a spatial resolution of 0.25°, a temporal resolution of 1 hour, and the data for each month is stored as a file. The MERRA2 data has a spatial resolution of 0.5° * 0.625°, a temporal resolution of 1 hour, and the data for each day is stored as a file. The meteorological forecast data has different spatial resolutions according to meteorological forecast requirements, generally with a temporal resolution of 15 minutes or 1 hour. Generally, the full grid data for the entire forecast duration is stored as a file for each forecast or all spatial grids for each time node are stored as a file.

[0003] It can be seen that most meteorological data is stored according to time index, and the main reasons are as follows: First, meteorological data is continuously updated on the time scale, and storing according to the time scale is convenient for updating; Second, there is unity in the time scale, but there are differences in the spatial scale and resolution among different data sets, which are not easy to unify; Third, there is a lack of methods or standards for storing meteorological data according to the spatial scale.

[0004] Disadvantages of the prior art: When it is necessary to obtain the meteorological data of a certain grid point for a certain period of time from the time-indexed meteorological data, it is necessary to read the meteorological data of all grid points at all time nodes, and the data input and output efficiency is relatively low. Summary of the Invention

[0005] To solve the above technical problems, the present invention proposes a technical solution for a method of converting time-indexed meteorological data into space-indexed data to solve the above technical problems.

[0006] The first aspect of the present invention discloses a method for converting time-indexed meteorological data into space-indexed data, and the method includes: meteorological data division and meteorological data storage;

[0007] Step S1: Read in all the meteorological data to be processed, where the lat table contains the latitude data of each grid point, and the lon table contains the longitude data of each grid point;

[0008] Step S2: Split the lat table and the lon table to obtain a sub-table of the lat table and a sub-table of the lon table;

[0009] Step S3: For the grid point ranges corresponding to each sub - table of the lat table and each sub - table of the lon table, merge the time series of the 1st to the Nth meteorological parameters;

[0010] Step S4: The root directory for data storage is the first - level storage directory. The second - level storage directory represents the files corresponding to the 1st to the Kth latitude ranges, and the third - level storage directory represents the files corresponding to the 1st to the Lth longitude ranges.

[0011] According to the method of the first aspect of the present invention, in the step S1, the method further includes:

[0012] A 11 ~A MN In the table are the time series of the 1st to the Nth meteorological parameters at each grid point in the 1st to the Mth files, that is, A mn In the table are the time series of the nth meteorological parameter at each grid point in the mth file.

[0013] According to the method of the first aspect of the present invention, in the step S2, the splitting of the lat table and the lon table to obtain the sub - tables of the lat table and the sub - tables of the lon table specifically includes:

[0014] If there are I*K grid points in latitude and J*L grid points in longitude, then every I grid points in latitude and every J grid points in longitude are divided into a sub - table. The lat table forms a total of L*K sub - tables, which are respectively lat 11 Table ~ lat LK Table; The lon table forms a total of L*K sub - tables, which are respectively lon 11 Table ~ lon LK Table.

[0015] According to the method of the first aspect of the present invention, in the step S3, the merging of the time series of the 1st to the Nth meteorological parameters for each grid point range corresponding to each sub - table of the lat table and each sub - table of the lon table specifically includes:

[0016] Merge the time series of the same meteorological parameter in the 1st to the Mth files. For the lat lk Table and lon lk Table to form Table A lk1 ~Table A lkN .

[0017] According to the method of the first aspect of the present invention, in the step S4, the second - level storage directory representing the files corresponding to the 1st to the Kth latitude ranges is specifically:

[0018] The kth folder in the second - level storage directory is the data of all grid points corresponding to the (i*k - i + 1)th to the (i*k)th latitudes.

[0019] According to the method of the first aspect of the present invention, in the step S4, the third-level storage directory represents the files corresponding to the 1st to Lth longitude ranges, specifically:

[0020] In the kth folder of the second-level storage directory, the lth folder of the third-level storage directory contains all the grid point data corresponding to the latitudes from (i*k - i + 1) to i*k and the longitudes from (j*l - l + 1) to j*l.

[0021] According to the method of the first aspect of the present invention, in the step S4, in the kth folder of the second-level storage directory, the files stored in the lth folder of the third-level storage directory are table lat jk and table lon jk , table A jk1 ~table A jkN .

[0022] The second aspect of the present invention discloses a system for converting time-indexed meteorological data into space-indexed data, the system comprising:

[0023] A first processing module, configured to read in all the meteorological data to be processed, where the lat table contains the latitude data of each grid point and the lon table contains the longitude data of each grid point;

[0024] A second processing module, configured to split the lat table and the lon table to obtain sub-tables of the lat table and sub-tables of the lon table;

[0025] A third processing module, configured to merge the time series of the 1st to Nth meteorological parameters for each grid point range corresponding to the sub-tables of the lat table and the sub-tables of the lon table;

[0026] A fourth processing module, configured that if the root directory of data storage is the first-level storage directory, the second-level storage directory represents the files corresponding to the 1st to Kth latitude ranges, and the third-level storage directory represents the files corresponding to the 1st to Lth longitude ranges.

[0027] According to the system of the second aspect of the present invention, the first processing module is configured to, in tables A 11 ~A MN are the time series of the 1st to Nth meteorological parameters at each grid point in the 1st to Mth files, that is, in table A mn is the time series of the nth meteorological parameter at each grid point in the mth file.

[0028] According to the system of the second aspect of the present invention, the second processing module, configured to split the lat table and the lon table to obtain sub-tables of the lat table and sub-tables of the lon table, specifically includes:

[0029] If there are I*K grid points in latitude and J*L grid points in longitude, then every I grid points in latitude and every J grid points in longitude are divided into a sub-table. The lat table forms a total of L*K sub-tables, which are respectively lat 11 Table ~ lat LK Table; the lon table forms a total of L*K sub-tables, which are respectively lon 11 Table ~ lon LK Table.

[0030] According to the system of the second aspect of the present invention, the third processing module is configured to merge the time series of the 1st to Nth meteorological parameters for the grid point ranges corresponding to each sub-table of the lat table and each sub-table of the lon table, specifically including:

[0031] Merge the time series of the same meteorological parameter in the 1st to M files. For the lat lk Table and lon lk Table to form Table A lk1 ~ Table A lkN .

[0032] According to the system of the second aspect of the present invention, the fourth processing module is configured to, the second-level storage directory represents the files corresponding to the 1st to K latitude ranges, specifically:

[0033] The kth folder of the second-level storage directory is the data of all grid points corresponding to the (i*k - i + 1)th to (i*k)th latitudes.

[0034] According to the system of the second aspect of the present invention, the fourth processing module is configured to, the third-level storage directory represents the files corresponding to the 1st to L longitude ranges, specifically:

[0035] In the kth folder of the second-level storage directory, the lth folder of the third-level storage directory is the data of all grid points corresponding to the (i*k - i + 1)th to (i*k)th latitudes and the (j*l - l + 1)th to (j*l)th longitudes.

[0036] According to the system of the second aspect of the present invention, the fourth processing module is configured to, in the kth folder of the second-level storage directory and in the lth folder of the third-level storage directory, the stored files are the lat jk Table and the lon jk Table, Table A jk1 ~ Table A jkN .

[0037] A third aspect of the present invention discloses an electronic device. The electronic device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps in a method for converting time-indexed meteorological data into space-indexed data according to any one of the first aspects of the present disclosure are implemented.

[0038] A fourth aspect of the present invention discloses a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps in a method for converting time-indexed meteorological data into space-indexed data according to any one of the first aspects of the present disclosure are implemented.

[0039] The solution proposed by the present invention forms a method for indexing meteorological data by space, which improves the data input / output speed for retrieving data of a certain grid point at a certain time period. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0041] Figure 1 FIG. is a flowchart of a method for converting time-indexed meteorological data into space-indexed data according to an embodiment of the present invention;

[0042] Figure 2 FIG. is a structural diagram of a system for converting time-indexed meteorological data into space-indexed data according to an embodiment of the present invention;

[0043] Figure 3 FIG. is a structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0044] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, rather than all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the scope of protection of the present invention.

[0045] A first aspect of the present invention discloses a method for converting time-indexed meteorological data into space-indexed data. Figure 1 FIG. is a flowchart of a method for converting time-indexed meteorological data into space-indexed data according to an embodiment of the present invention, as Figure 1As shown, the method includes:

[0046] Meteorological data division and meteorological data storage;

[0047] Step S1: Read in all the meteorological data to be processed, where the lat table contains the latitude data of each grid point and the lon table contains the longitude data of each grid point;

[0048] Step S2: Split the lat table and the lon table to obtain sub-tables of the lat table and sub-tables of the lon table;

[0049] Step S3: For the grid point ranges corresponding to each sub-table of the lat table and each sub-table of the lon table, merge the time series of the 1st to the Nth meteorological parameters;

[0050] Step S4: If the root directory of data storage is the first-level storage directory, then the second-level storage directory represents the files corresponding to the 1st to the Kth latitude ranges, and the third-level storage directory represents the files corresponding to the 1st to the Lth longitude ranges.

[0051] In step S1, read in all the meteorological data to be processed, where the lat table contains the latitude data of each grid point and the lon table contains the longitude data of each grid point.

[0052] In some embodiments, in step S1, the method further includes:

[0053] A 11 ~A MN In the table are the time series of the 1st to the Nth meteorological parameters at each grid point in the 1st to the Mth files, that is, A mn In the table are the time series of the nth meteorological parameter at each grid point in the mth file.

[0054] Specifically, obtain ERA5 data as needed. The data time ranges from January 1, 2004 to December 31, 2013. The data for each month is stored as 1 nc format file, that is, there are a total of 120 files. The spatial grid division accuracy in the files is 0.25°. The data includes the u-component of the 100-meter wind speed (hereinafter referred to as "u-component") and the v-component of the 100-meter wind speed (hereinafter referred to as "v-component").

[0055] Read in all the data using a matlab program and convert each nc format file to mat format. In it, the lat table contains the latitude data of each grid point and the lon table contains the longitude data of each grid point, A 1-1 ~A 120-2 In the table are the time series of the 1st to the 2nd meteorological parameters (1 is the u-component, 2 is the v-component) at each grid point in the 1st to the 120th files.

[0056] In step S2, the lat table and the lon table are split to obtain a sub-table of the lat table and a sub-table of the lon table.

[0057] In some embodiments, in the step S2, the splitting of the lat table and the lon table to obtain a sub-table of the lat table and a sub-table of the lon table specifically includes:

[0058] If there are I*K grid points in latitude and J*L grid points in longitude, then every I grid points in latitude and every J grid points in longitude are divided into a sub-table. The lat table forms a total of L*K sub-tables, which are respectively lat 11 Table ~ lat LK Table; the lon table forms a total of L*K sub-tables, which are respectively lon 11 Table ~ lon LK Table, as shown in Table 1 and Table 2.

[0059] Table 1

[0060] <![CDATA[lat 11 > <![CDATA[lat 21 > ... <![CDATA[lat L1 > <![CDATA[lat 12 > <![CDATA[lat 22 > ... ... ... ... <![CDATA[lat lk > ... <![CDATA[lat 1K > ... ... <![CDATA[lat LK >

[0061] Table 2

[0062] <![CDATA[lon 11 > <![CDATA[lon 21 > ... <![CDATA[lon L1 > <![CDATA[lon 12 > <![CDATA[lon 22 > ... ... ... ... <![CDATA[lon lk > ... <![CDATA[lon 1K > ... ... <![CDATA[lon LK >

[0063] Specifically, splitting the lat table and the lon table is as follows: there are 180 / 0.25 = 720 grid points in latitude and 360 / 0.25 = 1440 grid points in longitude. Then every 6 grid points in latitude and every 6 grid points in longitude are divided into a sub-table. The lat table forms a total of 120*240 = 28800 sub-tables, which are respectively lat 1-1 Table ~ lat 240-120 Table; the lon table forms a total of 28800 sub-tables, which are respectively lon 1-1 Table ~ lon 240-120 Table; as shown in Table 3 and Table 4.

[0064] Table 3

[0065]

[0066]

[0067] Table 4

[0068] <![CDATA[lon 11 > <![CDATA[lon 21 > ... <![CDATA[lon J1 > <![CDATA[lon 12 > <![CDATA[lon 22 > ... ... ... ... ... ... <![CDATA[lon 1K > ... ... <![CDATA[lon JK >

[0069] In step S3, for the grid point ranges corresponding to each sub-table of the lat table and each sub-table of the lon table, the time series of the 1st to the Nth meteorological parameters are merged.

[0070] In some embodiments, in step S3, for the grid point ranges corresponding to the sub - tables of each lat table and lon table, merging the time series of the 1st to Nth meteorological parameters specifically includes:

[0071] Merging the time series of the same meteorological parameter in the 1st to M files. For the lat lk table and lon lk table, table A lk1 ~table A lkN .

[0072] Specifically, for the grid point ranges corresponding to each lat table and lon table sub - table, merge the time series of the u - component and v - component, that is, merge the time series of the u - component in the 1st to 120 files and the time series of the v - component in the 1st to 120 files.

[0073] In step S4, the root directory of data storage is the first - level storage directory, then the second - level storage directory represents the files corresponding to the 1st to K latitude ranges, and the third - level storage directory represents the files corresponding to the 1st to L longitude ranges.

[0074] In some embodiments, in step S4, the second - level storage directory represents the files corresponding to the 1st to K latitude ranges, specifically:

[0075] The kth folder of the second - level storage directory stores all the grid - point data corresponding to the latitudes from i*k - i + 1 to i*k.

[0076] The third - level storage directory represents the files corresponding to the 1st to L longitude ranges, specifically:

[0077] In the kth folder of the second - level storage directory, the lth folder of the third - level storage directory stores all the grid - point data corresponding to the latitudes from i*k - i + 1 to i*k and the longitudes from j*l - l + 1 to j*l.

[0078] In the kth folder of the second - level storage directory and the lth folder of the third - level storage directory, the stored files are table lat jk and table lon jk , table A jk1 ~table A jkN .

[0079] Specifically, assuming that the root directory of data storage is the first-level storage directory, the second-level storage directory folder is named Lat-90.00--88.75 to Lat+88.50-+89.75, and the files in the Lat+88.50-+89.75 folder are the data of all grid points corresponding to latitudes from 88.50°N to 89.75°N. The third-level storage directory folders are all named Lon-180.00--178.75 to Lon+178.50-+179.75, and the files in the Lon+178.50-+179.75 folder are the data of all grid points corresponding to longitudes from 178.50°E to 179.75°E;

[0080] In the k-th folder of the second-level storage directory and the l-th folder of the third-level storage directory, the stored files are table lat lk , table lon lk , table A lk1 (corresponding to the longitude and latitude range, the time series of the u-component), table A lk2 (corresponding to the longitude and latitude range, the time series of the v-component), and the storage format is a mat format file;

[0081] If it is necessary to read the u-component data from January 1, 2004 to December 31, 2006 at 87.5°S and 177.5°W, only need to locate all the mat format files in the Lon-178.50--177.25 folder in the Lat-88.5--87.25 folder, and intercept the required data after reading all of them.

[0082] In summary, the solution proposed by the present invention can form a method for indexing meteorological data by space, and improve the data input and output speed of retrieving data of a certain grid point at a certain period of time.

[0083] The second aspect of the present invention discloses a system for converting time-indexed meteorological data into space-indexed data. Figure 2 It is a structural diagram of a system for converting time-indexed meteorological data into space-indexed data according to an embodiment of the present invention; as Figure 2 shown, the system 100 includes:

[0084] A first processing module 101, configured to read in all meteorological data to be processed, where the lat table contains the latitude data of each grid point, and the lon table contains the longitude data of each grid point;

[0085] A second processing module 102, configured to split the lat table and the lon table to obtain a sub-table of the lat table and a sub-table of the lon table;

[0086] The third processing module 103 is configured to merge the time series of the 1st to Nth meteorological parameters for each grid range corresponding to the sub-tables of the lat table and the sub-tables of the lon table;

[0087] The fourth processing module 104 is configured that if the root directory of data storage is the first-level storage directory, then the second-level storage directory represents the files corresponding to the 1st to Kth latitude ranges, and the third-level storage directory represents the files corresponding to the 1st to Lth longitude ranges.

[0088] For the system according to the second aspect of the present invention, the first processing module 101 is configured to 11 ~A MN In the table are the time series of the 1st to Nth meteorological parameters at each grid point in the 1st to Mth files, that is, A mn In the table are the time series of the nth meteorological parameter at each grid point in the mth file.

[0089] For the system according to the second aspect of the present invention, the second processing module 102 is configured to split the lat table and the lon table to obtain the sub-tables of the lat table and the sub-tables of the lon table, specifically including:

[0090] If there are I*K grid points in latitude and J*L grid points in longitude, then every I grid points in latitude and every J grid points in longitude are divided into a sub-table. The lat table forms a total of L*K sub-tables, namely lat 11 Table ~ lat LK Table; the lon table forms a total of L*K sub-tables, namely lon 11 Table ~ lon LK Table.

[0091] For the system according to the second aspect of the present invention, the third processing module 103 is configured to merge the time series of the 1st to Nth meteorological parameters for each grid range corresponding to the sub-tables of the lat table and the sub-tables of the lon table, specifically including:

[0092] Merge the time series of the same meteorological parameter in the 1st to Mth files. For the lat lk Table and lon lk Table to form Table A lk1 ~Table A lkN .

[0093] For the system according to the second aspect of the present invention, the fourth processing module 104 is configured that the second-level storage directory represents the files corresponding to the 1st to Kth latitude ranges, specifically:

[0094] The kth folder in the second-level storage directory is the data of all grid points corresponding to the (i*k - i + 1)th to (i*k)th latitudes.

[0095] For the system according to the second aspect of the present invention, the fourth processing module 104 is configured such that the third-level storage directory represents files corresponding to the 1st to the Lth longitude ranges, specifically:

[0096] In the kth folder of the second-level storage directory, the lth folder of the third-level storage directory contains data of all grid points corresponding to the (i*k - i + 1)th to the (i*k)th latitudes and the (j*l - l + 1)th to the (j*l)th longitudes.

[0097] For the system according to the second aspect of the present invention, the fourth processing module 104 is configured such that in the kth folder of the second-level storage directory and the lth folder of the third-level storage directory, the stored files are table lat jk and table lon jk , table A jk1 ~table A jkN .

[0098] The third aspect of the present invention discloses an electronic device. The electronic device includes a memory and a processor. When the processor executes a computer program stored in the memory, the steps in a method for converting time-indexed meteorological data into space-indexed data according to any one of the first aspects disclosed in the present invention are implemented.

[0099] Figure 3 As shown in Figure 3 for a structural diagram of an electronic device according to an embodiment of the present invention, the electronic device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a carrier network, near-field communication (NFC), or other technologies. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the electronic device, or an external keyboard, touchpad, or mouse, etc.

[0100] Those skilled in the art can understand that Figure 3 the structure shown in merely represents a structural diagram of a part related to the technical solution of the present disclosure, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. A specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different component layout.

[0101] The fourth aspect of the present invention discloses a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps in a method for converting time-indexed meteorological data into space-indexed data according to any one of the first aspects disclosed in the present invention are implemented.

[0102] Please note that the technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification. The above embodiments only represent several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.

Claims

1. A method for converting time-indexed meteorological data into space-indexed data, characterized in that, the method includes: meteorological data division and meteorological data storage; Step S1: Read in all meteorological data to be processed, where the lat table contains latitude data for each grid point and the lon table contains longitude data for each grid point; Step S2: Split the lat table and the lon table to obtain sub-tables of the lat table and sub-tables of the lon table; Step S3: For the grid point ranges corresponding to each sub-table of the lat table and each sub-table of the lon table, merge the time series of the 1st to Nth meteorological parameters; Step S4: The root directory of data storage is the first-level storage directory, the second-level storage directory represents files corresponding to the 1st to K latitude ranges, and the third-level storage directory represents files corresponding to the 1st to L longitude ranges; In Step S1, the method further includes: A 11 ~A MN The table shows the time series of the 1st to Nth meteorological parameters at each grid point in the 1st to Mth files, i.e., A mn The table shows the time series of the nth meteorological parameter at each grid point in the mth file; In Step S2, the splitting of the lat table and the lon table to obtain sub-tables of the lat table and sub-tables of the lon table specifically includes: If there are I*K grid points in latitude and J*L grid points in longitude, then every I grid points in latitude and every J grid points in longitude are divided into a sub-table. The lat table forms a total of L*K sub-tables, namely lat 11 Table ~ lat LK Table; The lon table forms a total of L*K sub-tables, namely lon 11 Table ~ lon LK Table.

2. The method for converting time-indexed meteorological data into space-indexed data according to claim 1, characterized in that, In Step S3, the merging of the time series of the 1st to Nth meteorological parameters for the grid point ranges corresponding to each sub-table of the lat table and each sub-table of the lon table specifically includes: Merge the time series of the same meteorological parameters in the 1st to Mth files to form Table A for the lat lk table and lon lk table lk1 ~ Table A lkN .

3. The method for converting time-indexed meteorological data into space-indexed data according to claim 2, characterized in that, In Step S4, the second-level storage directory representing files corresponding to the 1st to K latitude ranges specifically is: The kth folder of the second-level storage directory contains data for all grid points corresponding to latitudes from i*k - i + 1 to i*k.

4. The method for converting time-indexed meteorological data into space-indexed data according to claim 3, characterized in that, In Step S4, the third-level storage directory representing files corresponding to the 1st to L longitude ranges specifically is: In the kth folder of the second-level storage directory, the lth folder of the third-level storage directory contains data for all grid points corresponding to latitudes from i*k - i + 1 to i*k and longitudes from j*l - l + 1 to j*l.

5. The method for converting time-indexed meteorological data into space-indexed data according to claim 4, characterized in that, In the step S4, in the k-th folder of the second-level storage directory and in the l-th folder of the third-level storage directory, the stored files are table lat jk and table lon jk , table A jk1 ~table A jkN .

6. A system for converting time-indexed meteorological data into space-indexed data, the system adopts the method according to any one of claims 1 - 5, characterized in that, the system includes: A first processing module configured to read in all meteorological data to be processed, where the lat table contains latitude data for each grid point and the lon table contains longitude data for each grid point; A second processing module configured to split the lat table and the lon table to obtain sub-tables of the lat table and sub-tables of the lon table; A third processing module configured to merge the time series of the 1st to Nth meteorological parameters for the grid point ranges corresponding to each sub-table of the lat table and each sub-table of the lon table; The fourth processing module is configured such that if the root directory of data storage is the first-level storage directory, then the second-level storage directory represents files corresponding to the 1st to Kth latitude ranges, and the third-level storage directory represents files corresponding to the 1st to Lth longitude ranges.

7. An electronic device, characterized in that, the electronic device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps in a method for converting time-indexed meteorological data into space-indexed data according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in a method for converting time-indexed meteorological data into space-indexed data according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Power meteorological data fusion method and system

    CN109583467A

  • Data storage method, data retrieval method, database access method and device

    CN111241102A