CN109239808A - Weather forecast method, device, computer equipment and storage medium - Google Patents

Weather forecast method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109239808A
CN109239808A CN201810861878.2A CN201810861878A CN109239808A CN 109239808 A CN109239808 A CN 109239808A CN 201810861878 A CN201810861878 A CN 201810861878A CN 109239808 A CN109239808 A CN 109239808A
Authority
CN
China
Prior art keywords
weather
change
index
feature
sky
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
Application number
CN201810861878.2A
Other languages
Chinese (zh)
Inventor
王红伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810861878.2A priority Critical patent/CN109239808A/en
Priority to PCT/CN2018/106224 priority patent/WO2020024386A1/en
Publication of CN109239808A publication Critical patent/CN109239808A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01WMETEOROLOGY
    • G01W1/00Meteorology
    • G01W1/10Devices for predicting weather conditions

Landscapes

  • Environmental & Geological Engineering (AREA)
  • Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Atmospheric Sciences (AREA)
  • Biodiversity & Conservation Biology (AREA)
  • Ecology (AREA)
  • Environmental Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of weather forecast method, device, computer equipment and storage mediums, which comprises obtains the celestial environment image of current location point, and extracts sky feature from celestial environment image;Obtain current wind direction feature;Current change of weather index is obtained according to wind direction feature and sky feature;Current time feature and the before this weather characteristics in preset time period are obtained, and according to weather after change of weather index, temporal characteristics and the weather characteristics forecast change of weather.The present invention provides one kind can be passed through the method that acquisition current weather environment carries out weather anticipation whenever and wherever possible by each user.Operation of the present invention is easy, and individual can also prejudge weather using it, and the present invention can prejudge in advance the situation of change of weather, so that reducing weather influences people and object bring, everybody is facilitated to make timely reply.

Description

