CN107577486A - Weather information drawing processing method, device, computer equipment and storage medium - Google Patents
Weather information drawing processing method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN107577486A CN107577486A CN201710911028.4A CN201710911028A CN107577486A CN 107577486 A CN107577486 A CN 107577486A CN 201710911028 A CN201710911028 A CN 201710911028A CN 107577486 A CN107577486 A CN 107577486A
- Authority
- CN
- China
- Prior art keywords
- weather information
- meteorological
- file
- destination
- file destination
- 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.)
- Granted
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention relates to a kind of weather information drawing processing method, device, computer equipment and storage medium, methods described includes:Destination path is obtained, the destination path is monitored;When listen to file destination be present under the destination path when, triggering drawing script operation, have recorded weather information in the file destination;The file destination is parsed by the drawing script, obtains draw required diagram parameter and meteorological numerical value;Drawn according to the diagram parameter and meteorological numerical value, obtain corresponding visualization meteorological chart.The operating efficiency of weather information drawing can be improved using this method.
Description
Technical field
The application is related to field of computer technology, more particularly to a kind of weather information drawing processing method, device, calculating
Machine equipment and storage medium.
Background technology
Weather information contributes to people to understand weather condition, climate change and carries out disaster alarm deployment etc..By can
People can be allowed directly to understand weather information depending on changing meteorological chart.For example, it can be shown by drawing color spot figure or value line chart
Precipitation in a certain regional 24 hours etc..In traditional mode, drawing the visual image of weather information needs to run phase
The script file answered is realized.All need to write a script file manually before drawing each time, even if same type of visualization
Figure, if diagram parameter changes, it is also desirable to write script file again.The time-consuming expense of substantial amounts of script file is write manually
Power, cause the operating efficiency of weather information drawing processing relatively low.
The content of the invention
Based on this, it is necessary to for above technical problem, there is provided a kind of meteorological letter that can improve weather information drawing efficiency
Cease processing method, device, computer equipment and storage medium.
A kind of weather information drawing processing method, including:
Destination path is obtained, the destination path is monitored;
When listen to file destination be present under the destination path when, triggering drawing script operation, in the file destination
It has recorded weather information;
The file destination is parsed by the drawing script, obtains draw required diagram parameter and meteorological number
Value;
Drawn according to the diagram parameter and meteorological numerical value, obtain corresponding visualization meteorological chart.
In one of the embodiments, the configuration parameter includes diagram parameter, in the acquisition destination path, to described
Before the step of destination path is monitored, in addition to:
Original weather information is obtained, the original weather information is changed, the weather information after being changed;
The configuration file previously generated is obtained, includes configuration parameter in the configuration file;
Utilize the weather information after the conversion and configuration parameter generation file destination.
In one of the embodiments, in addition to:The multiple keywords pre-set are obtained, are generated using the keyword
SQL statement;
Corresponding original meteorological data is read by the SQL statement respectively in multiple source datas storehouse;
The original meteorological data read is write into target database.
In one of the embodiments, drawn, obtained correspondingly according to the diagram parameter and meteorological numerical value described
Visualization meteorological chart the step of after, including:
Obtain the suffix of preset format corresponding to the filename of the file destination;
The suffix of the preset format is modified, obtains amended file destination so that the amended mesh
Mark file no longer triggers the operation of drawing script.
In one of the embodiments, drawn, obtained correspondingly according to the diagram parameter and meteorological numerical value described
Visualization meteorological chart the step of after, in addition to:
Obtain several visualization meteorological charts corresponding to weather information;
Utilize the meteorological Dynamic Graph of visualization corresponding to several described visualization meteorological chart generations.
A kind of weather information graphics processing device, described device include:
Module is monitored, for obtaining destination path, the destination path is monitored;When listening to the destination path
Under when file destination be present, triggering drawing script operation, have recorded weather information in the file destination;
Graphics module, for being parsed by the drawing script to the file destination, obtain required paint of drawing
Graph parameter and meteorological numerical value;Drawn according to the diagram parameter and meteorological numerical value, obtain corresponding visualization meteorological chart.
In one of the embodiments, described device also includes:
Modular converter is obtained, for obtaining original weather information, the original weather information is changed, after obtaining conversion
Weather information;
File destination generation module, for obtaining the configuration file previously generated, include configuration in the configuration file
Parameter;Utilize the weather information after the conversion and diagram parameter generation file destination.
In one of the embodiments, described device also includes:
Synchronization module, for obtaining the multiple keywords pre-set, SQL statement is generated using the keyword;Pass through
The SQL statement reads corresponding original meteorological data respectively in multiple source datas storehouse;The original meteorological data that will be read
Write target database.
A kind of computer equipment, the computer equipment include memory and are stored on the memory and can be described
The computer program run on processor, realize what is provided in the above embodiment of the present invention during the computing device described program
The step of weather information drawing processing method.
A kind of computer-readable recording medium, is stored thereon with computer program, and the program is realized when being executed by processor
The step of weather information drawing processing method provided in the above embodiment of the present invention.
Above-mentioned weather information processing method, apparatus, computer equipment and readable storage medium storing program for executing, by monitoring script monitor mesh
Path is marked, the file destination of predetermined format is found, corresponding diagram parameter is parsed using a general drawing script, and
Meteorological chart is visualized with reference to corresponding to weather information draws out weather information.Due to being painted without all being write again before drawing every time
Figure script, solve the problems, such as that writing substantial amounts of script file manually wastes time and energy, improve weather information drawing efficiency.
Brief description of the drawings
Fig. 1 is the schematic flow sheet that weather information handles method in one embodiment;
Fig. 2 is the schematic diagram of file destination in one embodiment;
Fig. 3 is the color spot figure of temperature in one embodiment;
Fig. 4 is the isogram of precipitation in one embodiment;
Fig. 5 is the structural representation that weather information handles square law device in one embodiment;
Fig. 6 is the structural representation of one embodiment Computer equipment.
Embodiment
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope that this specification is recorded all is considered to be.
In one embodiment, as shown in Figure 1, there is provided a kind of weather information drawing processing method.It should be understood that
Although each step in Fig. 1 flow chart shows that these steps are not necessarily inevitable according to the instruction of arrow successively
The order indicated according to arrow performs successively.Moreover, at least a portion step in Fig. 1 can include more sub-steps or more
Individual stage, these sub-steps or stage are not necessarily to perform completion in synchronization, but can be held different at the time of
OK, its execution sequence is also not necessarily is carried out successively, but can be with other steps either sub-step of other steps or rank
At least a portion of section performs in turn or alternately.It is applied to illustrate exemplified by terminal in this way, this method is specifically wrapped
Include:
Step S102, destination path is obtained, the destination path is monitored.
Destination folder is preset in terminal, path can be considered as destination path corresponding to destination folder.Destination path
Under can have one or more files.Wherein, the file under destination path includes file destination.Gas is have recorded in file destination
Image information, available for meteorological plotting.File destination can use preset format record weather information and configuration parameter.File destination
Filename can also have default suffix.Monitoring script is run in file destination terminal, it can be shell to monitor script
Script.Destination path is monitored by monitoring script.Specifically, terminal can be referred to target by monitoring script monitor
File under path is traveled through, and is inquired about and be whether there is the file with default suffix under destination path.Inquire with pre-
Determine the file of suffix, then it represents that the file destination needed for meteorological plotting under destination path be present.
File destination can use preset format recording drawing parameter and meteorological numerical value, between diagram parameter and meteorological numerical value
It can be separated by specific symbol.Specific symbol can be@, #, &, % etc. or any between them
Combination.Diagram parameter portion includes configuration parameter and meteorologic parameter, can also be separated by specific symbol between them.
Preset format in file destination can be form as shown in Figure 2.It is as specific in the present embodiment using #
Symbol is dividing, is separated in figure between diagram parameter and meteorologic parameter using 3 continuous #, meteorology ginseng
It is also what 3 continuous # were separated between number and meteorological data.File destination includes diagram parameter and meteorological numerical value.Configuration
Parameter includes covering, the map that is added to, Grid data, the size for drawing color spot figure and visualized graphs, frame distance, storage
Path etc..Meteorologic parameter preserves including the lattice point number between minimum longitude, maximum longitude, minimum longitude and maximum longitude, file
Path and the item types of measurement, such as temperature, humidity, sunshine and precipitation etc..Predetermined format can also be according to drawing need
Ask and make corresponding change, position and the parameter species of parameter can be adjusted according to drawing requirements.So can be with more flexible
Adaptation drawing requirements, be visualized graphs drawing increase great convenience.
Step S104, when listen to file destination be present under the destination path when, triggering drawing script operation, the mesh
Weather information is have recorded in mark file.
Step S106, the file destination is parsed by the drawing script, obtain the configuration ginseng for drawing required
Number and meteorological numerical value.
Step S108, drawn according to the configuration parameter and meteorological numerical value, obtain corresponding visualization meteorological chart.
Drawing script is that (NCAR Command Language, one kind is exclusively for science data processing and number using NCL
According to the high-level language of the visual design) script file write of language.Script monitor is monitored to target text under destination path being present
During part, that is, during traversal when inquiring file destination, filename corresponding to file destination is obtained, by file destination
Filename is run with drawing script, triggering drawing script is transferred to.Drawing script is according to destination path and the file of file destination
Name obtains file destination, loaded targets file.Drawing script parses to file destination, obtains required configuration parameter of drawing
With meteorological numerical value, drawing script further according to parameter is put and meteorological numerical value is drawn, obtain corresponding to visualization meteorological chart, complete
Mapping operation.
In traditional meteorological plotting mode, weather information is required for writing drawing script, according to different drawing requirements
Write different drawing scripts.Drawing script will be write again before drawing every time, even if to being carried out with a file destination
Different mapping operations is also required to write drawing script again.
And in the present embodiment, because file destination according to preset format have recorded weather information, for different target texts
Part, terminal can use same drawing script to draw different visualization meteorological charts.Different file destinations can pass through
General drawing script realizes mapping operation.When multiple file destinations in destination path be present, drawing script can be passed through
Each file destination is parsed respectively, obtains visualizing meteorological chart accordingly.For example, exist under destination path with default suffix name
Two file destinations, filename is respectively the first file and the second file.
For example, it is desired to when drawing In Hangzhou Region of Zhe Jiang Province September 6 days 20 using the first file during the color spot figure of temperature, terminal utilizes
All Files under shell scripts traversal destination path, inquiry have default suffix .txt file, now default suffix lattice
Formula is .txt.When shell scripts inquire the first file, triggering drawing script operation, terminal loads first by drawing script
File, the first file is parsed, obtain draw required configuration parameter and meteorological numerical value.Drawing script utilizes configuration parameter
And meteorological numerical value carries out mapping operation, the color spot figure of temperature during In Hangzhou Region of Zhe Jiang Province September 6 days 20 is obtained, as shown in Figure 3.
For example, it is desired to draw the isogram of daily precipitation in Nei Mou counties of Yunnan Province July 3 using the second file, terminal utilizes
All Files under shell scripts traversal destination path, inquiry have the file of default .txt suffix, now default suffix lattice
Formula is .txt.When shell scripts inquire the second file, triggering drawing script operation, terminal loads second by drawing script
File, the second file is parsed, obtain draw required configuration parameter and meteorological numerical value.Drawing script utilizes configuration parameter
And meteorological numerical value carries out mapping operation, the isogram of daily precipitation in Nei Mou counties of Yunnan Province July 3 is obtained.
As can be seen here, when drawing visualization meteorological chart using this method, a general drawing script is only needed, you can complete
The drafting of different types of visualization meteorological chart, the service efficiency of drawing script are very high, it is not necessary to which drawing script is write in repetition.
In the present embodiment, when listen to file destination be present under destination path when, triggering drawing script operation, pass through drawing
Script is parsed to file destination, obtains draw required configuration parameter and meteorological numerical value, and configuration is utilized by drawing script
Parameter and meteorological numerical value are drawn, and corresponding with weather information meteorological chart is visualized thus, it is possible to draw out.Because meteorology is painted
Configuration parameter and meteorological records of values needed for figure, can be to multiple by a general drawing script in file destination
File destination carry out meteorological plotting, therefore solve the problems, such as that writing substantial amounts of script file manually wastes time and energy, and carries
High weather information is drawn the operating efficiency of processing.
In one embodiment, before the acquisition destination path, the target monitored the destination path, also
Including:Original weather information is obtained, the original weather information is changed, the weather information after being changed;Obtain pre-
The configuration file first generated, include diagram parameter in the configuration file;Using the weather information after the conversion with it is described
Diagram parameter generates file destination.
In the present embodiment, configuration file is that drawing personnel write in advance, and configuration file contains related configuration of drawing
Parameter.Original weather information can be station data or Grid data.Original weather information can come from source data
Storehouse, it can be from local target database.Wherein, source database is the number that each meteorological detection website is used for data storage
According to storehouse, the local database of local data is stored when target database refers to draw.When original meteorological data is Grid data
When, then need not carry out interpolation processing, drawing script can directly corresponding file destination carry out mapping operation, obtain accordingly may be used
Depending on changing meteorological chart.
When original meteorological data is station data, meteorological data that initial data weather station directly measures, it is impossible to be used for
, it is necessary to carry out interpolation processing to station data, interpolation parameter of the interpolation processing in configuration parameter is carried out Drawing Directly.Terminal
Interpolation processing is carried out to station data, interpolation method includes closest interpolation, bilinear interpolation, bicubic interpolation etc..At interpolation
During reason, using preferable correlation between the attribute such as temperature, rainfall of the website of interpolation, pass through the variance analysis of a variety of differences
Compare, and then cause station data to be converted to the Grid data that can directly carry out mapping operation after interpolation.
In the present embodiment, original weather information, which is changed, also includes the gas that one-dimensional meteorological data is converted into two dimension
Image data is stored.One-dimensional meteorological data can be the station data for needing interpolation to be just converted into Grid data, also may be used
To be the one-dimensional form of expression of Grid data.Following table gives showing for the meteorological data that one-dimensional meteorological data is converted into two dimension
Example.
One-dimensional meteorological data example is as follows:
Longitude | 113.0 | 113.5 | 113.0 | 113.5 |
Latitude | 25.0 | 25.0 | 25.5 | 25.5 |
Rainfall value | 2.3 millimeter | 5.1 millimeter | 4.2 millimeter | 2.9 millimeter |
The two-dimentional meteorological data example obtained after conversion is as follows:
113.0 | 113.5 | |
25.0 | 2.3 millimeter | 5.1 millimeter |
25.5 | 4.2 millimeter | 2.9 millimeter |
Terminal gets original weather information, and original weather information is changed, after the weather information after being changed,
Need, first to extract the meteorological data in weather information and meteorologic parameter respectively due to drawing.Equally, terminal is got
After the configuration file previously generated, it is also desirable to by configuration parameter from extracting in configuration file.Meteorologic parameter and configuration are joined
Array is into diagram parameter.Then file destination is generated according to predetermined form using the weather information after conversion and diagram parameter.
In traditional mode, file destination all needs drawing personnel to be manually entered, and drawing script is also to need to draw
What personnel write manually.But writing script and drawing needs drawing personnel to be familiar with NCL language, and drawing script can be quickly write,
This has higher requirement to drawing personnel's, has very big limitation to the drafting for visualizing meteorological chart.And in the present embodiment, conversion
Initial data and generation file destination operation are all terminals to complete, drawing script be also write in advance can be with general
's.Drawing personnel only need to be performed writing for configuration parameter in configuration file, not it should be understood that NCL language, by using
How UNIVERSAL DRAWING script user writes drawing script without study, it is not required that grasps the drawing skill of specialty, you can complete
It is very convenient into the drafting of visualized graphs, drawing flow very simple, operation.One drawing script can completes original gas
The conversion and drawing of image information, by the drawing script write in advance, the difficulty of drawing is reduced, reduces Plot Work amount,
Save the time.
In one embodiment, the multiple keywords pre-set are obtained, SQL statement is generated using the keyword;It is logical
Cross the SQL statement and corresponding original meteorological data is read in one or more source databases;The original meteorology that will be read
Data write target database.
In the present embodiment, keyword refers to key word relevant with drawing, to be proposed from the drawing requirements of user
Language.Keyword can be that drawing personnel are manually entered or terminal has configured in advance.It is crucial that keyword includes position
Word, time-critical word, other keywords.For example, position keyword can be Yunnan, Kunming, Nanshan District of Shenzhen City, position keyword
Can also be latitude and longitude information, time-critical word can be September 1 in 2017,12 points, and other keywords, for example, warm
Degree, rainfall, air pressure, relative humidity, wind and sunshine etc..
Source database can be one or more.Source database and target database can be deployed in same clothes respectively
Business device, can also be on a different server.Source database may each be relevant database, such as Sql with target database
Server databases, oracle database or MySql databases or non-relational database etc..
Terminal obtains the keyword pre-set, corresponding SQL statement is generated according to keyword, using SQL statement more
Corresponding original meteorological data is read in individual source database respectively, by the original meteorological data related to keyword respectively from source number
Target database is write according to being extracted in storehouse, and by original meteorological data.It is possible thereby to according to drawing requirements by multiple source numbers
It is synchronized in local target database according to the original weather information in storehouse, is provided conveniently to gather weather information in drawing.
In one embodiment, drawn according to configuration parameter and meteorological numerical value, obtain corresponding visualized graphs
The step of after, in addition to:Obtain the suffix of preset format corresponding to the filename of the file destination;By the preset format
Suffix modify, obtain amended file destination so that the amended file destination no longer triggers drawing script
Operation.
In the present embodiment, the suffix of preset format can be it is various, such as preset format suffix can be .txt,
The type such as .word.After the suffix of preset format is modified, amended file destination will no longer be monitored script and detect,
Script is monitored when monitoring destination path, will not be in and inquire amended file destination.Certain terminal can also give target
File addition identifies, as long as the file destination after addition mark is different from file destination so that the target after addition mark is literary
Part will no longer be monitored script and inquire.Method by changing file suffixes name or being identified to file destination addition,
Inquired so that file destination will no longer be monitored script, can so improve monitor script operating efficiency and monitoring it is accurate
Property, prevent that same file destination is carried out to repeat drawing.
In one embodiment, drawn according to configuration parameter and meteorological numerical value, obtain corresponding visualized graphs
The step of after, in addition to:Obtain several visualized graphs corresponding to weather information;Generated using several described visualized graphs
The corresponding meteorological Dynamic Graph of visualization.
In traditional mode, needed to write multiple different drawing scripts, drawing pin every time according to the difference of drawing requirements
Originally be essentially all to be write using dynamic drawing template, be employed to every time drawing template again write drawing pin
This.
In the present embodiment, terminal can be run repeatedly by a general drawing script, draw several visualization gas
As figure.Complete to draw according to configuration parameter and meteorological numerical value, after obtaining corresponding visualization figure, terminal can also be according to user
Drawing requirements multiple figures for having completed to draw will be synthesized, generate dynamic meteorological Dynamic Graph to be shown.
For example, this ground can be generated by the way that multiple color spot figures of different time points within one day, a certain local temperature are synthesized
The dynamic color spot figure of temperature variations within Qu Yitian.Further, more visualized graphs can also be entered as needed
Row synthesis, or Dynamic Graph is synthesized, obtain the weather information presented with visual form.Not only solve by this method
Write the problem of substantial amounts of script file is wasted time and energy manually, improve weather information and draw the operating efficiency of processing, may be used also
So that more intuitively the situation of change of weather information to be reflected.
Implementation of each embodiment only just for corresponding steps in illustrating is set forth above, Ran Hou
In the case that logic does not contradict, above-mentioned each embodiment be can be mutually combined and form new technical scheme, and be somebody's turn to do
New technical scheme is still in the open scope of present embodiment.
In one embodiment, as shown in Figure 5, there is provided a kind of weather information graphics processing device, described device, bag
Include:Module 502 and graphics module 504 are monitored, wherein:
Module 502 is monitored, for obtaining destination path, the destination path is monitored;When listening to the target
When file destination be present under path, triggering drawing script is run, and weather information is have recorded in the file destination.
Graphics module 504, for parsing the file destination by the drawing script, obtain drawing required
Configuration parameter and meteorological numerical value;Drawn according to the configuration parameter and meteorological numerical value, obtain corresponding visualization meteorological chart.
In one embodiment, the device also includes:Modular converter and file destination generation module, wherein:
Modular converter, for obtaining original weather information, the original weather information is changed, after being changed
Weather information;
File destination generation module, for obtaining the configuration parameter previously generated, include drawing in the configuration parameter
Parameter;Utilize the weather information after the conversion and diagram parameter generation file destination.
In one embodiment, the device also includes:Synchronization module, for obtaining the multiple keywords pre-set, profit
SQL statement is generated with the keyword;Corresponding original meteorology is read by the SQL statement respectively in multiple source datas storehouse
Data;The original meteorological data read is write into target database.
In one embodiment, the device also includes:Modified logo module, for obtaining the filename of the file destination
The suffix of corresponding preset format;The suffix of the preset format is modified, obtains amended file destination so that institute
State amended file destination and no longer trigger the operation of drawing script.
In one embodiment, the device also includes:Dynamic Graph generation module, for obtaining corresponding to weather information several
Visualize meteorological chart;Utilize the meteorological Dynamic Graph of visualization corresponding to several described visualization meteorological chart generations.
In one embodiment, there is provided a kind of computer equipment, the computer equipment include memory and be stored in
On memory and the computer program that can run on a processor, the computing device following steps:Destination path is obtained, it is right
The destination path is monitored;When listen to file destination be present under the destination path when, triggering drawing script operation, institute
State and weather information is have recorded in file destination;The file destination is parsed by the drawing script, obtains drawing institute
The diagram parameter and meteorological numerical value needed;Drawn according to the diagram parameter and meteorological numerical value, obtain corresponding visualization gas
As figure.
In one embodiment, the processor also executes the following steps:Original weather information is obtained, to the original gas
Image information is changed, the weather information after being changed;The configuration file previously generated is obtained, the configuration file includes
Configuration parameter;Utilize the weather information after the conversion and configuration parameter generation file destination.
In one embodiment, the processor also executes the following steps:The multiple keywords pre-set are obtained, are utilized
The keyword generates SQL statement;Corresponding original meteorological number is read by the SQL statement respectively in multiple source datas storehouse
According to;The original meteorological data read is write into target database.
In one embodiment, the processor also executes the following steps:The filename for obtaining the file destination is corresponding
Preset format suffix;The suffix of the preset format is modified, obtains amended file destination so that described to repair
File destination after changing no longer triggers the operation of drawing script.
In one embodiment, the processor also executes the following steps:Obtain several visualizations corresponding to weather information
Meteorological chart;Utilize the meteorological Dynamic Graph of visualization corresponding to several described visualization meteorological chart generations.
In one embodiment it is proposed that a kind of computer-readable recording medium, is stored thereon with computer program, the journey
Following steps are realized when sequence is executed by processor:Destination path is obtained, the destination path is monitored;It is described when listening to
When file destination be present under destination path, triggering drawing script is run, and weather information is have recorded in the file destination;Pass through institute
State drawing script to parse the file destination, obtain draw required diagram parameter and meteorological numerical value;Painted according to described
Graph parameter and meteorological numerical value are drawn, and obtain corresponding visualization meteorological chart.
In one embodiment, following steps are realized when the program is executed by processor:Original weather information is obtained, to institute
State original weather information to be changed, the weather information after being changed;Obtain the configuration file previously generated, the configuration text
Include configuration parameter in part;Utilize the weather information after the conversion and configuration parameter generation file destination.
In one embodiment, following steps are realized when the program is executed by processor:Obtain the multiple passes pre-set
Keyword, SQL statement is generated using the keyword;Read respectively accordingly in multiple source datas storehouse by the SQL statement
Original meteorological data;The original meteorological data read is write into target database.
Following steps are realized when the program is executed by processor in one embodiment:Obtain the file of the file destination
The suffix of preset format corresponding to name;The suffix of the preset format is modified, obtains amended file destination so that
The amended file destination no longer triggers the operation of drawing script.
In one embodiment, following steps are realized when the program is executed by processor:Obtain more corresponding to weather information
Width visualizes meteorological chart;Utilize the meteorological Dynamic Graph of visualization corresponding to several described visualization meteorological chart generations.
In one embodiment, there is provided a kind of computer equipment, as shown in fig. 6, the computer equipment is including passing through
Processor, non-volatile memory medium, built-in storage, network interface, display screen and the input unit of bus of uniting connection.Wherein,
The processor of computer equipment is used to provide calculating and control ability.The memory of the computer equipment includes non-volatile memories
Medium, built-in storage.The non-volatile memory medium of the computer equipment is stored with operating system and computer program, the calculating
The built-in storage of machine equipment provides environment for the operating system in non-volatile memory medium and the operation of computer program.The meter
To realize a kind of weather information drawing processing method when calculation machine program is executed by processor.The network interface of the terminal be used for it is outer
The network interface in portion is communicated.The display screen of terminal can be touch-screen etc., and input unit can be covered on display screen
Touch layer, it can also be the button set in terminal enclosure, trace ball, Trackpad, external keyboard, Trackpad or mouse etc..
The computer equipment can be computer, mobile phone, tablet personal computer etc., and the computer equipment not only includes terminal, in addition to service
Device.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, lance is not present in the combination of these technical characteristics
Shield, all it is considered to be the scope of this specification record.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of weather information drawing processing method, methods described include:
Destination path is obtained, the destination path is monitored;
When listen to file destination be present under the destination path when, triggering drawing script operation, record in the file destination
Weather information;
The file destination is parsed by the drawing script, obtains draw required diagram parameter and meteorological numerical value;
Drawn according to the diagram parameter and meteorological numerical value, obtain corresponding visualization meteorological chart.
2. according to the method for claim 1, it is characterised in that the diagram parameter includes configuration parameter, in the acquisition
Destination path, before the step of monitoring the destination path, in addition to:
Original weather information is obtained, the original weather information is changed, the weather information after being changed;
The configuration file previously generated is obtained, includes configuration parameter in the configuration file;
Utilize the weather information after the conversion and configuration parameter generation file destination.
3. according to the method for claim 1, it is characterised in that methods described also includes:
The multiple keywords pre-set are obtained, SQL statement is generated using the keyword;
Corresponding original meteorological data is read by the SQL statement respectively in multiple source datas storehouse;
The original meteorological data read is write into target database.
4. according to the method for claim 1, it is characterised in that carried out described according to the diagram parameter and meteorological numerical value
Draw, after obtaining corresponding the step of visualizing meteorological chart, in addition to:
Obtain the suffix of preset format corresponding to the filename of the file destination;
The suffix of the preset format is modified, obtains amended file destination so that the amended target text
Part no longer triggers the operation of drawing script.
5. according to the method for claim 1, it is characterised in that carried out described according to the diagram parameter and meteorological numerical value
Draw, after obtaining corresponding the step of visualizing meteorological chart, in addition to:
Obtain several visualization meteorological charts corresponding to weather information;
Utilize the meteorological Dynamic Graph of visualization corresponding to several described visualization meteorological chart generations.
6. a kind of weather information graphics processing device, it is characterised in that described device includes:
Module is monitored, for obtaining destination path, the destination path is monitored;Deposited when listening under the destination path
In file destination, triggering drawing script is run, and weather information is have recorded in the file destination;
Graphics module, for being parsed by the drawing script to the file destination, obtain the drawing ginseng for drawing required
Number and meteorological numerical value;Drawn according to the diagram parameter and meteorological numerical value, obtain corresponding visualization meteorological chart.
7. weather information graphics processing device according to claim 6, it is characterised in that described device also includes:
Modular converter, for obtaining original weather information, the original weather information is changed, the meteorology after being changed
Information;
File destination generation module, for obtaining the configuration file previously generated, include configuration parameter in the configuration file;
Utilize the weather information after the conversion and diagram parameter generation file destination.
8. weather information graphics processing device according to claim 6, it is characterised in that described device also includes:
Synchronization module, for obtaining the multiple keywords pre-set, SQL statement is generated using the keyword;By described
SQL statement reads corresponding original meteorological data respectively in multiple source datas storehouse;The original meteorological data read is write
Target database.
9. a kind of computer equipment, the computer equipment includes memory and is stored on the memory and can be at the place
The computer program run on reason device, it is characterised in that realized described in the computing device during computer program such as power 1 to 5
The step of weather information drawing processing method described in any one.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor
The step of weather information drawing processing method as described in 1 to 5 any one of power is realized during execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710911028.4A CN107577486B (en) | 2017-09-29 | 2017-09-29 | Weather information drawing processing method, weather information drawing processing device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710911028.4A CN107577486B (en) | 2017-09-29 | 2017-09-29 | Weather information drawing processing method, weather information drawing processing device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107577486A true CN107577486A (en) | 2018-01-12 |
CN107577486B CN107577486B (en) | 2020-12-04 |
Family
ID=61039551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710911028.4A Active CN107577486B (en) | 2017-09-29 | 2017-09-29 | Weather information drawing processing method, weather information drawing processing device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107577486B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062570A (en) * | 2018-05-30 | 2018-12-21 | 广州明珞软控信息技术有限公司 | A kind of method and storage medium automatically generating drawing based on EPLAN software |
CN109300174A (en) * | 2018-11-27 | 2019-02-01 | 杨波 | A kind of Severe Convective Weather Forecasting analysis system |
CN109324792A (en) * | 2018-10-09 | 2019-02-12 | 深圳点猫科技有限公司 | A kind of the route construction automatic method and electronic equipment of language based on programming |
CN111179378A (en) * | 2020-01-02 | 2020-05-19 | 中电投电力工程有限公司 | Global electric power meteorological atlas drawing method applicable to webGIS |
CN112214472A (en) * | 2020-09-02 | 2021-01-12 | 国家气象信息中心 | Meteorological grid point data storage and query method, device and storage medium |
CN112835864A (en) * | 2021-02-03 | 2021-05-25 | 北京联创信安科技股份有限公司 | File storage method, device, equipment and storage medium |
CN113688100A (en) * | 2021-09-06 | 2021-11-23 | 北京普睿德利科技有限公司 | Meteorological data processing method, device, terminal and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034502A (en) * | 2012-12-26 | 2013-04-10 | 江苏西电南自智能电力设备有限公司 | Method for embedding dynamic real-time monitoring chart in scalable vector graphics (SVG) interface |
CN103310002A (en) * | 2013-06-27 | 2013-09-18 | 曙光信息产业(北京)有限公司 | Web service encapsulation method and system for weather forecasting calculating system mesoscale model 5 (MM5) |
US20140229275A1 (en) * | 2013-02-14 | 2014-08-14 | Clicktripz, Llc | Contextual ad display based on real-time user input |
CN104933236A (en) * | 2015-06-01 | 2015-09-23 | 北京美科思远环境科技有限公司 | Air quality simulation system |
CN106874519A (en) * | 2017-03-20 | 2017-06-20 | 百度在线网络技术(北京)有限公司 | Webpage representation method and apparatus |
-
2017
- 2017-09-29 CN CN201710911028.4A patent/CN107577486B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034502A (en) * | 2012-12-26 | 2013-04-10 | 江苏西电南自智能电力设备有限公司 | Method for embedding dynamic real-time monitoring chart in scalable vector graphics (SVG) interface |
US20140229275A1 (en) * | 2013-02-14 | 2014-08-14 | Clicktripz, Llc | Contextual ad display based on real-time user input |
CN103310002A (en) * | 2013-06-27 | 2013-09-18 | 曙光信息产业(北京)有限公司 | Web service encapsulation method and system for weather forecasting calculating system mesoscale model 5 (MM5) |
CN104933236A (en) * | 2015-06-01 | 2015-09-23 | 北京美科思远环境科技有限公司 | Air quality simulation system |
CN106874519A (en) * | 2017-03-20 | 2017-06-20 | 百度在线网络技术(北京)有限公司 | Webpage representation method and apparatus |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062570A (en) * | 2018-05-30 | 2018-12-21 | 广州明珞软控信息技术有限公司 | A kind of method and storage medium automatically generating drawing based on EPLAN software |
CN109324792A (en) * | 2018-10-09 | 2019-02-12 | 深圳点猫科技有限公司 | A kind of the route construction automatic method and electronic equipment of language based on programming |
CN109324792B (en) * | 2018-10-09 | 2022-03-11 | 深圳点猫科技有限公司 | Automatic route construction method based on programming language and electronic equipment |
CN109300174A (en) * | 2018-11-27 | 2019-02-01 | 杨波 | A kind of Severe Convective Weather Forecasting analysis system |
CN111179378A (en) * | 2020-01-02 | 2020-05-19 | 中电投电力工程有限公司 | Global electric power meteorological atlas drawing method applicable to webGIS |
CN112214472A (en) * | 2020-09-02 | 2021-01-12 | 国家气象信息中心 | Meteorological grid point data storage and query method, device and storage medium |
CN112214472B (en) * | 2020-09-02 | 2024-01-30 | 国家气象信息中心 | Meteorological lattice data storage and query method, device and storage medium |
CN112835864A (en) * | 2021-02-03 | 2021-05-25 | 北京联创信安科技股份有限公司 | File storage method, device, equipment and storage medium |
CN112835864B (en) * | 2021-02-03 | 2024-02-20 | 北京联创信安科技股份有限公司 | File storage method, device, equipment and storage medium |
CN113688100A (en) * | 2021-09-06 | 2021-11-23 | 北京普睿德利科技有限公司 | Meteorological data processing method, device, terminal and storage medium |
CN113688100B (en) * | 2021-09-06 | 2023-07-18 | 北京普睿德利科技有限公司 | Meteorological data processing method, device, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107577486B (en) | 2020-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107577486A (en) | Weather information drawing processing method, device, computer equipment and storage medium | |
US10354002B2 (en) | Interaction relationship building and explorer for dashboard | |
Leutnant et al. | swmmr-an R package to interface SWMM | |
CN109816750A (en) | Image processing method, device and computer equipment based on meteorological data | |
Diehl et al. | Visual analysis of spatio‐temporal data: Applications in weather forecasting | |
WO2014093072A1 (en) | Methods and systems for managing spreadsheet models | |
Pontius Jr et al. | Methods to summarize change among land categories across time intervals | |
Hailemariam et al. | Toward a unified representation system of performance-related data | |
CN114707196B (en) | Spacecraft platform visualization design method and device, electronic equipment and medium | |
Wang et al. | Evaluating renewable natural resources flow and net primary productivity with a GIS-Emergy approach: A case study of Hokkaido, Japan | |
CN103390099A (en) | Service system and service method based on mobile operation system platform and Mobile GIS (Geographic Information System) | |
CN102866985B (en) | For data formatter and the method for on-line analysing processing system | |
CN109814765A (en) | Meteorological image comparison method, device, computer equipment and storage medium | |
Ramakrishna et al. | An interactive web based spatio-temporal visualization system | |
CN104679880A (en) | Device and method for dynamically storing and displaying dynamic input items and business data thereof | |
Sadler et al. | Sustaining the Earth's Watersheds-Agricultural Research Data System: Data development, user interaction, and operations management | |
US11036932B2 (en) | Technology platform having integrated content creation features | |
Drechsel et al. | PALEO-SEAL: A tool for the visualization and sharing of Holocene sea-level data | |
Wang et al. | Introducing a drought index to a crop model can help to reduce the gap between the simulated and statistical yield | |
de Almeida et al. | Integration and management of sensor data for rainfall monitoring | |
CN114546525B (en) | System, method, equipment and storage medium for analyzing data | |
CN111752966B (en) | Earth change magnetic field disturbance analysis system and method | |
Lin et al. | Expression and Analysis of Seismic Disaster Information Based on Kml | |
Ivanov et al. | Application of Web Services for Visualization of the Results of Environmental Studies | |
Dubrovsky et al. | Involvement of Stochastic Weather Generators within the DAMOCLES project. |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |