Meteorological grid data management method and device

By using the combined solution of MPP distributed database and PostGrid plug-in in meteorological grid data management, the problem of low storage efficiency of meteorological grid data is solved, efficient data access and analysis is achieved, and the performance and user experience of meteorological forecasting are improved. .

CN116126973BActive Publication Date: 2024-09-24STATE QIXIANG INFORMATION CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211725278.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2024-09-24
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

The existing meteorological grid data storage method suffers from poor user experience, difficult retrieval, long response time, and inability to effectively obtain data in designated areas, resulting in limited weather prediction.

Method used

A meteorological grid data management solution based on the MPP distributed database is adopted. Through sharding and distributed parallel optimization, the PostGrid database plug-in is used to store the grid data in binary form and register it as a SQL function to achieve query push-down optimization.

Benefits of technology

It significantly improves the access performance of grid data, supports efficient data writing, simple queries and complex analysis, provides transaction support and multi-user sharing capabilities, and overcomes the efficiency bottleneck of the file system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0004024631270000011
    Figure HDA0004024631270000011
  • Figure HDA0004024631270000012
    Figure HDA0004024631270000012
  • Figure HDA0004024631270000021
    Figure HDA0004024631270000021
Patent Text Reader

Abstract

The present invention discloses a meteorological grid data management method and device, belonging to the field of meteorological information processing. The present invention provides a meteorological grid data storage management solution based on an MPP distributed database, and at the same time realizes distributed parallel optimization for common analysis algorithms, effectively improving the access performance of grid data. Through the form of a PostGrid database plug-in, the storage of grid data is natively supported inside the database; operations on grid data are implemented through SQL, including data writing, simple queries and complex analysis; the advantages of parallel processing are fully utilized to realize distributed execution optimization for some aggregate functions; grid data is managed in a relational model, inheriting many advantages of relational databases compared to file systems, such as transaction support, SQL support, multi-user sharing, etc.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of meteorological information processing, and in particular to a meteorological grid data management method and device. Background Art

[0002] Meteorological data can be divided into two types based on spatial distribution: station data and grid data. Station data is the data measured at the observation station. Grid data is to merge the spatially unevenly distributed station data into a certain geometric grid, calculate the average value of the data in each grid, and place it at the center of the grid. The data formed by this processing has the characteristic of high temporal and spatial resolution.

[0003] In practical applications, a large amount of station observation data has been accumulated. However, due to the uneven spatial distribution of meteorological observation stations, the different lengths of time series, and the environmental changes of observation stations, in specific climate analysis and numerical simulation studies, discrete station data is not conducive to visualization and analysis, and cannot fully and truly represent the characteristics of regional climate change. Meteorological forecasts face many limitations, so in some scenarios, it is necessary to convert station data into regular and continuous grid data. Grid data uses spatial interpolation technology to convert discrete station data into spatially continuous and regular grid point sequences, which can effectively reflect the spatial information of climate elements and greatly improve the climate representativeness of climate data sequences in the corresponding grid range.

[0004] In the existing solution, the meteorological grid data is stored in the file system as NetCDF files, and the required data is read through the file interface. Due to the efficiency bottleneck of the file system itself, this service mode has a poor user experience, difficult retrieval, long user request response time, and cannot obtain data in the specified area. Summary of the invention

[0005] In order to solve the defects of the prior art, the present invention provides a meteorological grid data management method and device, which realizes a meteorological grid data storage and management solution based on the MPP distributed database, and at the same time realizes distributed parallel optimization for common analysis algorithms, effectively improving the access performance of grid data.

[0006] The present invention provides the following technical solutions:

[0007] A meteorological grid data management method, the method comprising:

[0008] S100: Slice the meteorological grid data;

[0009] S200: storing the fragmented meteorological grid data in a distributed database cluster in binary form through a database plug-in, and registering it in the distributed database cluster in the form of an SQL function;

[0010] The distributed database cluster includes several nodes, each of which includes its own processor, memory and disk. The processors of each node communicate through an interconnected network. Each node runs its own separate database service. The sharded meteorological grid data is stored in the database of each node and registered in the database of each node in the form of SQL functions.

