A graphic product making method, system, device and terminal

By adopting an adaptive graphic product creation method, the problems of missing members and data errors in the graphic drawing of GRAPES regional ensemble forecast members were solved, and high-precision graphic drawing was achieved, especially with the improvement of adaptability in the drawing of stamp images.

CN114255298BActive Publication Date: 2026-01-20CHENGDU UNIV OF INFORMATION TECH +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111085784.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-16
Publication Date
2026-01-20
Estimated Expiration
2041-09-16

AI Technical Summary

Technical Problem

Existing technologies for drawing GRAPES regional ensemble forecast member graphs suffer from missing member variables, missing forecast lead times, or data errors, resulting in inaccurate drawing and poor adaptability, especially prone to errors when drawing stamp maps.

Method used

This paper provides a method for creating graphical products, including receiving parameter files, creating nc files, reading GRIB data, calculating metrics such as set averages, adaptively determining the existence of members and drawing a base map, using Python + MeteInfo to draw graphics, and automatically handling missing members and data errors.

Benefits of technology

It enables adaptive plotting in the event of missing members or data errors, avoiding overall plotting errors and ensuring the accuracy of data calculation and the adaptability of plotting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114255298B_ABST
    Figure CN114255298B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of figure drawing, and discloses a figure product manufacturing method, system, device and terminal, which receives a txt text recording a set of forecast member time limit file names; creates an nc file by using netCDF4; reads a GRIB data file; respectively calculates set average, dispersion, maximum value, probability and quantile; draws a base map; draws a figure, and saves the figure in a jpg format. The GRAPES regional set forecast member adaptive figure product manufacturing system provided by the application improves the drawing error condition, proposes a drawing method with better adaptability, can process member loss, forecast time limit loss and data error and the like, automatically skips the lost member, if there is a lost time limit, the subsequent time limit data after the lost time limit is also discarded, and the effective data is directly drawn, so that the condition that the whole figure drawing is wrong due to the loss of a member data is avoided, and the accuracy of data calculation is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of graphics rendering, and particularly relates to a graphics product manufacturing method, system, device and terminal. BACKGROUND

[0002] At present, popular software for drawing GRAPES regional ensemble prediction member graphics includes ArcGIS, NCL, GrADS and Surfer. NCL (NCAR Command Language) is a drawing software designed by the National Center for Atmospheric Research (NCAR) of the United States for scientific data processing and visualization, and the drawn graphics is delicate and beautiful. GrADS (Grid Analysis and Display System) is a meteorological data analysis drawing software developed by the Department of Meteorology of the University of Maryland, USA. Surfer is a software developed by the Golden Software Company of the United States for drawing 2D and 3D graphics. ArcGIS is a drawing product developed by the ESRI Company of the United States.

[0003] With the wide application of the GRAPES regional ensemble prediction system, the drawing of GRAPES regional ensemble prediction member graphics has also attracted much attention. At present, GrADS is mostly used to draw GRAPES regional ensemble prediction member graphics, and the predicted regional meteorological data is displayed in the form of graphics to facilitate observation and understanding of future weather conditions.

[0004] At present, GrADS is used to draw GRAPES regional ensemble prediction member graphics, and all members are directly drawn as normal error-free members. However, in actual situations, there may be cases of missing member variables, missing prediction time limit or incorrect data in the prediction time limit that needs to be discarded. The existing drawing program does not have a good corresponding processing when these situations occur, so sometimes the calculated data is not accurate, and sometimes errors occur in the drawing of some member graphics, resulting in the failure of drawing the entire graphics. For example, when a member is missing, the ensemble average should be divided by m-1, but in the current drawing program, it is divided by m. When drawing a stamp chart, if one of the members is wrong, the entire stamp chart may not be successfully drawn. Therefore, the current GRAPES regional ensemble prediction member graphics drawing has poor adaptability.

[0005] Through the above analysis, the problems and defects of the prior art are:

[0006] (1) The existing method of using GrADS to draw GRAPES regional ensemble prediction member graphics may have cases of missing member variables, missing prediction time limit or incorrect data in the prediction time limit that needs to be discarded.

[0007] (2) The data calculated by the existing drawing program is not accurate, and errors are prone to occur when drawing stamps. Errors may occur in the drawing of certain member graphics, resulting in the entire graphic not being able to be drawn and the drawn graphic is not aesthetically pleasing.

[0008] (3) When drawing the stamp map, if one member makes a mistake, the entire stamp map may fail to be drawn successfully. Therefore, the current GRAPES regional set forecast member drawing has poor adaptability. Summary of the Invention