Weather forecast method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology, and in particular to a kind of weather forecast method, device, computer equipment and deposits Storage media.
Background technique
Currently, people mainly predict future weather situation by weather forecast, but weather forecast is all often one Area or the weather summary in following one period of city, therefore prediction can always have certain error, also pass through in actual life It often will appear opposite to rain and the situation of clear sky the sound of reading aloud here.And China it is ancient on know astronomical habit, also always It engraves in the minds of people, people still can perhaps night looks at the sky through the cloud layer or starry sky of sky on daytime variation Estimate tomorrow weather how, but judge weather condition by naked eyes, estimation precision is affirmed inadequate.Therefore, currently lack A kind of method that can be used at any time by each user and weather anticipation can be carried out by current weather environment.
Summary of the invention
The present invention provides a kind of weather forecast method, device, computer equipment and storage medium, for improving user to gas As the accuracy of prediction.
In a first aspect, providing a kind of weather forecast method, comprising:
The celestial environment image of current location point is obtained, and extracts sky feature from the celestial environment image;
Obtain current wind direction feature;
Current change of weather index is obtained according to the wind direction feature and the sky feature;
Obtain current time feature and weather characteristics in preset time period before this, and according to the change of weather index, described Weather after temporal characteristics and the weather characteristics forecast change of weather.
Second aspect provides a kind of Weather forcast unit, comprising:
Image zooming-out module, for obtaining the celestial environment image of current location point, and from the celestial environment image Extract sky feature;
Wind direction obtains module, for obtaining current wind direction feature;
Index obtains module, for obtaining current change of weather index according to the wind direction feature and the sky feature;
Weather forecast module, for obtaining current time feature and the before this weather characteristics in preset time period, and according to Weather after the change of weather index, the temporal characteristics and the weather characteristics forecast change of weather.
The third aspect, provides a kind of computer equipment, including memory, processor and storage are in the memory simultaneously The computer program that can be run on the processor, the processor realize that above-mentioned weather is pre- when executing the computer program The step of reporting method.
Fourth aspect, provides a kind of computer readable storage medium, and the computer-readable recording medium storage has calculating The step of machine program, the computer program realizes above-mentioned weather forecast method when being executed by processor.
Weather forecast method, device, computer equipment and storage medium provided by the invention, according to the kind of acquisition and training Kind Meteorological Characteristics obtain mathematical model, and obtain change of weather index using the mathematical model, and then carry out in advance to future weather situation Sentence, considerably increases the accuracy of the weather prognosis to each position point.And user can put in any position to celestial environment figure As being acquired and obtaining change of weather index, so that the climatic condition of the location point is known, in the prediction of the Changes in weather of point-to-point It is more more accurate than weather forecast for aspect;Meanwhile each position point anticipation Changes in weather situation can in systems into Row big data analysis, and then it is accurate to the meteorology of each position point area peripheral edge.Operation of the present invention is easy, and it is pre- to be different from traditional weather The very complicated of report process, individual can also prejudge weather using it, and the present invention can prejudge the variation feelings of weather in advance Condition facilitates everybody to make timely reply so that reducing weather influences people and object bring.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the application environment schematic diagram of weather forecast method in one embodiment of the invention;
Fig. 2 is the flow chart of weather forecast method in one embodiment of the invention;
Fig. 3 is the flow chart of the step S40 of weather forecast method in one embodiment of the invention;
Fig. 4 is the flow chart of the step S402 of weather forecast method in one embodiment of the invention;
Fig. 5 is the functional block diagram of Weather forcast unit in one embodiment of the invention;
Fig. 6 is the functional block diagram of the weather forecast module of Weather forcast unit in one embodiment of the invention;
Fig. 7 is the functional block diagram of the detection sub-module of Weather forcast unit in one embodiment of the invention;
Fig. 8 is the schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Weather forecast method provided by the invention can be applicable in the application environment such as Fig. 1, wherein client (computer Equipment) and monitoring client (monitoring device) communicated by network with server.Wherein, client (computer equipment) and monitoring Holding (monitoring device) includes but is not limited to for various personal computers, laptop, smart phone, tablet computer, camera With portable wearable device.Server can with the server cluster of independent server either multiple servers composition come It realizes.
In one embodiment, as shown in Fig. 2, providing a kind of weather forecast method, the service in Fig. 1 is applied in this way It is illustrated, includes the following steps: for device
S10, the celestial environment image for obtaining current location point, and sky feature is extracted from the celestial environment image.
The celestial environment image of current location point is obtained, is uploaded in background server and presets after being shot by user Storage location is directly uploaded to background service after can also being shot by the picture pick-up device communicated to connect with the background server In the database of device.In one embodiment, the picture pick-up device can be multiple monitoring cameras that predeterminated position point is arranged in (that is, the coordinate information of each position point has been accurately positioned, and the celestial environment image of the shooting of each monitoring camera can be with it The coordinate information associated storage of location point), each monitoring camera is communicated to connect with the background server, and user can be with Background server is logged on to by client (such as the terminals such as mobile phone, pad, computer), and it is corresponding to obtain each monitoring camera The coordinate information of location point, while celestial environment image can be transferred according to the coordinate information of the location point.It is intelligible, the prison After controlling camera shooting video or image, background server can be first passed through and pre-processed, regenerate celestial environment image, For example, intercepting celestial environment image from the video that the monitoring camera is shot, and it is sized in preprocessing process Size, pixel, brightness, contrast etc., then the celestial environment image after adjustment is associated with the coordinate information of the location point and is deposited Storage is into the database of background server.In another embodiment, which can be by special image processing services Device carries out namely each monitoring camera and described image processing server communicate to connect, and by the sky after pretreatment Ambient image is stored in described image processing server, when user transfers the celestial environment figure by client transmission When the request of picture to background server, the background server is according to the coordinate information of the location point for including in request, described in The celestial environment image is transferred in image processing server.
The sky feature includes color, the shape of cloud, arrangement and the height position of the aerial cloud in the sky color on daytime, day It the features such as sets, can also include the features such as quantity and the brightness, the shape of the moon and brightness of the star in night sky.
S20, current wind direction feature is obtained.
In order to guarantee the precision of current wind direction feature, in one embodiment, the wind direction feature is surveyed by the wind direction of profession After amount instrument measures, the background server is manually entered by user, the wind direction measuring instrument can be also communicatively connected to After the background server, the wind direction feature that the wind direction measuring instrument is measured is in real time or timing transmission is to the backstage Server is simultaneously recorded, to guarantee the precision to predict the weather.
The step S10 and step S20 is arranged at before the step S30, and it is successively suitable not limit it Sequence.
S30, current change of weather index is obtained according to the wind direction feature and the sky feature;
In one embodiment, current change of weather index can be obtained according to following mathematical model:
VDI=K1*X1+K2*X2
Wherein: VDI is change of weather index, K1For sky characteristic value, K2For wind direction characteristic value, X1For with the sky characteristic value Corresponding first weight, X2For corresponding second weight of the wind direction characteristic value.The mathematical model according to acquiring before this Various Meteorological Characteristics (including sky feature and wind direction feature) obtain after being trained.
S40, current time feature and weather characteristics in preset time period before this are obtained, and according to the change of weather index, The temporal characteristics and the weather characteristics determine weather after the change of weather.
Obtain current time feature and the before this weather characteristics in preset time period;According to the weather characteristics and it is described when Between restore a reactionary rule described in characteristic modification index, and detect whether the revised change of weather index is more than preset threshold;Revised When the change of weather index is more than preset threshold, weather after the forecast change of weather;Default threshold is less than in the revised change of weather index When value, the constant weather of forecast holding weather.
In conclusion weather forecast method provided by the invention obtains mathematics according to various Meteorological Characteristics of acquisition and training Model, and change of weather index is obtained using the mathematical model, and then prejudge to future weather situation, it considerably increases to everybody Set the accuracy of weather prognosis a little.And user can put in any position and the change of weather is acquired and obtained to celestial environment image Index, to know the climatic condition of the location point, in terms of the prediction of the Changes in weather of point-to-point for, than weather forecast It is more accurate;Meanwhile big data analysis can be carried out in systems in the Changes in weather situation of each position point anticipation, and then accurate To the meteorology of each position point area peripheral edge.
In another embodiment, after the step S40 further include: the weather forecast of the current location point is received, and It is corresponded to and is input in database corresponding with the location point, for transferring the weather forecast at any time.That is, can be with After the weather forecast for obtaining multiple location points, progress summation is combined to analyze the region weather forecast of multiple location points Changes in weather situation.
In one embodiment, in the step S10, that is, the celestial environment image of current location point is obtained, and from the day Sky feature is extracted in Altitude image, is specifically comprised the following steps:
The sky image on the daytime of the current location point is obtained, and extracts sky color, day from the sky image The skies feature such as color, shape, arrangement and height and position of aerial cloud;That is, in the present embodiment, the sky feature is Sky feature in the sky image on daytime, and it is the aerial cloud in sky color, day that the sky feature, which includes but is not limited to, Color, shape, arrangement and height and position etc..
In one embodiment, in the step S10, that is, the celestial environment image of current location point is obtained, and from the day Sky feature is extracted in Altitude image, is also specifically comprised the following steps:
Obtain the sky image at the night of the current location point, and from the sky image extract star quantity and The skies features such as brightness, the shape of the moon and brightness.In the present embodiment, the sky feature is in the sky image at night Sky feature, and it is quantity and brightness, shape of the moon and brightness of star etc. that the sky feature, which includes but is not limited to,.
Understandably, in one embodiment, the celestial environment image can be carried out by specific image server The extraction of sky feature, at this point, for shoot the picture pick-up device of the celestial environment image also with described image server communication Connection, and can be stored directly in described image server after the celestial environment Image Acquisition, using image server pair The celestial environment image carries out sky feature extraction, and the speed for extracting the sky feature will faster, and alleviate The burden of background server.When specific image server, the extraction process of above-mentioned sky feature by taking from the background Business device carries out.
In one embodiment, in the step S30, i.e., current become is obtained according to the wind direction feature and the sky feature Its index, specifically comprises the following steps:
The current change of weather index is obtained according to following mathematical model:
VDI=K1*X1+K2*X2
Wherein: VDI is change of weather index, K1For sky characteristic value, K2For wind direction characteristic value, X1For with the sky characteristic value Corresponding first weight, X2For the second weight corresponding with the wind direction characteristic value, (above-mentioned parameter in the next steps will be detailed Illustrate).The mathematical model is instructed according to the various Meteorological Characteristics (including sky feature and wind direction feature) acquired before this It is obtained after white silk.
Specifically, VDI is change of weather index, and the change of weather index refers to the change of weather probability of reflection current weather variation speed, The preset threshold of a change of weather index can be set to determine its corresponding change of weather probability of index that restores a reactionary rule.The change of weather index and described pre- If threshold value can be set according to demand, it is set as 0~10 than the index that restores a reactionary rule as will be described, and sets when the change of weather index When preset threshold is 5 (can be adjusted according to demand subsequent), represent when the change of weather index is greater than 5, current weather hair Probability is big, and the change of weather index is bigger for changing (referred to as restoring a reactionary rule), and change of weather probability is bigger, and change of weather index is smaller, the change of weather Probability is smaller.Intelligible, the change of weather index can also be set as its changed with sky feature and wind direction speciality according to demand His index value.
K1For sky characteristic value, the sky characteristic value is the corresponding change of weather probability value of each sky feature, and according to described Influence situation of the sky feature of acquisition to Changes in weather obtains.1 sky feature list of table
In one embodiment, situation can be prejudged according to the Changes in weather in table 1 and sets each initial sky characteristic value, And the sky spy is adjusted by the match condition of actual Changes in weather and the initial sky characteristic value in the follow-up process Value indicative, the process are training process of the sky characteristic value in the mathematical model, for example, some location point due to The influence in geographical location, landform or other factors has out in the corresponding Changes in weather anticipation situation of the sky feature and table 1 Enter, the adjustment sky characteristic value can be corresponded at this time;In the sky characteristic value to the influence of Changes in weather in this area When more tending to weather stabilization, the sky characteristic value is turned down;In the sky characteristic value to the shadow of Changes in weather in this area When sound more tends to Changes in weather, the sky characteristic value is tuned up;Similarly, subsequent also sustainable according to the actual situation to the sky Characteristic value is adjusted.
K2For wind direction characteristic value, the wind direction characteristic value is the corresponding change of weather probability value of each wind direction feature, and according to described Influence situation of the wind direction feature of acquisition to Changes in weather obtains.It in one embodiment, can be pre- according to the Changes in weather in table 2 Sentence situation and set each initial wind direction characteristic value, and passes through actual Changes in weather and the initial wind direction in the follow-up process The match condition of characteristic value adjusts the wind direction characteristic value, which is the wind direction characteristic value in the mathematical model Training process, for example, the wind direction feature is corresponding in some location point due to the influence of geographical location, landform or other factors Changes in weather anticipation situation and table 2 in there is any discrepancy, the adjustment wind direction characteristic value can be corresponded at this time;In the wind direction feature When value more tends to weather stabilization to the influence of Changes in weather in this area, the wind direction characteristic value is turned down;It is special in the wind direction When value indicative more tends to Changes in weather to the influence of Changes in weather in this area, the wind direction characteristic value is tuned up;Similarly, it is subsequent also It is sustainable that the wind direction characteristic value is adjusted according to the actual situation.Intelligible, in the Tables 1 and 2 content To be increased according to demand, be deleted or modified.
X1For the first weight, first weight refers to that the sky feature is shared in the influence situation to Changes in weather Specific gravity.X2For the second weight, second weight refers to that the wind direction feature is shared in the influence situation to Changes in weather Specific gravity.
2 wind direction feature list of table
Serial number Classification Wind direction feature Changes in weather prejudges situation
Fa1 Wind direction Long sunny west wind rain Predict the appearance of rain
Fa2 Wind direction Excessive rain west wind is fine Predict fine day nearly
Fa3 Wind direction Northwester It predicts the weather fine
Fa4 Wind direction Midnight east wind rises It predicts the weather fine
Fa5 Wind direction The wind blew east after rain Prediction rain will not stop
Further, user can set initial first weight and the second weight;And pass through in the follow-up process The match condition of actual Changes in weather and the first initial weight and the second weight adjusts first weight and the second weight, The process is the first weight and training process of second weight in the mathematical model.
In one embodiment, degree of influence of the sky characteristic value to the change of weather of first weight is corresponded in judgement Than the more hour being arranged in current mathematical model, first weight is turned down;Correspond to described in first weight in judgement Sky characteristic value to the degree of influence of the change of weather than be arranged in current mathematical model it is bigger when, tune up first weight.Similarly, It is arranged in the degree of influence to the change of weather that judgement corresponds to the wind direction characteristic value of second weight than current mathematical model More hour, turn second weight down;Judgement correspond to the wind direction characteristic value of second weight to the change of weather Degree of influence than current mathematical model be arranged it is bigger when, tune up second weight.
To help to understand, following instance is enumerated: at a daytime, the celestial environment image zooming-out that is taken in the air according to day Sky characteristic value (feature of the cloud extracted in sky medium cloud tomographic image), if the sky characteristic value extracted is the Ci4 in table 1, The possibility then to restore a reactionary rule this moment is higher, and sky characteristic value is preset in system and is set as 8, and first weight setting is 80%;Again Current wind direction is obtained, if it is west wind (corresponding to the Fa1 and Fa2 in table 2) is blown, then change of weather possibility is also higher at this time, is Wind direction characteristic value is preset in system and is set as 7, and second weight setting is 20%, according to the mathematical model VDI=K1*X1+ K2*X2It can be concluded that change of weather index is 8*80%+7*20%, result 7.8.
Intelligible, since change of weather index is 7.8, which is greater than the preset threshold 5 of the change of weather index, therefore predictable Current change of weather probability is higher.
At a night, the celestial environment image zooming-out sky characteristic value taken in the air according to day (mentions in starry sky image The feature of the sky, star, the moon that take etc.), if extract sky characteristic value be table 1 in Xa3, this moment restore a reactionary rule possibility compared with Height presets sky characteristic value in system and is set as 9, and first weight setting is 80%;Current wind direction is obtained again, if To blow north wind, then represent at this time the change of weather possibility it is lower, in system preset wind direction characteristic value be set as 2, according to the mathematical modulo Type VDI=K1*X1+K2*X2It can be concluded that change of weather index is 9*80%+2*20%, result 7.6.
It is intelligible, since change of weather index is 7.6, greater than the preset threshold 5 of the change of weather index, therefore can be predicted current The probability that restores a reactionary rule is higher.
In one embodiment, as shown in figure 3, in the step S40, i.e. acquisition current time feature and before this preset time Weather characteristics in section, and according to weather after the forecast change of weather of the change of weather index, the temporal characteristics and the weather characteristics, tool Body includes the following steps:
S401, current time feature and the before this weather characteristics in preset time period are obtained.
The temporal characteristics obtained refer to acquisition current time, and by the time range of current time and its affiliated solar term It is corresponding that (as shown in table 3, content can increase accordingly, delete or repair according to the division of different periods or other demands in the table 3 Change), while obtaining the Changes in weather anticipation situation data of the solar term;Intelligible, above scheme is substantially current time Period identical as former years is corresponding, while obtaining the biggish Changes in weather situation of probability of happening in the identical period in former years.
3 temporal characteristics list of table
Serial number Classification Temporal characteristics Changes in weather prejudges situation
Ga1 Solar term The beginning of spring With rainwater
Ga2 Solar term Rainwater It is rainy
Ga3 Solar term The Waking of Insects (3rd solar term) With spring thunder, more thunderstorms
Ga4 Solar term The Spring Equinox With low temperature overcast and rainy day
Ga5 Solar term It is clear and bright It is rainy
Ga6 Solar term Grain rains It is rainy
Ga7 Solar term The Beginning of summer With rainwater
Ga8 Solar term Grain Full It is short of rain with rainwater
Ga9 Solar term Grain in Ear More fine days
Ga10 Solar term The Summer Solstice Rainy water
Ga11 Solar term Slight Heat More thunderstorms
Ga12 Solar term Great Heat More fine days
Ga13 Solar term The beginning of autumn More fine days
Ga14 Solar term The Limit of Heat Few fine day
Ga15 Solar term White Dew More continous rains
Ga16 Solar term The Autumnal Equinox It is short of rain
Ga17 Solar term Cold Dew With sleet
Ga18 Solar term The Frost's Descent With frost
Ga19 Solar term The Beginning of Winter With snow
Ga20 Solar term Slight snow With snow
Ga21 Solar term Heavy snow With snow
Ga22 Solar term Winter Solstice With snow
Ga23 Solar term Slight Cold With snow
Ga24 Solar term Great Cold With snow
It obtains the weather characteristics before this in preset time period to refer to, obtains current time (or several toward several days are pushed forward Hour etc.) weather condition, to judge which kind of situation is current weather belong to, for example whether current weather belongs to long sunny, excessive rain Or situations such as just cleared, first rain, for further being compared.
S402, the change of weather index is corrected according to the weather characteristics and the temporal characteristics, and detects revised institute State whether change of weather index is more than preset threshold.
Former years are obtained with the Changes in weather state of period according to the temporal characteristics;According to the day in preset time period before this Gas feature Changes in weather state corresponding with the change of weather index acquisition change of weather index;It is corresponding to detect the change of weather index Whether Changes in weather state matches with former years with the Changes in weather state of period;In the corresponding Changes in weather shape of the change of weather index When state is matched with former years with the Changes in weather state of period, increase the corresponding change of weather probability of the change of weather index, the change of weather is general Rate refers to the size with the change of weather index corresponding change of weather a possibility that, for example, change of weather index is 8.5 if preset threshold is 5, It is the rainy day that future weather 83% (change of weather probability is 83%) possible transition, which can then be prompted,;At this point, if the corresponding weather of change of weather index Variable condition is matched with former years with the Changes in weather state of period, change of weather probability can be increased to 90% by 83%;;In the change When the corresponding Changes in weather state of its index and former years mismatch with the Changes in weather state of period, reduce the change of weather exponent pair The change of weather probability answered.
S403, the revised change of weather index be more than the preset threshold when, forecast the change of weather after weather.
For example, the change of weather index after correcting is 9 if preset threshold is 5, then future weather 90% can be prompted (to restore a reactionary rule Probability is that 90%) possible transition is the rainy day;Understandably, the prompt can be real on the display interface of client and described Display interface can also prompt it to restore a reactionary rule index (or change of weather probability corresponding with the change of weather index) simultaneously.
S404, when the revised change of weather index is less than the preset threshold, forecast keeps the constant day of weather Gas.
For example, the current change of weather index after correcting is 2 if preset threshold is 5, then future weather possible 80% can be prejudged (i.e. change of weather probability is 80%) can be able to maintain the rainy day.Understandably, the prompt can be real on the display interface of client, and The display interface can also prompt it to restore a reactionary rule index (or change of weather probability corresponding with the change of weather index) simultaneously.
In one embodiment, as shown in figure 4, in the step S402, i.e., special according to the weather characteristics and the time Sign corrects the change of weather index, and detects whether the revised change of weather index is more than preset threshold, specifically includes following step It is rapid:
The temporal characteristics obtained refer to acquisition current time, and by the time range of current time and its affiliated solar term It is corresponding that (as shown in table 3, content can increase accordingly, delete or repair according to the division of different periods or other demands in the table 3 Change), while obtaining the Changes in weather anticipation situation data of the solar term;Intelligible, above scheme is substantially current time Period identical as former years is corresponding, while obtaining the biggish Changes in weather situation of probability of happening in the identical period in former years.
It obtains the weather characteristics before this in preset time period to refer to, obtains current time (or several toward several days are pushed forward Hour etc.) weather condition, to judge which kind of situation is current weather belong to, for example whether current weather belongs to long sunny, excessive rain Or situations such as just cleared, first rain, for further being compared.
S4021, former years are obtained with the Changes in weather state of period according to the temporal characteristics.
S4022, referred to according to the weather characteristics in preset time period before this with the change of weather index acquisition change of weather The corresponding Changes in weather state of number.
S4023, the corresponding Changes in weather state of the detection change of weather index and former years become with the weather of period Whether change state matches.
S4024, in the corresponding Changes in weather state of the change of weather index and former years with the Changes in weather of period When state matches, increase the corresponding change of weather probability of the change of weather index.
S4025, in the corresponding Changes in weather state of the change of weather index and former years with the Changes in weather of period When state mismatches, reduce the corresponding change of weather probability of the change of weather index.
That is, can add a reversed correction value on the change of weather index when current variability index is greater than preset threshold, make It obtains the change of weather exponential number to become smaller, reduces change of weather possibility;It, can be in the change when current variability index is less than preset threshold Add a positive correction value on its index, so that the change of weather exponential number is bigger, to reduce a possibility that will not currently restoring a reactionary rule.
For example, current weather is just cleared, and when showing that former years are identical in current time characteristic information if preset threshold is 5 Section maximum probability is long sunny, if change of weather index is 5.1 at this time, can correspondingly increase the probability that current weather is maintained fine day at this time, Increase a reversed correction value -0.5 on the change of weather index 5.1, so that revised change of weather index is 4.6, at this point, in advance A possibility that sentencing future weather 46% is the change of weather, keeps fine day a possibility that 56%.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
In one embodiment, as shown in figure 5, providing a kind of Weather forcast unit, the Weather forcast unit and above-mentioned implementation Weather forecast method corresponds in example.The Weather forcast unit includes image zooming-out module 110, wind direction acquisition module 120, refers to Number obtains module 130 and weather forecast module 140.Detailed description are as follows for each functional module:
Image zooming-out module 110, for obtaining the celestial environment image of current location point, and from the celestial environment image Middle extraction sky feature.
Wind direction obtains module 120, for obtaining current wind direction feature.
Index obtains module 130, for obtaining current change of weather index according to the wind direction feature and the sky feature.
Weather forecast module 140, for obtaining current time feature and the weather characteristics in preset time period, and root before this Weather after restoring a reactionary rule is determined according to the change of weather index, the temporal characteristics and the weather characteristics.
Preferably, as shown in fig. 6, weather forecast module 140 specifically include acquisition submodule 141, detection sub-module 142, First forecast submodule 143 and the second forecast submodule 144.Detailed description are as follows for each function sub-modules:
Acquisition submodule 141, for obtaining current time feature and the before this weather characteristics in preset time period.
Detection sub-module 142, for adjusting the change according to the match condition of the weather characteristics and the temporal characteristics Its index, and detect whether the revised change of weather index is more than preset threshold.
First forecast submodule 143, for when the revised change of weather index is more than the preset threshold, forecast to become Weather after it;
Second forecast submodule 144, for forecasting when the revised change of weather index is less than the preset threshold The weather for keeping weather constant.
Preferably, as shown in fig. 7, detection sub-module 142 specifically includes first acquisition unit 1421, second acquisition unit 1422, matching unit 1423, increasing unit 1424 and reduction unit 1425.Detailed description are as follows for each functional unit:
First acquisition unit 1421, for obtaining former years with the Changes in weather state of period according to the temporal characteristics.
Second acquisition unit 1422, for according in preset time period before this weather characteristics and the change of weather index Obtain the corresponding Changes in weather state of the change of weather index.
Matching unit 1423, for detecting the corresponding Changes in weather state of the change of weather index and former years with the period Whether the Changes in weather state matches.
Increasing unit 1424, for the institute in the corresponding Changes in weather state of the change of weather index and former years with the period When stating the matching of Changes in weather state, increase the corresponding change of weather probability of the change of weather index.
Reduction unit 1425, for the institute in the corresponding Changes in weather state of the change of weather index and former years with the period When stating Changes in weather state mismatch, reduce the corresponding change of weather probability of the change of weather index.
Specific about Weather forcast unit limits the restriction that may refer to above for weather forecast method, herein not It repeats again.Modules in above-mentioned Weather forcast unit can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 8.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of weather forecast method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor perform the steps of when executing computer program
The celestial environment image of current location point is obtained, and extracts sky feature from the celestial environment image;
Obtain current wind direction feature;
Current change of weather index is obtained according to the wind direction feature and the sky feature;
Obtain current time feature and weather characteristics in preset time period before this, and according to the change of weather index, described Temporal characteristics and the weather characteristics determine weather after the change of weather.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
The celestial environment image of current location point is obtained, and extracts sky feature from the celestial environment image;
Obtain current wind direction feature;
Current change of weather index is obtained according to the wind direction feature and the sky feature;
Obtain current time feature and weather characteristics in preset time period before this, and according to the change of weather index, described Temporal characteristics and the weather characteristics determine weather after the change of weather.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided by the present invention, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link DRAM (SLDRAM), the direct RAM of memory bus (RDRAM), direct memory bus Dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of weather forecast method characterized by comprising
The celestial environment image of current location point is obtained, and extracts sky feature from the celestial environment image;
Obtain current wind direction feature;
Current change of weather index is obtained according to the wind direction feature and the sky feature;
Current time feature and the before this weather characteristics in preset time period are obtained, and according to the change of weather index, the time Weather after feature and the weather characteristics forecast change of weather.
2. weather forecast method as described in claim 1, which is characterized in that the celestial environment figure for obtaining current location point Picture, and sky feature is extracted from the celestial environment image, comprising:
The sky image on the daytime of the current location point is obtained, and extraction sky color, day are aerial from the sky image One of color, shape, arrangement and the height and position of cloud or a variety of sky features;Or
The sky image at the night of the current location point is obtained, and extracts from the sky image quantity of star and bright One of degree, the shape of the moon and brightness or a variety of sky features.
3. the method for weather forecast as described in claim 1, which is characterized in that described according to the wind direction feature and the sky Feature obtains current change of weather index, comprising:
The current change of weather index is obtained according to following mathematical model:
VDI=K1*X1+K2*X2
Wherein: VDI is change of weather index, K1For sky characteristic value, K2For wind direction characteristic value, X1It is corresponding with the sky characteristic value The first weight, X2For the second weight corresponding with the wind direction characteristic value.
4. weather forecast method as described in claim 1, which is characterized in that the acquisition current time feature and preset before this Weather characteristics in period, and the change of weather day after tomorrow is forecast according to the change of weather index, the temporal characteristics and the weather characteristics Gas, comprising:
Obtain current time feature and the before this weather characteristics in preset time period;
The change of weather index is corrected according to the weather characteristics and the temporal characteristics, and detects the revised change of weather index It whether is more than preset threshold;
When the revised change of weather index is more than the preset threshold, weather after the forecast change of weather;
When the revised change of weather index is less than the preset threshold, the constant weather of forecast holding weather.
5. weather forecast method as claimed in claim 4, which is characterized in that described according to the weather characteristics and the time Restore a reactionary rule index described in characteristic modification, and detects whether the revised change of weather index is more than preset threshold, comprising:
Former years are obtained with the Changes in weather state of period according to the temporal characteristics;
According to the weather characteristics institute corresponding with the change of weather index acquisition change of weather index in preset time period before this State Changes in weather state;
Detect the corresponding Changes in weather state of the change of weather index and former years with the period the Changes in weather state whether Matching;
When the corresponding Changes in weather state of the change of weather index is matched with former years with the Changes in weather state of period, Increase the corresponding change of weather probability of the change of weather index;
It is mismatched in the corresponding Changes in weather state of the change of weather index and former years with the Changes in weather state of period When, reduce the corresponding change of weather probability of the change of weather index.
6. a kind of Weather forcast unit characterized by comprising
Image zooming-out module is extracted for obtaining the celestial environment image of current location point, and from the celestial environment image Sky feature;
Wind direction obtains module, for obtaining current wind direction feature;
Index obtains module, for obtaining current change of weather index according to the wind direction feature and the sky feature;
Weather forecast module, for obtaining current time feature and the before this weather characteristics in preset time period, and according to described Index, the temporal characteristics and the weather characteristics of restoring a reactionary rule forecast weather after the change of weather.
7. Weather forcast unit as claimed in claim 6, which is characterized in that the weather forecast module includes:
Acquisition submodule, for obtaining current time feature and the before this weather characteristics in preset time period;
Detection sub-module, for adjusting the change of weather index according to the match condition of the weather characteristics and the temporal characteristics, And detect whether the revised change of weather index is more than preset threshold;
First forecast submodule, for when the revised change of weather index is more than the preset threshold, forecast to restore a reactionary rule the day after tomorrow Gas;
Second forecast submodule, for when the revised change of weather index is less than the preset threshold, forecast to keep day The constant weather of gas.
8. Weather forcast unit as claimed in claim 7, which is characterized in that the detection sub-module includes:
First acquisition unit, for obtaining former years with the Changes in weather state of period according to the temporal characteristics;
Second acquisition unit, for according to the weather characteristics and change of weather index acquisition in preset time period before this Restore a reactionary rule the corresponding Changes in weather state of index;
Detection unit, for detecting the corresponding Changes in weather state of the change of weather index and former years with the weather of period Whether variable condition matches;
Increasing unit, for becoming in the corresponding Changes in weather state of the change of weather index and former years with the weather of period When change state matches, increase the corresponding change of weather probability of the change of weather index;
Reduction unit, for becoming in the corresponding Changes in weather state of the change of weather index and former years with the weather of period When change state mismatches, reduce the corresponding change of weather probability of the change of weather index.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to The step of any one of 5 weather forecast method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In the step of realization weather forecast method as described in any one of claim 1 to 5 when the computer program is executed by processor Suddenly.
CN201810861878.2A 2018-08-01 2018-08-01 Weather forecast method, device, computer equipment and storage medium Pending CN109239808A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810861878.2A CN109239808A (en) 2018-08-01 2018-08-01 Weather forecast method, device, computer equipment and storage medium
PCT/CN2018/106224 WO2020024386A1 (en) 2018-08-01 2018-09-18 Weather forecast method and device, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810861878.2A CN109239808A (en) 2018-08-01 2018-08-01 Weather forecast method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109239808A true CN109239808A (en) 2019-01-18