[0011] Furthermore, the meteorological grid data is divided into perennial value data and full-year value data; the full-year value data is sharded in a horizontal sharding manner and distributed and stored in the database of each node, and the perennial value data is stored in a replicated table in the database of each node.

[0012] Furthermore, the perennial value data is hash-partitioned according to the primary key column in the perennial value data, the perennial value data of a single data source is stored in a partition table, and a column is added to distinguish different element types.

[0013] Furthermore, the meteorological grid point data includes a file header and data content, the file header stores metadata information of the meteorological grid point data, and the data content stores data information of the meteorological grid point data.

[0014] Furthermore, the nodes are divided into coordination nodes and working nodes. The coordination nodes are responsible for parsing and distributing requests and providing cluster management, and the working nodes are responsible for storing and calculating local shard data. The coordination nodes store all metadata information of the distributed database cluster, and the working nodes store metadata information of local shards.

[0015] Furthermore, the method further comprises:

[0016] Query optimization is performed by query pushdown, where:

[0017] Each working node executes the query operation and returns the result to the coordinating node, which is saved in the local temporary file of the coordinating node;

[0018] After all working nodes have completed query execution, the coordinating node merges the data in the local temporary files and returns the final result.

[0019] A meteorological grid data management device, the device comprising:

[0020] Slicing module, used to slice the meteorological grid data;

[0021] A storage module is used to store the sharded meteorological grid data in binary form in a distributed database cluster through a database plug-in, and register it in the distributed database cluster in the form of an SQL function;

[0022] The distributed database cluster includes several nodes, each of which includes its own processor, memory and disk. The processors of each node communicate through an interconnected network. Each node runs its own separate database service. The sharded meteorological grid data is stored in the database of each node and registered in the database of each node in the form of SQL functions.

[0023] Furthermore, the meteorological grid data is divided into perennial value data and full-year value data; the full-year value data is sharded in a horizontal sharding manner and distributed and stored in the database of each node, and the perennial value data is stored in a replicated table in the database of each node;

[0024] Furthermore, the perennial value data is hash-partitioned according to the primary key column in the perennial value data, the perennial value data of a single data source is stored in a partition table, and a column is added to distinguish different element types.

[0025] Furthermore, the nodes are divided into coordination nodes and working nodes. The coordination nodes are responsible for parsing and distributing requests and providing cluster management, and the working nodes are responsible for storing and calculating local shard data. The coordination nodes store all metadata information of the distributed database cluster, and the working nodes store metadata information of local shards.

[0026] Furthermore, the device also includes:

[0027] The query optimization module is used to optimize queries by query push-down, wherein: each working node executes the query operation and returns the result to the coordination node, which is saved in the local temporary file of the coordination node; after the query execution of all working nodes is completed, the coordination node merges the data in the local temporary file and returns the final result.

[0028] The present invention has the following beneficial effects:

[0029] The present invention provides a meteorological grid data storage and management solution based on an MPP distributed database, and realizes distributed parallel optimization for common analysis algorithms, effectively improving the access performance of grid data. Through the form of a PostGrid database plug-in, the storage of grid data is natively supported within the database; operations on grid data are implemented through SQL, including data writing, simple queries, and complex analysis; the advantages of parallel processing are fully utilized to realize distributed execution optimization for some aggregate functions; grid data is managed in the form of a relational model, inheriting many advantages of relational databases compared to file systems, such as transaction support, SQL support, and multi-user sharing. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a flow chart of the meteorological grid data management method of the present invention;

[0031] Figure 2 This is a schematic diagram of the system architecture of a large-scale parallel database;

[0032] Figure 3 This is a schematic diagram of meteorological grid data;

[0033] Figure 4 This is a schematic diagram of the data model for meteorological grid data;

[0034] Figure 5 It is a schematic diagram of the meteorological grid data management device of the present invention. DETAILED DESCRIPTION

[0035] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.

[0036] The embodiment of the present invention provides a method for managing meteorological grid data, which stores meteorological grid data in a distributed database. Specifically, Figure 1 As shown, the method of the present invention comprises:

[0037] S100: Slice the meteorological grid data.

[0038] S200: The sharded meteorological grid data is stored in a distributed database cluster in binary form through a database plug-in, and is registered in the distributed database cluster in the form of an SQL function.