[0009] To address the problems existing in the prior art, the present invention provides a method, system, device and terminal for creating graphic products, and particularly relates to a method, system, device and terminal for creating graphic products based on adaptive GRAPES regional ensemble forecasting members.

[0010] This invention is implemented as follows: a method for manufacturing graphic products, the method comprising the following steps:

[0011] Step 1: Receive the parameter file;

[0012] Step 2: Create an nc file;

[0013] Step 3: Read the data;

[0014] Step four, calculation;

[0015] Step 5: Draw the base map;

[0016] Step six, draw the graphic;

[0017] Step 7: Save the image.

[0018] Furthermore, in step one, the parameter file is a txt text file that records the file names of the forecast members of the set. The data comes from the numerical prediction center of the China Meteorological Administration. Under error-free conditions, there are 15 members, numbered 0-14. Each member has an 85-hour forecast lead time, with a forecast lead time of 000-084.

[0019] After receiving the parameter file, the process also includes sorting the filenames in the parameter txt file by member number and forecast duration, handling missing members and forecast durations, and filtering out valid filenames, including:

[0020] Each filename is split to obtain a member number and forecast lead time. After sorting the member number and forecast lead time, it is checked for any missing lead time. If a member has a missing lead time, the forecast lead time after the missing lead time is invalidated, and only the complete forecast lead time is retained.

[0021] Furthermore, in step two, the creation of the nc file includes:

[0022] An nc file is created using netCDF4, which is used to store all the calculation results of a time limit, and the dimensions of the nc file include longitude, latitude and time; the size and range of longitude and latitude are obtained from the original GRIB2 file; wherein xmin = 70, xmax = 145, ymin = 15, ymax = 65, lonSize = 751, latSize = 501, and the time is the forecast time plus the forecast time limit.

[0023] Further, in step three, the data reading comprises:

[0024] The GRIB data file is read using the ecCodes package, ecCodes accesses the contents in the GRIB message through key / value, and supports reading GRIB version 1 and version 2 data; when reading data, the number of valid members is judged, and it is judged whether the forecast data of each time limit has data error, if there is data error, the data of the time limit is not used; wherein the read data is stored in the form of DataFrame type.

[0025] Further, the data reading further comprises:

[0026] A message in the GRIB file is read using eccodes.codes_grib_new_from_file, the shortName of the message is obtained using eccodes.codes_get(handle_curf,'shortName'), whether the data to be read is determined through the shortName, the data is converted to DataFrame type using pd.DataFrame; when drawing 1 / 3 / 6 / 12 / 24 hour cumulative precipitation, the precipitation data of the previous 1 / 3 / 6 / 12 / 24 hours of the current hour also needs to be read, and the total precipitation of the current time limit is subtracted from the total precipitation of the previous 1 / 3 / 6 / 12 / 24 hours; if there is a message whose shortName does not exist, the meaning of the message is determined through the combination of the two attributes of parameterCategory and parameterNumber.

[0027] Further, in step four, the calculation comprises:

[0028] DataFrame type is calculated through the corresponding operation provided by pandas; when calculating, the number of valid members is used as the total number m; after calculation, the calculation result is saved, and the calculation result is written into the nc file; before drawing the base map, the parameter file is received, and the parameter file is the nc file.

[0029] The calculation includes calculating a set average, a dispersion, a maximum value, a minimum value, a probability, and a quantile.

[0030] The formula for calculating the set average is as follows:

[0031]

[0032] The formula for calculating the dispersion is as follows:

[0033]

[0034] The formula for calculating the maximum / minimum value is as follows:

[0035] x max = maximum [x1, x2,... x m ] ;

[0036] x min = minimum [x1, x2,... x m ] ;

[0037] The quantile is 90%.

[0038] The formula for calculating the probability is as follows:

[0039]

[0040] where n is the number of members whose values are greater than or less than or equal to the threshold value, and m is the number of valid members. The 10-meter wind speed is calculated, which is the 10-meter wind speed in the u and v directions. The actual value of the 10-meter wind speed is obtained by the Pythagorean theorem from the two components, and the formula is as follows:

[0041]

[0042] Further, in step five, the base map is a China provincial map and a China South China Sea Islands region; the base map further includes a China South China Sea Islands small map.

[0043] Further, in step six, the graphic drawing includes:

[0044] Member data judgment is performed when drawing the stamp graph, to determine whether there is a member in nc, and only the existing member graph is drawn; in particular, when drawing the stamp graph, not only is it necessary to determine whether the data required for drawing the graph exists, but it is also necessary to determine whether it is an edge graph, which direction edge graph, and whether the coordinates need to be drawn; the leftmost and lowermost graphs are drawn with vertical and horizontal coordinates, respectively.

[0045] Another object of the present application is to provide a graphic product making system applying the graphic product making method.

[0046] A parameter file receiving module is configured to receive a txt text recording collection forecast member time limit file name;

[0047] A parameter file preprocessing module is configured to perform a sorting and screening preprocessing operation on the parameter file;

[0048] An nc file creating module is configured to create an nc file using netCDF4;

[0049] A data reading module is configured to read a GRIB data file using an ecCodes package;

[0050] A calculating module is configured to calculate ensemble average, dispersion, maximum value, minimum value, probability and quantile, respectively;

[0051] A base map drawing module is configured to draw a China provincial map and a China South China Sea Islands region map;

[0052] A graphic drawing module is configured to draw graphics and save the graphics in a jpg format.

[0053] Another object of the present application is to provide a computer device, which comprises a memory and a processor, the memory stores a computer program, and the computer program is executed by the processor to make the processor perform the following steps:

[0054] The processor receives a txt text recording collection forecast member time limit file name, sorts the file name in the parameter txt file according to the member serial number and the forecast time limit, processes the missing member and the missing time limit, and screens out the effective file name; the processor creates an nc file using netCDF4, reads a GRIB data file using an ecCodes package, calculates ensemble average, dispersion, maximum value, minimum value, probability and quantile, respectively, draws a China provincial map and a China South China Sea Islands region map, draws graphics, and saves the graphics in a jpg format.

[0055] Another object of the present application is to provide an information data processing terminal for realizing the graphic product making system.

[0056] In combination with all the above technical solutions, the graphic product manufacturing method provided by the application has the advantages and positive effects that the graphic product manufacturing method provided by the application, in particular, relates to a data processing system capable of automatically judging whether a member is missing, whether a time limit is missing, and whether data in the member is incorrect, thereby avoiding the case that graphic drawing fails due to data errors and missing members; and a drawing method is provided, which uses python+MeteInfo to draw a graph.

[0057] The graphic product manufacturing system with GRAPES regional ensemble prediction member self-adaptation provided by the application improves the case of drawing errors, proposes a drawing method with better self-adaptation, can well handle the cases of missing members, missing time limits, and data errors, can automatically skip the missing members or invalid data, directly draws the next data, avoids the case that the entire graphic drawing is incorrect due to missing data of a member, and ensures the accuracy of data calculation. BRIEF DESCRIPTION OF DRAWINGS

[0058] In order to more clearly illustrate the technical solutions of the embodiments of the application, the drawings needed to be used in the embodiments of the application will be briefly introduced as follows. Obviously, the drawings described below are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.

[0059] Figure 1 is a flow chart of the graphic product manufacturing method provided by the embodiments of the application.

[0060] Figure 2 is a flow chart of graphic drawing provided by the embodiments of the application.

[0061] Figure 3 is a flow chart of data processing provided by the embodiments of the application.

[0062] Figure 4 is a structure block diagram of the graphic product manufacturing system provided by the embodiments of the application.

[0063] In the figure: 1, parameter file receiving module; 2, parameter file preprocessing module; 3, nc file creation module; 4, data reading module; 5, calculation module; 6, base map drawing module; 7, graphic drawing module. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical solutions and advantages of the application more clear, the application will be further described in detail below in combination with embodiments. It should be understood that the specific embodiments described herein are only used to explain the application and do not limit the application.

[0065] In view of the problems in the prior art, the present application provides a graphic product manufacturing method, system, device and terminal, which are described in detail below with reference to the drawings.

[0066] As shown in Figure 1 The graphic product manufacturing method provided by the embodiment of the present application comprises the following steps:

[0067] S101, receiving a parameter file: receiving a txt text recording a set of ensemble prediction member time limit file name;

[0068] S102, creating an nc file: using netCDF4 to create an nc file;

[0069] S103, reading data: using ecCodes package to read GRIB data file;

[0070] S104, calculation: calculating ensemble average, dispersion, maximum value, minimum value, probability and quantile respectively;

[0071] S105, drawing a base map: drawing a China provincial map and a China South China Sea Islands area map;

[0072] S106, drawing a graph: drawing a graph and saving the graph as a jpg format.