Family

ID=65073385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810861878.2A Pending CN109239808A (en) 2018-08-01 2018-08-01 Weather forecast method, device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109239808A (en)
WO (1) WO2020024386A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110488391A (en) * 2019-07-01 2019-11-22 佛山科学技术学院 For the Weather prediction system of zonule, method and storage medium
CN110579821A (en) * 2019-08-02 2019-12-17 佛山科学技术学院 small-range weather forecast system and method based on machine vision and storage medium
CN110673146A (en) * 2019-10-12 2020-01-10 上海眼控科技股份有限公司 Weather prediction image detection method and device, computer equipment and readable storage medium
CN110705127A (en) * 2019-10-24 2020-01-17 上海米哈游网络科技股份有限公司 Weather conversion prediction method, device, equipment and storage medium
CN111242354A (en) * 2020-01-03 2020-06-05 拉扎斯网络科技(上海)有限公司 Method and device for wearable device, electronic device and readable storage medium
CN111832407A (en) * 2020-06-08 2020-10-27 中南民族大学 Laser radar starting-up automatic judging method, device and storage device
CN112684519A (en) * 2020-12-30 2021-04-20 北京墨迹风云科技股份有限公司 Weather forecasting method and device, computer equipment and storage medium
CN113330334A (en) * 2019-01-31 2021-08-31 雅苒国际集团 Reducing the scale of weather forecasts
CN114663883A (en) * 2022-05-25 2022-06-24 中山职业技术学院 Point cloud data correction method and device, electronic equipment and storage medium
CN115439727A (en) * 2022-11-08 2022-12-06 杭州觅睿科技股份有限公司 Weather forecast method, system, device and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616735A (en) * 2013-11-28 2014-03-05 北京奇虎科技有限公司 Method, device and system for forecasting weather
CN104285165A (en) * 2013-04-04 2015-01-14 天气变化研究无限责任公司 Method for generating and displaying NOWCAST in selectable time increments
WO2015104281A1 (en) * 2014-01-07 2015-07-16 Abb Technology Ag Solar irradiance forecasting
CN105158823A (en) * 2015-08-15 2015-12-16 大连天岛海洋科技有限公司 Hanging waveguide monitoring-forecasting system and method
CN106526708A (en) * 2016-09-21 2017-03-22 广东奥博信息产业有限公司 Intelligent early-warning analysis method for meteorological severe convection weather based on machine learning
CN106772697A (en) * 2016-11-21 2017-05-31 元江哈尼族彝族傣族自治县气象局 Sea of clouds natural landscape forecasting procedure and system
CN107479112A (en) * 2017-07-07 2017-12-15 北京中交华安科技有限公司 Thick fog Forecasting Methodology, apparatus and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410658B (en) * 2014-10-13 2018-04-27 北京彩彻区明科技有限公司 Fixed-point environment state forecast method and apparatus
CN104598326B (en) * 2014-12-31 2018-12-28 北京奇虎科技有限公司 A kind of error correction information method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104285165A (en) * 2013-04-04 2015-01-14 天气变化研究无限责任公司 Method for generating and displaying NOWCAST in selectable time increments
CN103616735A (en) * 2013-11-28 2014-03-05 北京奇虎科技有限公司 Method, device and system for forecasting weather
WO2015104281A1 (en) * 2014-01-07 2015-07-16 Abb Technology Ag Solar irradiance forecasting
CN105158823A (en) * 2015-08-15 2015-12-16 大连天岛海洋科技有限公司 Hanging waveguide monitoring-forecasting system and method
CN106526708A (en) * 2016-09-21 2017-03-22 广东奥博信息产业有限公司 Intelligent early-warning analysis method for meteorological severe convection weather based on machine learning
CN106772697A (en) * 2016-11-21 2017-05-31 元江哈尼族彝族傣族自治县气象局 Sea of clouds natural landscape forecasting procedure and system
CN107479112A (en) * 2017-07-07 2017-12-15 北京中交华安科技有限公司 Thick fog Forecasting Methodology, apparatus and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王凤娇,李昌义,王立静: "《单站气温短时预报的气候统计方法》", 《山东气象》 *
王建培: "强对流天气综合预报方法研究", 《中国优秀硕士学位论文全文数据库基础科学辑月刊》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113330334A (en) * 2019-01-31 2021-08-31 雅苒国际集团 Reducing the scale of weather forecasts
CN110488391B (en) * 2019-07-01 2021-05-04 佛山科学技术学院 Weather prediction system, method and storage medium for small area
CN110488391A (en) * 2019-07-01 2019-11-22 佛山科学技术学院 For the Weather prediction system of zonule, method and storage medium
CN110579821A (en) * 2019-08-02 2019-12-17 佛山科学技术学院 small-range weather forecast system and method based on machine vision and storage medium
CN110673146A (en) * 2019-10-12 2020-01-10 上海眼控科技股份有限公司 Weather prediction image detection method and device, computer equipment and readable storage medium
CN110705127A (en) * 2019-10-24 2020-01-17 上海米哈游网络科技股份有限公司 Weather conversion prediction method, device, equipment and storage medium
CN111242354A (en) * 2020-01-03 2020-06-05 拉扎斯网络科技(上海)有限公司 Method and device for wearable device, electronic device and readable storage medium
CN111832407B (en) * 2020-06-08 2022-03-15 中南民族大学 Laser radar starting-up automatic judging method, device and storage device
CN111832407A (en) * 2020-06-08 2020-10-27 中南民族大学 Laser radar starting-up automatic judging method, device and storage device
CN112684519A (en) * 2020-12-30 2021-04-20 北京墨迹风云科技股份有限公司 Weather forecasting method and device, computer equipment and storage medium
CN112684519B (en) * 2020-12-30 2022-07-05 北京墨迹风云科技股份有限公司 Weather forecasting method and device, computer equipment and storage medium
CN114663883A (en) * 2022-05-25 2022-06-24 中山职业技术学院 Point cloud data correction method and device, electronic equipment and storage medium
CN115439727A (en) * 2022-11-08 2022-12-06 杭州觅睿科技股份有限公司 Weather forecast method, system, device and readable storage medium