[0039] The distributed database cluster of the present invention can be a massively parallel database (MPP, Massively Parallel Processing Database), which is the product of the combination of parallel computing and database technology. The MPP distributed database cluster of the present invention is composed of a group of PostgreSQL instances. According to different functional positioning, the nodes in the cluster can be divided into coordinating nodes (Coordinator Node) and working nodes (Worker Node). Among them, the coordinating node is responsible for parsing and distributing requests and providing basic cluster management. The working node is responsible for the storage and calculation of local shard data. The coordinating node saves all metadata information of the distributed database cluster, and the working node saves metadata information of the local shard. Its system architecture diagram is as follows Figure 2 shown.

[0040] The distributed database cluster of the present invention is a shared-nothing architecture, each node includes a respective processor, a memory and one or more disks, the processors of each node can communicate with each other through a high-speed interconnection network, and each node runs a separate database service. Since each node includes a respective processor, memory and disk, the memory and disk are not shared with each other, and the data accessed by each processor are provided by a local disk, which overcomes the disadvantage that all I / O operations need to pass through the same interconnection network, and only when accessing the data of non-local disks, it is necessary to transmit through the network. At the same time, in a shared-nothing system, the mode of the interconnection network is usually designed to be scalable, so that when more nodes join the cluster, the overall performance of the cluster is also improved. Therefore, the shared-nothing architecture of the present invention has better scalability, and can easily support relatively more nodes.

[0041] The present invention natively supports the storage of grid data in the database by means of a database plug-in, wherein the database plug-in is a PostGrid grid plug-in, which is developed based on PostgreSQL and C language plug-in, and which expands the storage type of PostgreSQL in the prior art, and provides core functions in the form of SQL functions; the sharded meteorological grid data is stored in the database of each node of the distributed database cluster in binary form, and registered in the database of each node in the form of SQL functions, providing operations, queries and analysis of the grid data. The grid data does not need to be downloaded for client calculation, so that the data is close to the calculation end, changing the traditional data download and client calculation process, and realizing the integration of grid data calculation. The grid data is divided into time and grid points according to the Grid model, and a spatial index is established, and parallel computing capabilities are provided, which can greatly improve the query and aggregation efficiency, and finally realize efficient and flexible external provision of spatial services based on grid data.

[0042] Specifically, PostGrid grid data "digital calculation integration" is an extended model customized for meteorological grid services. It provides operators to perform grid operations, supporting addition, subtraction, multiplication, division, maximum value, minimum value, average value, summation, filtering, interpolation, anomaly, anomaly percentage, etc. Taking OLR data aggregation service as an example, data aggregation services such as ten-day, month, season, and year can all respond at the millimeter level. PostGrid grid data "digital calculation integration" technology upgrades traditional aggregation computing services from minutes to milliseconds, greatly improving the performance of meteorological grid data services, and has a very high promotion value. For different grid products, climate thematic product services are formed, such as sea surface temperature, sea temperature index, etc. Support output in WKB, HEXWKB, NetCDF, PNG, JPG, TIFF and other formats.

[0043] The Grid data model is a storage model designed for grid data. Figure 3 As shown in Figure 1, based on this model, it provides grid data import, export, matrix calculation, spatial calculation, statistics, aggregation, dimensionality reduction, filtering and other functions. The Grid data model mainly consists of two parts, the file header and the data content, such as Figure 4 As shown in the figure, the file header stores the metadata information of the Grid, including the starting coordinates, row and column values, resolution, invalid values, etc. The data content stores the data information of the Grid, and its data types include integer and floating point types. The data is stored in a row-first manner.

[0044] Grid data usually involves multiple data sources. Different data sources have different spatial resolutions and the corresponding number of elements varies to a certain extent. In the database storage, the physical size of a single row varies greatly. Grid data from all data sources can be divided into perennial data and full-year data. Perennial data refers to the data of the data source corresponding to a certain year, and the update frequency is relatively low; full-year data refers to the full amount of data of the data source, which saves all data from a certain point in the past to the present, and writes the latest data of the day on a regular basis every day.