[0073] The graphic drawing flowchart provided by the embodiment of the present application is shown in Figure 2 The data processing flowchart provided by the embodiment of the present application is shown in Figure 3 .

[0074] As shown in Figure 4 The graphic product manufacturing system provided by the embodiment of the present application comprises:

[0075] A parameter file receiving module 1, configured to receive a txt text recording a set of ensemble prediction member time limit file name;

[0076] A parameter file preprocessing module 2, configured to perform a preprocessing operation of sorting and screening on the parameter file;

[0077] An nc file creating module 3, configured to create an nc file using netCDF4;

[0078] A data reading module 4, configured to read a GRIB data file using ecCodes package;

[0079] A calculation module 5, configured to calculate ensemble average, dispersion, maximum value, minimum value, probability and quantile respectively;

[0080] A base map drawing module 6, configured to draw a China provincial map and a China South China Sea Islands area map;

[0081] A graphics drawing module 7 is configured to draw graphics and save the graphics in a jpg format.

[0082] The technical solutions of the present application are further described below in combination with specific embodiments.

[0083] Embodiment 1

[0084] The present application provides a data processing system capable of automatically determining whether a member is missing, whether a time limit is missing, and whether data in a member is incorrect, thereby avoiding the situation that graphics drawing fails due to data errors and member missing. The present application also provides a drawing method using python+MeteInfo to draw graphics.

[0085] Step 1: receiving a parameter file.

[0086] Step 2: sorting the file names in the parameter txt file according to the member number and the time limit, processing member missing and time limit missing.

[0087] Step 3: creating an nc file, one nc file is used to store all calculation results of one time limit, and is also used to store all data required for drawing.

[0088] Step 4: reading a GRIB data file using an ecCodes package, ecCodes accesses the contents in the GRIB message through key / value, and supports reading data of GRIB version 1 and version 2. When reading data, the number of valid members is determined, and whether the prediction data of each time limit has data errors is determined. If there is a data error, the data of this time limit is not used. The read data is stored in a DataFrame type.

[0089] Step 5: performing calculation, the DataFrame type is calculated very quickly and conveniently through the corresponding operation provided by pandas. When calculating, the number of valid members is used as the total number m. The calculation includes calculating the ensemble average, dispersion, maximum value, minimum value, probability, quantile, etc.

[0090] Step 6: saving the calculation results, writing the calculation results into an nc file for subsequent drawing.

[0091] Step 7: receiving a parameter file, the parameter file is an nc file.

[0092] Step 8: drawing a base map, the base map is a China provincial map and a China South China Sea Islands region.

[0093] Step 9: reading data.

[0094] Step 10: draw a graph, and perform member judgment when drawing a stamp graph, judge whether a certain member exists in nc, only draw the existing member graph, avoid errors, and increase the adaptability of the program.

[0095] Step 11: save the graph. The graph is saved in jpg format.

[0096] The GRAPES regional ensemble prediction member adaptive graphic product production system provided by the application improves the error situation of drawing, proposes a drawing method with better adaptability, can well handle member missing, prediction time limit missing and data error and the like, can automatically skip the missing member or invalid data, directly draw the next data, avoid the situation that the drawing of the whole graph is wrong due to the missing data of a member, and ensure the accuracy of data calculation.

[0097] Embodiment 2

[0098] The graphic product production method provided by the embodiment of the application comprises the following steps:

[0099] 1. Receive parameters. The parameters are a txt text recording ensemble prediction member time limit file name, the data is derived from the numerical prediction center of the China Meteorological Administration, there are 15 members under the condition of no error, the member number is 0-14, each member has 85 hours of prediction time limit, and the prediction time limit is 000-084.

[0100] 2. Sort and screen out valid file names. Each file name is cut, mainly to obtain the member serial number and the prediction time limit, after sorting the member serial number and the prediction time limit, whether there is a time limit missing is checked in sequence, if a certain member has a time limit missing, the prediction time limit after the missing time limit is all invalid, and only the previous complete prediction time limit is reserved.

[0101] 3. Create an nc file. The nc file is created by using netCDF4, and the dimensions of the nc file include longitude, latitude and time. The size and range of longitude and latitude are obtained from the original GRIB2 file. Wherein xmin=70, xmax=145, ymin=15, ymax=65, lonSize=751, latSize=501, and the time is the prediction time plus the prediction time limit.

[0102] 4、Read data. Use eccodes.codes_grib_new_from_file to read a message in a GRIB file, use eccodes.codes_get(handle_curf,'shortName') to get the shortName of the message, judge whether the read data is needed by the invention through the shortName, use pd.DataFrame to convert the data into DataFrame type for subsequent calculation. When drawing 1 / 3 / 6 / 12 / 24 hour accumulated precipitation, the precipitation data also needs to read the precipitation of the previous 1 / 3 / 6 / 12 / 24 hours of the current hour, and the total precipitation of the current time is subtracted from the total precipitation of the previous 1 / 3 / 6 / 12 / 24 hours. If there is no message with shortName, the meaning of the message can be judged through the combination of parameterCategory and parameterNumber two attributes. For example: parameterCategory==16 and parameterNumber==224 represents radar combined reflectivity.

[0103] 5、Calculate. The calculation includes calculating the ensemble average, the formula is as follows:

[0104]

[0105] Calculate the dispersion, the formula is as follows:

[0106]

[0107] Calculate the maximum / minimum value, the formula is as follows:

[0108] x max =maximum[x1,x2,......x m ]

[0109] x min =minimum[x1,x2,......x m ]

[0110] Calculate the quantile, the quantile in the invention is 90%; Calculate the probability, the formula is as follows:

[0111]

[0112] n is the number of members whose value is greater than or equal to (or less than or equal to) the threshold value, and m is the number of valid members. Calculate the 10-meter wind speed, we have the value of the 10-meter wind speed, which is the component of the 10-meter in the u and v directions, and the actual value of the 10-meter wind speed is obtained by the Pythagorean theorem from the two components, the formula is as follows:

[0113]

[0114] 6. Draw the base map. The base map is a provincial map of China and the South China Sea Islands region; the base map also includes a small map of the South China Sea Islands.

[0115] 7. Draw the graphics. When drawing graphics, it is necessary to first determine whether the data exists, especially when drawing the stamp map. Not only is it necessary to determine whether the data required for drawing the graphics exists, but it is also necessary to determine whether it is an edge graphic, which direction the edge graphic is in, and whether coordinates need to be drawn. The leftmost and lowermost graphics need to draw the vertical and horizontal coordinates, respectively.

[0116] Example 3

[0117] In the existing related regional ensemble forecast member drawing system, if a member is missing or the forecast validity data is missing, the stamp map drawing will be entirely incorrect, and all the data, whether correct or incorrect, will not be rendered. The present application can automatically handle the above situations when encountering missing members or incorrect forecast validity data, and only discard the missing member or missing validity and subsequent validity data, and the correct member data will be drawn out.

[0118] In the description of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more; the terms "upper", "lower", "left", "right", "inner", "outer", "front end", "rear end", "head", "tail" and the like indicate the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", "third" and the like are only for the purpose of description and cannot be understood as indicating or implying relative importance.

[0119] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented in whole or in part in the form of a computer program product, the computer program product comprises one or more computer instructions. When the computer program instructions are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through a wired (such as coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.)) way. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)) and the like.

[0120] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any modification, equivalent replacement and improvement within the technical range disclosed by the present application and within the spirit and principles of the present application should be covered within the protection scope of the present application.

Claims

1. A method of graphic product production, characterized by, The graphic product making method comprises the following steps: Step one, receiving parameter file; Step two, creating nc file; Step three, reading data; Step four, calculating; Step five, drawing base map; Step six, drawing graphic; Step seven, saving graphic; In step one, the parameter file is a txt text recording collection of forecast member time limit file name, the data is derived from China Meteorological Administration Numerical Weather Prediction Center, and there are 15 members without error, the member number is 0-14, each member has 85 hours of forecast time limit, and the forecast time limit is 000-084; After receiving the parameter file, the file name in the parameter txt file is sorted according to the member serial number and the forecast time limit, the missing member and the missing time limit are processed, the valid file name is screened out, including: Each file name is cut to obtain the member serial number and the forecast time limit; after sorting the member serial number and the forecast time limit, whether there is a time limit missing is checked in turn; if a member has a time limit missing, the forecast time limit after the missing time limit is discarded, and only the previous complete forecast time limit is retained; In step three, the reading data comprises: Using ecCodes package to read GRIB data file, ecCodes accesses the content in GRIB message through key / value, supports reading GRIB version 1 and version 2 data; when reading data, the number of valid members is judged, and whether the forecast data of each time limit has data error is judged, if there is data error, the data of the time limit is not used; if the number of valid members is less than 10 members, the forecast data of this time is discarded; wherein the read data is stored in DataFrame type; Wherein, the reading data further comprises: Using eccodes.codes_grib_new_from_file to read a message in GRIB file, using eccodes.codes_get(handle_curf,'shortName') to obtain the shortName of the message, judging whether the read data is through shortName, using pd.DataFrame to convert the data into DataFrame type; when drawing 1 / 3 / 6 / 12 / 24 hour cumulative precipitation, the precipitation data of the previous 1 / 3 / 6 / 12 / 24 hours of the current hour also needs to be read, and the total precipitation of the current time limit is subtracted from the total precipitation of the previous 1 / 3 / 6 / 12 / 24 hours; if there is a message without shortName, the meaning of the message is judged through the combination of parameterCategory and parameterNumber two attributes; In step six, the graphic drawing comprises: The member data is judged when the stamp figure is drawn, and it is judged whether a certain member exists in the nc, and only the figure of the existing member is drawn; when the stamp figure is drawn, it is not only judged whether the data required for drawing the figure exists, but also judged whether it is an edge figure, which edge figure of the direction, and whether the coordinates need to be drawn; the vertical coordinates and horizontal coordinates are respectively drawn for the leftmost and lowermost figures.

