CN112597237A - B/S architecture-based weather typing visualization method and system, electronic device and medium - Google Patents
B/S architecture-based weather typing visualization method and system, electronic device and medium Download PDFInfo
- Publication number
- CN112597237A CN112597237A CN202011489430.6A CN202011489430A CN112597237A CN 112597237 A CN112597237 A CN 112597237A CN 202011489430 A CN202011489430 A CN 202011489430A CN 112597237 A CN112597237 A CN 112597237A
- Authority
- CN
- China
- Prior art keywords
- weather
- data
- different types
- typing
- sea level
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000007794 visualization technique Methods 0.000 title claims abstract description 14
- 238000012950 reanalysis Methods 0.000 claims abstract description 48
- 238000000034 method Methods 0.000 claims abstract description 35
- 230000000007 visual effect Effects 0.000 claims abstract description 25
- 238000010586 diagram Methods 0.000 claims abstract description 15
- 238000012800 visualization Methods 0.000 claims description 21
- 238000005516 engineering process Methods 0.000 claims description 10
- IYLGZMTXKJYONK-ACLXAEORSA-N (12s,15r)-15-hydroxy-11,16-dioxo-15,20-dihydrosenecionan-12-yl acetate Chemical compound O1C(=O)[C@](CC)(O)C[C@@H](C)[C@](C)(OC(C)=O)C(=O)OCC2=CCN3[C@H]2[C@H]1CC3 IYLGZMTXKJYONK-ACLXAEORSA-N 0.000 claims description 8
- IYLGZMTXKJYONK-UHFFFAOYSA-N ruwenine Natural products O1C(=O)C(CC)(O)CC(C)C(C)(OC(C)=O)C(=O)OCC2=CCN3C2C1CC3 IYLGZMTXKJYONK-UHFFFAOYSA-N 0.000 claims description 8
- 238000010606 normalization Methods 0.000 claims description 7
- 238000004422 calculation algorithm Methods 0.000 claims description 6
- 239000003086 colorant Substances 0.000 claims description 6
- 230000000694 effects Effects 0.000 abstract description 5
- 238000004364 calculation method Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 6
- 238000012216 screening Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/26—Visual data mining; Browsing structured data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2477—Temporal data queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
- G06F16/285—Clustering or classification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Probability & Statistics with Applications (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Remote Sensing (AREA)
- Instructional Devices (AREA)
Abstract
The application discloses a B/S architecture-based weather typing visualization method, a system, electronic equipment and a medium. The method comprises the steps of acquiring weather reanalysis data of a historical first time period, wherein the weather reanalysis data comprise average sea level air pressure, potential height and geographic area data; calculating the weather reanalysis data to obtain a plurality of corresponding weather situations of different types; and acquiring geographic coordinate data of a first geographic area, and generating a visual weather typing display map based on the geographic coordinate data of the first geographic area and the weather situations of different types. By applying the technical scheme of the application, the visual weather typing display diagram can be rapidly generated according to the selected time period and the size of the area. And can ensure that the display effect can be clearly displayed under screens with different resolutions.
Description
Technical Field
The present application relates to data processing technologies, and in particular, to a weather typing visualization method and system based on a B/S architecture, an electronic device, and a medium.
Background
Due to the rise of the communications era and society, the research on weather has been more and more emphasized by researchers. Further, generally, when a researcher needs to research the weather in a time period in a classified manner, a weather typing method based on numerical statistics is often used. The conventional operation is to download weather data in a required time period, such as global weather reanalysis data, etc., read data of weather elements to be researched in a specified spatial region, classify the data by using software or programs for numerical classification, and then draw a contour line on the data for analysis.
However, the manner of acquiring the weather situation by the center is cumbersome and consumes much time of the developer.
Disclosure of Invention
The embodiment of the application provides a weather typing visualization method, a system, electronic equipment and a medium based on a Browser/Server (B/S) architecture.
According to an aspect of an embodiment of the present application, a weather typing visualization method based on a B/S architecture is provided, which includes:
acquiring weather reanalysis data of a historical first time period, wherein the weather reanalysis data comprises average sea level air pressure, potential height and geographical area data;
calculating the weather reanalysis data to obtain a plurality of corresponding weather situations of different types;
and acquiring geographic coordinate data of a first geographic area, and generating a visual weather typing display map based on the geographic coordinate data of the first geographic area and the weather situations of different types.
Optionally, in another embodiment based on the above method of the present application, the calculating the weather reanalysis data to obtain a plurality of weather situations of different types includes:
calculating to obtain an average sea level air pressure mean value and a standard deviation according to the weather reanalysis data;
carrying out data normalization on the average sea level air pressure mean value and the standard deviation, and determining that the normalized data conforms to standard normal distribution;
and eliminating the horizontal pressure gradient of the normalized data by utilizing the potential height to obtain a plurality of corresponding weather conditions of different types.
Optionally, in another embodiment based on the above method of the present application, the following formula performs data normalization on the mean sea level barometric pressure mean and the standard deviation:
wherein Zi is the normalized data of the average sea level air pressure, Xi is the original average sea level air pressure mean value,is the mean of the mean sea level air pressure, and T is the standard deviation.
Optionally, in another embodiment based on the above method of the present application, the following formula results in a corresponding plurality of different types of weather conditions:
where Zki and Zbi are normalized mean sea level pressures for grid i at day k and day b, respectively, and N is the number of grids in the study area.
Optionally, in another embodiment based on the foregoing method of the present application, after obtaining a plurality of corresponding different types of weather situations, the method further includes:
and storing the lattice point data corresponding to the plurality of different types of weather situations, the geographic area data and the time list of the same type of weather as a first text file in a json format.
Optionally, in another embodiment based on the foregoing method of the present application, the acquiring geographic coordinate data of the first geographic area includes:
and determining the geographical area range selected at this time, and merging and storing the geographical area data and the geographical area range into a second text file in a json format.
Optionally, in another embodiment based on the above method of the present application, the generating a visual weather-typing presentation map based on the geographic coordinate data of the first geographic area and the plurality of different types of weather situations includes:
acquiring the first text file and the second text file;
when a visualization request is received, calculating the first text file by using a Marching squares algorithm based on the weather situation type corresponding to the visualization request to obtain an isoline profile;
and creating a canvas with the same proportion as the geographic area range by using canvas technology, drawing the isoline contour on the canvas and filling corresponding colors to generate the visual weather typing display diagram.
According to another aspect of the embodiments of the present application, there is provided a weather typing visualization system based on a B/S architecture, including:
an acquisition module configured to acquire weather reanalysis data of a historical first time period, the weather reanalysis data including mean sea level barometric pressure, potential altitude, and geographic area data;
the computing module is configured to compute the weather reanalysis data to obtain a plurality of corresponding weather situations of different types;
the generation module is configured to acquire geographic coordinate data of a first geographic area and generate a visual weather typing presentation graph based on the geographic coordinate data of the first geographic area and the plurality of different types of weather situations.
According to another aspect of the embodiments of the present application, there is provided an electronic device including:
a memory for storing executable instructions; and
a display for displaying with the memory to execute the executable instructions to complete the operation of any of the above-mentioned weather typing visualization methods based on the B/S architecture.
According to a further aspect of the embodiments of the present application, there is provided a computer-readable storage medium for storing computer-readable instructions, which when executed, perform the operations of any one of the above-mentioned weather typing visualization methods based on a B/S architecture.
According to the method, weather reanalysis data of a historical first time period can be acquired, wherein the weather reanalysis data comprises average sea level air pressure, potential height and geographic area data; calculating the weather reanalysis data to obtain a plurality of corresponding weather situations of different types; and acquiring geographic coordinate data of a first geographic area, and generating a visual weather typing display map based on the geographic coordinate data of the first geographic area and the weather situations of different types. By applying the technical scheme of the application, the visual weather typing display diagram can be rapidly generated according to the selected time period and the size of the area. And can ensure that the display effect can be clearly displayed under screens with different resolutions.
The technical solution of the present application is further described in detail by the accompanying drawings and examples.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
The present application may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a B/S architecture-based weather typing visualization proposed in the present application;
fig. 2 is a schematic flow chart of a visualization module proposed in the present application;
FIG. 3 is a schematic structural diagram of a B/S architecture-based weather typing visualization system according to the present application;
FIG. 4 is a schematic structural diagram of a weather typing visualization electronic device based on a B/S architecture according to the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In addition, technical solutions between the various embodiments of the present application may be combined with each other, but it must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should be considered to be absent and not within the protection scope of the present application.
It should be noted that all the directional indicators (such as upper, lower, left, right, front and rear … …) in the embodiment of the present application are only used to explain the relative position relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly.
A method for performing B/S architecture based weather typing visualization according to an exemplary embodiment of the present application is described below in conjunction with fig. 1. It should be noted that the following application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
The application also provides a B/S architecture-based weather typing visualization method, a system, a target terminal and a medium.
Fig. 1 schematically shows a flow chart of a B/S architecture-based weather typing visualization method according to an embodiment of the present application. As shown in fig. 1, the method includes:
s101, acquiring weather reanalysis data of a historical first time period, wherein the weather reanalysis data comprises average sea level air pressure, potential height and geographical area data.
And S102, calculating the weather reanalysis data to obtain a plurality of corresponding weather situations of different types.
In the application, the corresponding weather conditions of a plurality of different types can be obtained through the obtained average sea level air pressure, the obtained potential height and the obtained geographic area data. Specifically, the weather situation may be first classified using Kirchhofer's objective classification method, as follows:
normalizing the average sea level air pressure mean value, wherein the normalization equation 1 is as follows:
wherein Zi is the normalized data of the average sea level air pressure, Xi is the original average sea level air pressure mean value,is the mean of the mean sea level air pressure, and T is the standard deviation.
Every two days Kirchhofer score (S) was calculated, with equation 2:
where Zki and Zbi are normalized mean sea level pressures for grid i at day k and day b, respectively, and N is the number of grids in the study area.
Further, in the present application, the grid number (N) in the latitudinal direction is obtained from the potential height and the geographic area dataC) Number of grids in longitudinal direction (N)R) And the number of meshes (N) of the entire regionT) All calculated by the above formula, the obtained results are respectively: skbC,SkbRAnd SkbT. This process is intended to ensure that the patterns of the weather situation classification are similar throughout the area. I.e. if SkbC,SkbRAnd SkbTCompliance with its limiting criteria, i.e. the requirement for S to be satisfied simultaneouslykbTLess than 1.0NT,SkbCLess than 1.8NCAnd SkbRLess than 1.8NRThen the two days k and b are considered similar.
It will also be appreciated that if a day has the most similar days, that day is considered a representative day of the category, that representative day is removed from the analysis along with all similar days, and the remaining days are repeated as described above in equation 2, followed by a second representative day, and the second representative day and similar days are removed, and the remaining days are repeated.
In one approach, the present application may choose to designate representative days where, after the first n representative days are calculated, less than 0.05% of the total days remain without calculation of the next representative day.
For example, taking the number of days as an example of 7 days, it can be calculated that after the first 7 representative days, the remaining number of days is less than 0.05% of all the days, and the calculation of the next representative day is not performed, i.e. only the first 7 categories are selected. After 7 representative days were determined, all non-representative days were again subjected to S with 7 representative days, respectivelykbC,SkbRAnd SkbTThe calculation of (2) gives 7 groups of results, and comparing the 7 groups of results, S is obtained from a certain day (non-representative day) and a certain representative daykbThe smallest value is assigned to the classification of the representative day.
S103, acquiring geographic coordinate data of the first geographic area, and generating a visual weather typing display diagram based on the geographic coordinate data of the first geographic area and a plurality of different types of weather situations.
Furthermore, after the weather conditions are classified, coordinate data of each geographic area can be acquired, and the geographic areas and the corresponding weather conditions are drawn into a visual weather typing display diagram. For example, geographic data in shape format of a province or a city across the country may be read first. And according to the selected geographic area range, screening out the data which are overlapped with the selected area from the geographic data read out in the last step. And storing the geographical data and the geographical area which are screened out in the last step into a text file in a json format.
Furthermore, the method can calculate the contour line contour of the weather type of each situation by using a Marching squares algorithm according to the text file stored in the json format. And after the contour calculation is finished, canvas with the same proportion as the contour is created according to the geographical region range by using canvas technology, the contour is drawn, and corresponding colors are filled. After the contour line drawing and filling and the map data request are finished, drawing the map to the uppermost layer, and then converting the map into a picture for being displayed by a browser.
According to the method, weather reanalysis data of a historical first time period can be acquired, wherein the weather reanalysis data comprises average sea level air pressure, potential height and geographic area data; calculating the weather reanalysis data by utilizing the classification technology to obtain a plurality of corresponding weather situations of different types; and acquiring geographic coordinate data of a first geographic area, and generating a visual weather typing display map based on the geographic coordinate data of the first geographic area and the weather situations of different types. By applying the technical scheme of the application, the visual weather typing display diagram can be rapidly generated according to the selected time period and the size of the area. And can ensure that the display effect can be clearly displayed under screens with different resolutions.
Optionally, in a possible implementation manner of the present application, in S102 (using the classification technique to calculate the weather reanalysis data to obtain a plurality of weather situations of different types), the following steps may be implemented:
calculating to obtain an average sea level air pressure mean value and a standard deviation according to the weather reanalysis data;
carrying out data normalization on the average sea level air pressure mean value and the standard deviation, and determining that the normalized data accords with standard normal distribution;
and eliminating the horizontal pressure gradient of the normalized data by utilizing the potential height to obtain a plurality of corresponding weather conditions of different types.
Further, the present application may normalize the mean sea level barometric pressure mean and the standard deviation according to the following formula:
wherein Zi is the normalized data of the average sea level air pressure, Xi is the original average sea level air pressure mean value,is the mean of the mean sea level air pressure, and T is the standard deviation.
Further optionally, the present application may obtain a plurality of different types of weather conditions according to the following formula:
where Zki and Zbi are normalized mean sea level pressures for grid i at day k and day b, respectively, and N is the number of grids in the study area.
Further, the size of the area reflected by the grid is not specifically limited in the present application, and in one mode, a country may be regarded as a rectangle, for example, the longitude range of the country is 73 to 136 degrees, and the number of degrees is 63. The latitude ranges from 3 to 54 degrees, for a total of 51 degrees. The country can be seen as a 63 x 51 rectangle with the longitude divided into 63 equal parts by 1 degree on average and the latitude divided into 51 equal parts. Therefore, the rectangle can be regarded as 63 × 51 grids, and the size of the geographic area reflected by each grid can be specifically calculated.
Optionally, in a possible implementation manner of the present application, after S102 (using the classification technique, the weather reanalysis data is calculated to obtain a plurality of weather situations of different types), the following steps may be implemented:
and saving the lattice point data, the geographical area data and the time list of the same type of weather corresponding to a plurality of different types of weather situations as a first text file in a json format.
Optionally, in a possible implementation manner of the present application, after S102 (using the classification technique, the weather reanalysis data is calculated to obtain a plurality of weather situations of different types), the following steps may be implemented:
and determining the geographical area range selected at this time, and merging and storing the geographical area data and the geographical area range into a second text file in a json format.
Optionally, in a possible implementation manner of the present application, in S103 (generating a visual weather-typing presentation map based on the geographic coordinate data of the first geographic area and a plurality of different types of weather situations), the following steps may be implemented:
acquiring a first text file and a second text file;
when a visualization request is received, calculating a first text file and a second text file by using a Marching squares algorithm based on a weather situation type corresponding to the visualization request to obtain an isoline profile;
and creating a canvas with the same proportion as the geographic area range by using canvas technology, drawing an isoline contour on the canvas and filling corresponding colors to generate a visual weather typing display diagram.
Wherein, owing to can draw corresponding show picture according to the canvas of different proportions when receiving visual request in this application, consequently can reach and realize guaranteeing that can both show clear display effect under different resolution ratio screens the purpose.
Furthermore, the weather typing visualization method based on the B/S framework can be realized by utilizing four modules, and the method comprises a weather typing calculation module, a map data processing module, a background interface module and a visualization module. Wherein,
the weather typing calculation module comprises:
1) a data reading section: reading weather reanalysis data of any region of the world at one or more times of day in the selected time period.
2) And a data screening part: and screening the required data from the original data read in the last step according to the average sea level air pressure, the potential altitude and the geographical area data in the weather reanalysis data.
3) A typing calculation part: and classifying the data screened in the last step into various types by adopting a classification technology.
4) First result storage section: and storing the calculated weather typing result (lattice point data) and a time list of geographical areas and weather of the same type as a first text file in a json format.
Further, the map data processing module in the present application includes:
1) shape file reading part: reading the geographical data in shape format of province and city across the country.
2) The geographic area screening part: and according to the selected geographic area range, screening out data which are overlapped with the selected area from the geographic data read out in the last step.
3) A second result storage section: and storing the geographical data screened in the last step and the geographical area together as a second text file in a json format.
Further, the background interface module in the present application includes:
the weather typing data processing module is used for storing weather typing requests in a warehouse, triggering the execution of the weather typing calculation module and the map data processing module, and returning the weather typing data and the map data to the visualization module for drawing.
Further, as shown in fig. 2, the visualization module in the present application includes:
1) the typing data requesting part and the map data requesting part are performed simultaneously, and a first text file and a second text file are requested from the json format back end.
2) In the parting data request part, each parting sends a request, and after each request is finished, the contour line contour of the contour line is calculated by using a Marching squares algorithm.
3) After the contour calculation is finished, canvas which is in equal proportion to the contour is created according to the geographic region range by means of canvas technology, the contour is drawn, and corresponding colors are filled.
4) After contour line drawing and filling and map data request are finished, drawing the map to the uppermost layer, and then converting the map into pictures to be provided for the browser to display.
FIG. 3 schematically shows a B/S architecture based weather typing visualization system according to an embodiment of the present application. As shown in fig. 3, the system includes:
an acquisition module 201 configured to acquire weather reanalysis data of a historical first time period, the weather reanalysis data including average sea level barometric pressure, potential altitude, and geographic area data;
a calculation module 202 configured to calculate the weather reanalysis data to obtain a plurality of weather situations of different types;
a generating module 203 configured to obtain geographic coordinate data of a first geographic area and generate a visual weather typing presentation map based on the geographic coordinate data of the first geographic area and the plurality of different types of weather situations.
According to the method, weather reanalysis data of a historical first time period can be acquired, wherein the weather reanalysis data comprises average sea level air pressure, potential height and geographic area data; calculating the weather reanalysis data by utilizing the classification technology to obtain a plurality of corresponding weather situations of different types; and acquiring geographic coordinate data of a first geographic area, and generating a visual weather typing display map based on the geographic coordinate data of the first geographic area and the weather situations of different types. By applying the technical scheme of the application, the visual weather typing display diagram can be rapidly generated according to the selected time period and the size of the area. And can ensure that the display effect can be clearly displayed under screens with different resolutions.
In another embodiment of the present application, the calculation module 202 further includes:
a calculation module 202 configured to calculate an average sea level air pressure mean and a standard deviation according to the weather reanalysis data;
a calculating module 202, configured to perform data normalization on the average sea level air pressure mean and the standard deviation, and determine that the normalized data conforms to a standard normal distribution;
a computing module 202 configured to eliminate a horizontal pressure gradient of the normalized data using the potential height to obtain a corresponding plurality of different types of weather conditions.
In another embodiment of the present application, the data normalization of the mean sea level pressure mean and standard deviation is performed by the following formula:
wherein Zi is the normalized data of the average sea level air pressure, Xi is the original average sea level air pressure mean value,is the mean of the mean sea level air pressure, and T is the standard deviation.
In another embodiment of the present application, the following formula results in a corresponding plurality of different types of weather conditions:
where Zki and Zbi are normalized mean sea level pressures for grid i at day k and day b, respectively, and N is the number of grids in the study area.
In another embodiment of the present application, the generating module 203 further includes:
a generating module 203 configured to save the lattice point data corresponding to the plurality of different types of weather situations, the geographic area data, and the time list of the same type of weather as a first text file in a json format.
In another embodiment of the present application, the generating module 203 further includes:
the generating module 203 is configured to determine the currently selected geographic area range, and combine and store the geographic area data and the geographic area range as a second text file in a json format.
In another embodiment of the present application, the generating module 203 further includes:
a generating module 203 configured to obtain the first text file and the second text file;
the generating module 203 is configured to calculate the first text file by using a Marching squares algorithm based on a weather situation type corresponding to a visualization request to obtain an isoline profile when the visualization request is received;
a generating module 203 configured to create a canvas with the same proportion as the geographic area range by using canvas technology, draw the isoline contour on the canvas and fill corresponding colors, and generate the visual weather typing presentation graph.
Fig. 4 is a block diagram illustrating a logical structure of an electronic device in accordance with an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium, such as a memory, including instructions executable by an electronic device processor to perform the above method for B/S architecture based weather typing visualization, the method comprising: acquiring weather reanalysis data of a historical first time period, wherein the weather reanalysis data comprises average sea level air pressure, potential height and geographical area data; calculating the weather reanalysis data to obtain a plurality of corresponding weather situations of different types; and acquiring geographic coordinate data of a first geographic area, and generating a visual weather typing display map based on the geographic coordinate data of the first geographic area and the weather situations of different types. Optionally, the instructions may also be executable by a processor of the electronic device to perform other steps involved in the exemplary embodiments described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided an application/computer program product including one or more instructions executable by a processor of an electronic device to perform the above method for B/S architecture based weather typing visualization, the method comprising: acquiring weather reanalysis data of a historical first time period, wherein the weather reanalysis data comprises average sea level air pressure, potential height and geographical area data; calculating the weather reanalysis data to obtain a plurality of corresponding weather situations of different types; and acquiring geographic coordinate data of a first geographic area, and generating a visual weather typing display map based on the geographic coordinate data of the first geographic area and the weather situations of different types. Optionally, the instructions may also be executable by a processor of the electronic device to perform other steps involved in the exemplary embodiments described above.
Fig. 4 is an exemplary diagram of an electronic device 300. Those skilled in the art will appreciate that the schematic diagram 4 is merely an example of a computer device and is not intended to limit the computer device and may include more or fewer components than those shown, or some components may be combined, or different components, e.g., the computer device may also include input output devices, network access devices, buses, etc.
The Processor 301 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor 301 may be any conventional processor or the like, the processor 301 being the control center for the computer device 30 and connecting the various parts of the overall computer device 30 using various interfaces and lines.
The memory 302 may be used to store computer readable instructions and the processor 301 implements various functions of the computer device by executing or executing computer readable instructions or modules stored in the memory 302 and invoking data stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. In addition, the Memory 302 may include a hard disk, a Memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Memory Card (Flash Card), at least one disk storage device, a Flash Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), or other non-volatile/volatile storage devices.
The module integrated with the computer device may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by the present application, and computer readable instructions which can be implemented by hardware related to the computer readable instructions can be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the above-described method embodiments can be realized.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (10)
1. A weather typing visualization method based on a B/S framework is characterized by comprising the following steps:
acquiring weather reanalysis data of a historical first time period, wherein the weather reanalysis data comprises average sea level air pressure, potential height and geographical area data;
calculating the weather reanalysis data to obtain a plurality of corresponding weather situations of different types;
and acquiring geographic coordinate data of a first geographic area, and generating a visual weather typing display map based on the geographic coordinate data of the first geographic area and the weather situations of different types.
2. The method of claim 1, wherein said computing said weather reanalysis data into a corresponding plurality of different types of weather conditions comprises:
calculating to obtain an average sea level air pressure mean value and a standard deviation according to the weather reanalysis data;
and carrying out data normalization on the average sea level air pressure mean value and the standard deviation, and determining that the normalized data conforms to standard normal distribution.
3. The method of claim 2, wherein the following formula data normalizes the mean sea level barometric pressure mean and the standard deviation:
5. The method of claim 1, wherein after obtaining the corresponding plurality of different types of weather conditions, further comprising:
and storing the lattice point data corresponding to the plurality of different types of weather situations, the geographic area data and the time list of the same type of weather as a first text file in a json format.
6. The method of claim 5, wherein said obtaining geographic coordinate data for a first geographic region comprises:
and determining the geographical area range selected at this time, and merging and storing the geographical area data and the geographical area range into a second text file in a json format.
7. The method of claim 6, wherein generating a visual weather-typing presentation based on the geographic coordinate data for the first geographic area and the plurality of different types of weather situations comprises:
acquiring the first text file and the second text file;
when a visualization request is received, calculating the first text file by using a Marching squares algorithm based on the weather situation type corresponding to the visualization request to obtain an isoline profile;
and creating a canvas with the same proportion as the geographic area range by using canvas technology, drawing the isoline contour on the canvas and filling corresponding colors to generate the visual weather typing display diagram.
8. A B/S architecture based weather typing visualization system, comprising:
an acquisition module configured to acquire weather reanalysis data of a historical first time period, the weather reanalysis data including mean sea level barometric pressure, potential altitude, and geographic area data;
the computing module is configured to compute the weather reanalysis data to obtain a plurality of corresponding weather situations of different types;
the generation module is configured to acquire geographic coordinate data of a first geographic area and generate a visual weather typing presentation graph based on the geographic coordinate data of the first geographic area and the plurality of different types of weather situations.
9. An electronic device, comprising:
a memory for storing executable instructions; and the number of the first and second groups,
a processor for displaying with the memory to execute the executable instructions to perform the operations of the B/S architecture based weather typing visualization method of any one of claims 1-7.
10. A computer-readable storage medium storing computer-readable instructions, wherein the instructions, when executed, perform the operations of the B/S architecture based weather typing visualization method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011489430.6A CN112597237A (en) | 2020-12-16 | 2020-12-16 | B/S architecture-based weather typing visualization method and system, electronic device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011489430.6A CN112597237A (en) | 2020-12-16 | 2020-12-16 | B/S architecture-based weather typing visualization method and system, electronic device and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112597237A true CN112597237A (en) | 2021-04-02 |
Family
ID=75196828
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011489430.6A Pending CN112597237A (en) | 2020-12-16 | 2020-12-16 | B/S architecture-based weather typing visualization method and system, electronic device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112597237A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110286424A (en) * | 2019-04-15 | 2019-09-27 | 南京大学 | Objective weather classifying method based on numerical statistic |
CN110334255A (en) * | 2019-07-08 | 2019-10-15 | 北京航天宏图信息技术股份有限公司 | Weather situation display methods, device, electronic equipment and storage medium |
CN110750962A (en) * | 2019-10-14 | 2020-02-04 | 深圳旗鱼体育传播有限公司 | Weather data conversion method and system |
CN111612055A (en) * | 2020-05-15 | 2020-09-01 | 北京中科三清环境技术有限公司 | Weather situation typing method, air pollution condition prediction method and device |
-
2020
- 2020-12-16 CN CN202011489430.6A patent/CN112597237A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110286424A (en) * | 2019-04-15 | 2019-09-27 | 南京大学 | Objective weather classifying method based on numerical statistic |
CN110334255A (en) * | 2019-07-08 | 2019-10-15 | 北京航天宏图信息技术股份有限公司 | Weather situation display methods, device, electronic equipment and storage medium |
CN110750962A (en) * | 2019-10-14 | 2020-02-04 | 深圳旗鱼体育传播有限公司 | Weather data conversion method and system |
CN111612055A (en) * | 2020-05-15 | 2020-09-01 | 北京中科三清环境技术有限公司 | Weather situation typing method, air pollution condition prediction method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109064549B (en) | Method for generating mark point detection model and method for detecting mark point | |
CN112396640A (en) | Image registration method and device, electronic equipment and storage medium | |
US20230401691A1 (en) | Image defect detection method, electronic device and readable storage medium | |
US11144717B2 (en) | Automatic generation of document layouts | |
CN111914046B (en) | Generation method and device of target seating chart and computer equipment | |
CN110288520A (en) | Image beautification method, device and electronic equipment | |
CN115482522A (en) | Method, device and equipment for identifying corner characteristics of aircraft structural part and storage medium | |
CN113658292A (en) | Method, device and equipment for generating meteorological data color spot pattern and storage medium | |
CN114238541A (en) | Sensitive target information acquisition method and device and computer equipment | |
CN117349467A (en) | Multi-scale dynamic service method, device and storage medium for remote sensing image map | |
WO2021139178A1 (en) | Image synthesis method and related device | |
US10460427B2 (en) | Converting imagery and charts to polar projection | |
CN116912791A (en) | Target detection method, device, computer equipment and storage medium | |
US20230401670A1 (en) | Multi-scale autoencoder generation method, electronic device and readable storage medium | |
CN111951316A (en) | Image quantization method and storage medium | |
CN112597237A (en) | B/S architecture-based weather typing visualization method and system, electronic device and medium | |
US20230065027A1 (en) | Gpu-based digital map tile generation method and system | |
CN112381773B (en) | Key cross section data analysis method, device, equipment and storage medium | |
US10460420B2 (en) | Converting spatial features to map projection | |
CN115830073A (en) | Map element reconstruction method, map element reconstruction device, computer equipment and storage medium | |
CN113255700B (en) | Image feature map processing method and device, storage medium and terminal | |
CN116543425A (en) | Palm detection method and device based on YOLOv4, computer equipment and storage medium | |
CN114490753A (en) | Method, device, electronic equipment and medium for displaying map information | |
CN116242736A (en) | Method and device for determining water vapor density, computer equipment and storage medium | |
US20240112437A1 (en) | Estimation apparatus, model generation apparatus, and estimation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210402 |
|
RJ01 | Rejection of invention patent application after publication |