[0045] Currently, the access mode of grid data is based on a single data source, mainly in the following two ways: 1) querying the full-year value data, 2) querying the association between the full-year value data and the perennial value data. The first access mode is only for the full-year value data, including screening based on time range and other conditions, as well as basic calculation and analysis; the second access mode involves the association query between the full-year value and the perennial value, the association condition is mainly the time range, and multiple calculations and analyses are completed on the result set after the association, and there are multiple layers of nested relationships between different calculations and analyses.

[0046] In a distributed database, the storage unit with the smallest granularity of each storage node is called a shard. When sharding, horizontal sharding is used as the storage method for the full-year value data, by assigning each tuple in the relationship table to a specific shard according to a certain rule. Specifically, the primary key column in the data can be used for hash sharding. Since the primary key is random, the data can be better distributed to each storage node after hash sharding. At the same time, since the full-year value data is related to time, the use of partition tables can further utilize the partition pruning optimization provided by the distributed database: when the filter condition contains the partition field, the specified partition is scanned according to the filter condition. Considering the continuous access to new data sources in the future, for a single data source, all corresponding elements are saved in a partition table, and a column is added to distinguish different element types. At the same time, the name of the element type to be accessed is specified during the query. Different data sources are stored in different partition tables, and different partition conditions are set according to the date range.

[0047] For the perennial value data, since it needs to be associated with the full-year value data, and the association condition is not a simple equivalence association, in order to ensure the performance of the associated query, the present invention is implemented by a replication table. The data in the replication table is fully redundant in each node. The perennial value data is stored as a replication table, and a copy of the perennial value data is saved in each node. For the associated query, since the relevant nodes can participate in the association calculation of the full-year value data and the perennial value data, the execution efficiency of the associated query can be effectively improved.

[0048] As an improvement of the embodiment of the present invention, the method further includes:

[0049] S300: Optimize the query by query push-down.

[0050] Query pushdown is a means of query optimization in distributed databases. From the perspective of logical optimization, query pushdown pushes some nodes in the logical query tree to leaf nodes or close to leaf nodes, that is, closer to the data source, thereby greatly reducing the amount of data involved in the operation of the upper-level nodes and improving data processing efficiency. From the perspective of physical plan execution, query pushdown pushes the query conditions to the Scan node, allowing the Scan node to directly filter out data that is not related to the query results, thereby improving data transmission and processing efficiency.

[0051] The database of the present invention can mainly perform push-down operations including: 1) Projection push-down. Projection push-down is column clipping. By pushing down the required columns to the storage engine, the storage engine can only return the required column data to the query engine, which can greatly reduce the data transmission IO, especially for the storage engine in column storage mode, which can greatly improve the query efficiency. 2) Condition push-down. Condition push-down is to push the filter conditions to the storage engine, the data source is pre-filtered first, and the data of the composite conditions is returned to the query engine. 3) Aggregation push-down: Aggregation push-down is to push the aggregation function min / max / count / sum / avg down to the storage engine, use the aggregation function of the storage engine itself to perform aggregation evaluation, and return the evaluation result to the query engine, which can greatly reduce the data transmission overhead and greatly save the use of memory. 4) Order By / Limit push-down. The meanings of these two push-downs are similar to the above. For these two predicates pushed down to the storage engine, when returning data, a series of ordered tuples or the first few tuples required are returned, which can save the query engine from complex sorting overhead and unnecessary data acquisition.

[0052] In order to support the storage of native meteorological grid data, the postgrid plug-in defines a new grid data type: grid. For the newly added grid type, postgrid also provides a variety of functions to support the calculation of grid data, including common functions and aggregate functions. The calculation semantics of aggregate functions and standard numeric types are basically the same, and count / sum / avg calculations are also provided, but the parameter type is based on grid. The following introduces the support of distributed databases for custom type aggregate pushdowns using the avg function (avg_grid) for the grid type.

[0053] For basic types of avg functions, the distributed database of the present invention supports basic push-down optimization. Assume that the table test_table contains a numerical column c1 of type integer, and for the query select avg(c1)from test_table:

[0054] S310: Each working node executes the query operation and returns the result to the coordination node, which is saved in a local temporary file of the coordination node.