2. The graphic article production method according to claim 1, wherein In step two, the nc file is created, including: The nc file is created using netCDF4, and the nc file is used to store all the calculation results of the time effectiveness; the latitude of the nc file includes longitude, latitude and time; the size and range of the longitude and latitude are obtained from the original GRIB2 file; wherein xmin=70, xmax=145, ymin=15, ymax=65, lonSize=751, latSize=501, and the time is the forecast time plus the forecast time effectiveness.

3. The graphic article production method according to claim 1, wherein In step four, the calculation includes: The DataFrame type is calculated by the corresponding operation provided by pandas; when calculating, the number of effective members is taken as the total number m; after the calculation is completed, the calculation result is saved, and the calculation result is written into the nc file; before the base map is drawn, the parameter file is received, and the parameter file is the nc file; The calculation includes calculating the ensemble average, dispersion, maximum value, minimum value, probability and quantile number; The formula for calculating the ensemble average is as follows: The formula for calculating the dispersion is as follows: The formula for calculating the maximum / minimum value is as follows: x max = max[x1, x2,... x m ]; x min = minimum [x1, x2,... xn] ; where n is the number of elements in the array. m ] ; The quantile number is 90%; The formula for calculating the probability is as follows: Wherein, n is the number of members whose value is greater than or equal to or less than a threshold value, and m is the number of effective members; the 10-meter wind speed is calculated, which is the component of 10 meters in the u and v directions, and the actual value of the 10-meter wind speed is obtained by the Pythagorean theorem from the two components, and the formula is as follows:

4. The graphic article production method according to claim 1, wherein In step five, the base map is the China provincial map and the China South China Sea island area; the base map also includes a small map of the China South China Sea islands.

5. A graphic product manufacturing system applying the graphic product manufacturing method according to any one of claims 1 to 4, characterized by The graphic product production system includes: A parameter file receiving module for receiving a txt text recording the forecast member time effectiveness file name; A parameter file preprocessing module for performing preprocessing operations such as sorting and filtering on the parameter file; An nc file creation module for creating an nc file using netCDF4; A data reading module for reading a GRIB data file using the ecCodes package; A calculation module for calculating the ensemble average, dispersion, maximum value, minimum value, probability and quantile number respectively; A base map drawing module for drawing a China provincial map and a China South China Sea island area map; A figure drawing module for drawing figures and saving the figures in jpg format.

6. A computer device, comprising: The computer device includes a memory and a processor, and the memory stores a computer program, and the computer program is executed by the processor, so that the processor executes the steps of the graphic product production method according to any one of claims 1-4. The computer device includes a memory and a processor, and the memory stores a computer program, and the computer program is executed by the processor, so that the processor executes the steps of the graphic product production method according to any one of claims 1-4.

7. An information data processing terminal, characterized by The information data processing terminal is used to realize the graphic product making system as claimed in claim 5. The information data processing terminal is used to realize the graphic product making system as claimed in claim 5.

Citation Information

Patent Citations

  • Ensemble forecasting method and device

    CN107392349A

  • A visual analysis method for raster text precipitation data

    CN109902120A

  • Method and equipment for extracting aviation meteorological element values

    CN111679345A

  • System and method for extracting area coordination and searching, classing, regenerating for the weather data of extracting area

    KR1020140121538A