Summary of the invention
Can lose time and manpower for Update Table configuration file in correlation technique, and easily occur that wrong problem, the present invention propose a kind of disposal route and device of weather service information, can avoid manual modification configuration file.
Technical scheme of the present invention is achieved in that
According to embodiments of the invention, provide a kind of disposal route of weather service information.
The method comprises: after having obtained weather information, weather information is resolved, obtain the expectation weather information corresponding to appointed place; Determine and expect time interval corresponding to weather information, the time parameter of the treating apparatus according to definite time interval to weather service information is modified; The treating apparatus of weather service information carries out predetermined process according to amended time parameter to expecting weather information, obtains the expectation weather information corresponding to the predetermined display format of time interval.
Wherein, weather information is resolved and comprised: determine each the corresponding place of weather information in weather information, and extract the expectation weather information corresponding to appointed place in weather information.
In addition, determine and expect that time interval corresponding to weather information comprises: the date when obtaining weather information determines and expect the corresponding date of weather information, and in definite weather information, expect corresponding moment interval in weather information at a fixed date.
In addition, above-mentioned predetermined process comprises pre-treatment, holotype and aftertreatment, wherein, in pre-treatment, will expect that weather information is converted to the form that holotype requires; In holotype, the expectation weather information after changing by pre-treatment is analyzed, obtain the expectation weather information after analyzing; In aftertreatment, the expectation weather information after analyzing is converted into the expectation weather information of predetermined display format.
Particularly, pre-treatment, holotype and aftertreatment are set in task queue; Before carrying out holotype, whether detect pre-treatment to expecting that weather information completes the conversion of form with predetermined period, in testing result for be in the situation that, the holotype in calling task queue, and the expectation weather information that is converted to the form that holotype requires is inputed to holotype; After calling holotype, detect the expectation weather information whether obtaining after analysis with predetermined period, be the expectation weather information obtaining after analysis in testing result, the aftertreatment in calling task queue, and the expectation weather information after analyzing is inputed to aftertreatment.
In addition, the method may further include: according to definite display format, show the expectation weather information after predetermined process.
A kind for the treatment of apparatus of weather service information is also provided according to another embodiment of the present invention.
This device comprises: parsing module, for after having obtained weather information, weather information is resolved, and obtain the expectation weather information corresponding to appointed place; Parameter adjustment module, expects time interval corresponding to weather information for determining, the time parameter of the treating apparatus according to definite time interval to weather service information is modified; Processing module, for carrying out predetermined process according to amended time parameter to expecting weather information, obtains the expectation weather information corresponding to the predetermined display format of time interval.
Wherein, parsing module is specifically for determining each the corresponding place of weather information in weather information, and extracts the expectation weather information corresponding to appointed place in weather information.
In addition, processing module comprises: pre-processing module, holotype module and post-processing module, and wherein, pre-processing module is used for carrying out pre-treatment, will expect that weather information is converted to the form that holotype requires; Holotype module is used for carrying out holotype, and the expectation weather information after changing by pre-treatment is analyzed, and obtains the expectation weather information after analyzing; Post-processing module is used for carrying out aftertreatment, the expectation weather information after analyzing is converted into the expectation weather information of predetermined display format.
This device may further include: scheduler module, for pre-treatment, holotype and aftertreatment are set to task queue; Scheduler module is also for before carrying out holotype, whether detect pre-treatment to expecting that weather information completes the conversion of form with predetermined period, in testing result for be in the situation that, call the holotype that holotype module is executed the task in queue, and the expectation weather information of the form that is converted to holotype requirement is inputed to holotype module; And for after calling holotype, detect the expectation weather information whether obtaining after analysis with predetermined period, be the expectation weather information obtaining after analysis in testing result, call the aftertreatment that post-processing module is executed the task in queue, and the expectation weather information after analyzing is inputed to post-processing module.
The present invention obtains the time interval of corresponding weather information by obtaining the parsing of appointed place, and revise with this time parameter being adopted while carrying out meteorologic analysis, can automatically complete the amendment of relevant configuration file, save the time of processing, avoid wrong generation, improved efficiency and the accuracy of weather information processing.
Embodiment
According to embodiments of the invention, provide a kind of disposal route of weather service information.
As shown in Figure 1, comprise according to the disposal route of the weather service information of the embodiment of the present invention:
Step S101, after having obtained weather information, resolves weather information, obtains the expectation weather information corresponding to appointed place;
Step S103, determines and expects time interval corresponding to weather information, the time parameter of the treating apparatus according to definite time interval to weather service information is modified;
Step S105, the treating apparatus of weather service information carries out predetermined process according to amended time parameter to expecting weather information, obtains the expectation weather information corresponding to the predetermined display format of time interval.
Wherein, above-mentioned predetermined process refers to and can and obtain the processing mode of meteorological condition according to weather information analysis.
By means of above-mentioned processing, by obtaining the geography information of appointed place and resolving the time interval that obtains corresponding weather information, and revise with this time parameter and the geographic factor that are adopted while carrying out meteorologic analysis, can automatically complete the amendment of relevant configuration file, save the time of processing, avoid wrong generation, improved efficiency and the accuracy of weather information processing.
Wherein, because the analysis of weather information often need to, for specific place, therefore, in the time that weather information is resolved, be determined each the corresponding place of weather information in weather information, and be extracted the expectation weather information corresponding to appointed place in weather information.
In addition, determining while expecting time interval corresponding to weather information, the date when obtaining weather information determines and expects the corresponding date of weather information, and in definite weather information, expects corresponding moment interval in weather information at a fixed date.
Like this, just can modify to the time parameter of the treating apparatus of weather service information, the treating apparatus that ensures weather service information can be for special time interval (for example, for night one day or following one week etc.), final analysis obtains relevant weather information (for example, meteorological exploded view, cloud layer figure etc.).
Except according to time interval modification time parameter, can also be according to the combination modification time parameter of the time interval or the time interval and time interval.
And, can also be according to expecting that weather information corresponding position, geography information, elevation information, sizing grid revise the geographic factor of the treating apparatus of weather service information.
In addition, in an example, above-mentioned predetermined process can comprise pre-treatment, holotype and aftertreatment, wherein, in pre-treatment, will expect that weather information is converted to the form that holotype requires; In holotype, the expectation weather information after changing by pre-treatment is analyzed, obtain the expectation weather information after analyzing; In aftertreatment, the expectation weather information after analyzing is converted into the expectation weather information of predetermined display format.
Preferably, for ensure pre-treatment, holotype and aftertreatment can be complete, smooth, carry out without interruption, pre-treatment, holotype and aftertreatment can be set in task queue;
And, before carrying out holotype, detect pre-treatment whether to expecting that weather information completes the conversion of form with predetermined period, in testing result for be in the situation that, holotype in calling task queue, and the expectation weather information of the form that is converted to holotype requirement is inputed to holotype; In addition, after calling holotype, detect the expectation weather information whether obtaining after analysis with predetermined period, be the expectation weather information obtaining after analysis in testing result, aftertreatment in calling task queue, and the expectation weather information after analyzing is inputed to aftertreatment.
By the detection of the result to each step, and next step is called and inputted relevant result simultaneously detecting after result obtains, can ensure the coherent execution of pre-treatment, holotype and aftertreatment, for the analysis of weather information provides effective monitor strategy, avoid people for monitoring.
Finally, can, according to definite display format (comprising multiple graphic form or other forms such as cloud layer figure, topomap), show the expectation weather information after predetermined process.
It should be noted that, the process of pre-treatment, holotype and aftertreatment is known to those skilled in the art, only concrete example for the description of pre-treatment, holotype and aftertreatment above, in fact pre-treatment, holotype and aftertreatment processing procedure and function is separately not limited to embodiment described above, according to actual needs, can the concrete processing procedure in pre-treatment, holotype and aftertreatment be changed, be deleted and increase, concrete mode be no longer enumerated herein.
By above-mentioned processing, can carry timing tool timing every day by means of system and upgrade system time, and according to system time real time modifying business operation desired data configuration file, save the time of processing, avoid wrong generation, improve efficiency and the accuracy of weather information processing, made operation system realize real-time robotization and without the operation of manual intervention.
Fig. 2 shows according to the process flow diagram of the concrete processing procedure of the disposal route of the weather information of the embodiment of the present invention.
As shown in Figure 2, specifically comprise following processing procedure:
Business starts to carry out, and obtains input data and various call parameter, prepares to carry out business processing.
Monitoring module has detected service needed processing, and the needed parameter of the business of automatically revising, starts to enter mode treatment.
Automatic monitoring modular Check processing process, carries out pre-treatment, holotype and aftertreatment successively.
According to embodiments of the invention, also provide a kind for the treatment of apparatus of weather service information.
As shown in Figure 3, comprise according to the treating apparatus of the weather service information of the embodiment of the present invention:
Parsing module 31, for after having obtained weather information, resolves weather information, obtains the expectation weather information corresponding to appointed place;
Parameter adjustment module 32, is connected to parsing module 31, expects time interval corresponding to weather information for determining, the time parameter of the treating apparatus according to definite time interval to weather service information is modified;
Processing module 33, is connected to parameter adjustment module 32, for carrying out predetermined process according to amended time parameter to expecting weather information, obtains the expectation weather information corresponding to the predetermined display format of time interval.
Similarly, except according to time interval modification time parameter, parameter adjustment module can also be according to expecting that corresponding position, geography information, elevation information, the sizing grid of weather information revise the geographic factor of the treating apparatus of weather service information.
Correspondingly, processing module also can be carried out predetermined process according to the geographic factor after adjusting or the combination of geographic factor and time parameter.
Wherein, parsing module is specifically for determining each the corresponding place of weather information in weather information, and extracts the expectation weather information corresponding to appointed place in weather information.
In addition, processing module comprises: pre-processing module (not shown), holotype module (not shown) and post-processing module (not shown), wherein, pre-processing module is used for carrying out pre-treatment, will expect that weather information is converted to the form that holotype requires; Holotype module is used for carrying out holotype, and the expectation weather information after changing by pre-treatment is analyzed, and obtains the expectation weather information after analyzing; Post-processing module is used for carrying out aftertreatment, the expectation weather information after analyzing is converted into the expectation weather information of predetermined display format.
Alternatively, this device may further include scheduler module (not shown), for pre-treatment, holotype and aftertreatment are set to task queue;
Scheduler module is also for before carrying out holotype, whether detect pre-treatment to expecting that weather information completes the conversion of form with predetermined period, in testing result for be in the situation that, call the holotype that holotype module is executed the task in queue, and the expectation weather information of the form that is converted to holotype requirement is inputed to holotype module; And
For after calling holotype, detect the expectation weather information whether obtaining after analysis with predetermined period, be the expectation weather information obtaining after analysis in testing result, call the aftertreatment that post-processing module is executed the task in queue, and the expectation weather information after analyzing is inputed to post-processing module.
In sum, by means of technique scheme of the present invention, obtain the time interval of corresponding weather information by obtaining the parsing of appointed place, and revise with this time parameter being adopted while carrying out meteorologic analysis, can automatically complete the amendment of relevant configuration file, save the time of processing, avoided wrong generation, improved efficiency and the accuracy of weather information processing; And, except adjusting time parameter, can also adjust multiple other parameters such as geographic factor of carrying out weather information analysis, realize the automatic configuration of operation system.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.