[0055] Specifically, each Worker node will execute ```select sum(c1)as sum_0,count(c1)ascount_0from test_table_0```, where test_table_0 represents the shard contained in the current Worker. After the query execution of the Worker node is completed, the Worker node returns the result to the Coordinator node and saves it in the local temporary file of the Coordinator node. This step is called partial aggregate.

[0056] S320: After all working nodes have completed query execution, the coordination node merges the data in the local temporary file and returns the final result.

[0057] Specifically, after all Worker nodes have completed query execution, the Coordinator node executes ```select sum(sum_0) / sum(count_0)from test_table_tmp``` based on the results returned by all Worker nodes, where test_table_tmp logically represents the results returned by all Worker nodes, sum_0 represents the sum column calculated based on the local shards returned by each Worker node, and the corresponding count_0 represents each count column. This step is called final aggregate.

[0058] The push-down execution process of custom aggregate functions is similar to that of standard aggregate functions, but is different from the specific executed functions, which is guaranteed by the semantics of different aggregate functions. The postgrid plug-in also provides functions with sum and count semantics that adapt to the push-down execution process for the avg_grid function; due to the business meaning of the grid data, the sum / count executed by the Coordinator node is different from the sum / count of the Worker node. During the query optimization phase, when the optimizer finds that the expression contains the avg_grid function, it will generate different SQLs for the Worker node and the Coordinator node to execute according to the calculation semantics of avg_grid.

[0059] The present invention provides a meteorological grid data storage and management solution based on an MPP distributed database, and realizes distributed parallel optimization for common analysis algorithms, effectively improving the access performance of grid data. Through the form of a PostGrid database plug-in, the storage of grid data is natively supported within the database; operations on grid data are implemented through SQL, including data writing, simple queries, and complex analysis; the advantages of parallel processing are fully utilized to realize distributed execution optimization for some aggregate functions; grid data is managed in the form of a relational model, inheriting many advantages of relational databases compared to file systems, such as transaction support, SQL support, and multi-user sharing.

[0060] The embodiment of the present invention provides a weather grid data management device, such as Figure 5 As shown, the device comprises:

[0061] The slicing module 1 is used to slice the meteorological grid data.

[0062] The storage module 2 is used to store the fragmented meteorological grid data in binary form in the distributed database cluster through the database plug-in, and register it in the distributed database cluster in the form of SQL function.

[0063] Among them, the distributed database cluster includes several nodes, each node includes its own processor, memory and disk, the processors of each node communicate through the interconnected network, and each node runs its own separate database service. The sharded meteorological grid data is stored in the database of each node and registered in the database of each node in the form of SQL functions.

[0064] In the present invention, the meteorological grid data is divided into perennial value data and full-year value data; the full-year value data is sharded in a horizontal sharding manner and distributed and stored in the database of each node, and the perennial value data is stored in a replicated table in the database of each node;

[0065] Among them, the perennial value data is hashed according to the primary key column in the perennial value data, the perennial value data of a single data source is stored in a partition table, and a column is added to distinguish different feature types.

[0066] The aforementioned nodes are divided into coordination nodes and working nodes. The coordination nodes are responsible for parsing and distributing requests and providing cluster management. The working nodes are responsible for the storage and calculation of local shard data. The coordination nodes save all metadata information of the distributed database cluster, and the working nodes save metadata information of the local shards.

[0067] As an improvement of the embodiment of the present invention, the device further includes:

[0068] The query optimization module is used to optimize queries by query push-down, in which: each working node executes the query operation and returns the result to the coordination node, which is saved in the local temporary file of the coordination node; after the query execution of all working nodes is completed, the coordination node merges the data in the local temporary file and returns the final result.

[0069] The present invention provides a meteorological grid data storage and management solution based on an MPP distributed database, and realizes distributed parallel optimization for common analysis algorithms, effectively improving the access performance of grid data. Through the form of a PostGrid database plug-in, the storage of grid data is natively supported within the database; operations on grid data are implemented through SQL, including data writing, simple queries, and complex analysis; the advantages of parallel processing are fully utilized to realize distributed execution optimization for some aggregate functions; grid data is managed in the form of a relational model, inheriting many advantages of relational databases compared to file systems, such as transaction support, SQL support, and multi-user sharing.