Also Published As

Publication number Publication date
WO2020024386A1 (en) 2020-02-06

Similar Documents

Publication Publication Date Title
CN109239808A (en) Weather forecast method, device, computer equipment and storage medium
Nguyen et al. Incorporating shading losses in solar photovoltaic potential assessment at the municipal scale
CN108965687B (en) Shooting direction identification method, server, monitoring method, monitoring system and camera equipment
CN109447260B (en) Local numerical weather forecast product correction method based on deep learning
Wang et al. The origin, evolution, and trajectory of large dust storms on Mars during Mars years 24–30 (1999–2011)
US20180275314A1 (en) Method and system for solar power forecasting
CN111815038A (en) Photovoltaic ultra-short term prediction method and system
Castillejo-Cuberos et al. Understanding solar resource variability: An in-depth analysis, using Chile as a case of study
AU2017261849A1 (en) "Solar power forecasting"
Mathe et al. PVNet: A LRCN architecture for spatio-temporal photovoltaic PowerForecasting from numerical weather prediction
US20140372360A1 (en) Determining Micro-Climates Based on Weather-Related Sensor Data from Mobile Devices
CN105842756B (en) A kind of thunderstorm information prediction method
CN107977407A (en) tile map storage method, device, storage medium and computer equipment
WO2017142894A1 (en) System and method for stadium seating selection
CN112039711B (en) Flow prediction method and equipment
CN110245773A (en) A kind of method that multi-source fact space-time predictor extracted and be included in interpretation of scheme application
CN113420939A (en) Cloud picture forecasting method, equipment and storage medium
KR20220102329A (en) Apparatus and method for forecasting the seasonal forest fire risk
US10502866B2 (en) Systems and methods for simulating time phased solar irradiance plots
CN118018112B (en) Star-earth laser communication task capability analysis method, device, system and medium
CN111402327A (en) Outdoor photo sun position estimation method based on full convolution neural network
Alonso et al. Determination of the sun area in sky camera images using radiometric data
FR3019408A1 (en) METHOD FOR PREDICTING SOLAR RADIATION ON THE GROUND IN THE VICINITY OF A SITE
CN104410658B (en) Fixed-point environment state forecast method and apparatus
CN108280887B (en) Shadow map determination method and device

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: 20190118

RJ01 Rejection of invention patent application after publication