[0070] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as the aforementioned method embodiment. For the sake of brief description, the device embodiment may refer to the corresponding contents in the aforementioned method embodiment for any part not mentioned therein. A person skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the aforementioned devices and units may refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.

[0071] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. They should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A meteorological grid data management method, characterized in that: The meteorological grid point data management method manages meteorological grid point data based on a distributed database cluster, wherein the distributed database cluster includes an MPP database, the distributed database cluster includes a plurality of nodes, each of which runs a separate database service, and the distributed database cluster has a shared-nothing architecture, wherein the processors of each of the nodes communicate through an interconnected network, and the memory and disk of each of the nodes are not shared with each other, and the meteorological grid point data management method includes: S100: Slice the meteorological grid data, wherein the slice is a storage unit of the minimum granularity of the node; S200: The shard data obtained after the sharding of the meteorological grid data is stored in a distributed database cluster in binary form through a database plug-in, wherein: The database plug-in is a PostGrid grid plug-in developed based on PostgreSQL in the distributed database cluster. The data type of the PostGrid grid plug-in is defined as grid data, and the shard data stored in the database of each node through the PostGrid grid plug-in is registered in the database of each node in the form of an SQL function; The nodes are divided into coordination nodes and working nodes. The coordination nodes are responsible for parsing and distributing requests and providing cluster management. The working nodes are responsible for storing and calculating the local shard data. The working nodes save the metadata information of the local shard data. In addition, the coordination nodes save the metadata information of all shard data of the distributed database cluster. The meteorological grid data management method further includes query optimization by query push-down, wherein: each of the working nodes returns the query result of executing the query operation to the coordination node and saves it in the local temporary file of the coordination node, and after all the working nodes have completed the query execution, the coordination node merges the query results in the local temporary file and returns the final result; The meteorological grid data is divided into perennial value data and full-year value data; the full-year value data is sharded in a horizontal sharding manner and distributed and stored in the database of each node, and the perennial value data is stored in a replicated table in the database of each node; The perennial value data is hash-partitioned according to the primary key column in the perennial value data, the perennial value data of a single data source is stored in a partition table, and a column is added to distinguish different element types.

2. The meteorological grid data management method according to claim 1, characterized in that: The meteorological grid point data includes a file header and data content, wherein the file header stores metadata information of the meteorological grid point data, and the data content stores data information of the meteorological grid point data.

3. A meteorological grid data management device, characterized in that: The meteorological grid point data management device manages meteorological grid point data based on a distributed database cluster, wherein the distributed database cluster includes an MPP database, and the distributed database cluster includes a plurality of nodes, each of which runs a separate database service, and the distributed database cluster has a shared-nothing architecture, wherein the processors of each of the nodes communicate through an interconnected network, and the memory and disk of each of the nodes are not shared with each other, and the meteorological grid point data management device includes: A sharding module, used to shard the meteorological grid data, wherein the shard is a storage unit of the smallest granularity of the node; The storage module is used to store the shard data obtained after the meteorological grid data is sharded in a distributed database cluster in binary form through a database plug-in, wherein: The database plug-in is a PostGrid grid plug-in developed based on PostgreSQL in the distributed database cluster. The data type of the PostGrid grid plug-in is defined as grid data, and the shard data stored in the database of each node through the PostGrid grid plug-in is registered in the database of each node in the form of an SQL function; The nodes are divided into coordination nodes and working nodes. The coordination nodes are responsible for parsing and distributing requests and providing cluster management. The working nodes are responsible for storing and calculating the local shard data. The working nodes save the metadata information of the local shard data. In addition, the coordination nodes save the metadata information of all shard data of the distributed database cluster. The meteorological grid data management method further includes query optimization by query push-down, wherein: each of the working nodes returns the query result of executing the query operation to the coordination node and saves it in the local temporary file of the coordination node, and after all the working nodes have completed the query execution, the coordination node merges the query results in the local temporary file and returns the final result; The meteorological grid data is divided into perennial value data and full-year value data; the full-year value data is sharded in a horizontal sharding manner and distributed and stored in the database of each node, and the perennial value data is stored in a replicated table in the database of each node; The perennial value data is hash-partitioned according to the primary key column in the perennial value data, the perennial value data of a single data source is stored in a partition table, and a column is added to distinguish different element types.