WO2021091495A1 - Method for inquiring weather data, and electronic device and storage medium thereof - Google Patents

Method for inquiring weather data, and electronic device and storage medium thereof Download PDF

Info

Publication number
WO2021091495A1
WO2021091495A1 PCT/SG2020/050641 SG2020050641W WO2021091495A1 WO 2021091495 A1 WO2021091495 A1 WO 2021091495A1 SG 2020050641 W SG2020050641 W SG 2020050641W WO 2021091495 A1 WO2021091495 A1 WO 2021091495A1
Authority
WO
WIPO (PCT)
Prior art keywords
weather
inquiry
weather data
key
various
Prior art date
Application number
PCT/SG2020/050641
Other languages
English (en)
French (fr)
Inventor
Liyi WANG
Deyun Wu
Original Assignee
Envision Digital International Pte. Ltd.
Shanghai Envision Digital 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 Envision Digital International Pte. Ltd., Shanghai Envision Digital Co., Ltd. filed Critical Envision Digital International Pte. Ltd.
Publication of WO2021091495A1 publication Critical patent/WO2021091495A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/907Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/909Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location

Definitions

  • the present disclosure relates to the field of data processing, and in particular, to a method for inquiring weather data, and an electronic device and a storage medium thereof.
  • Weather data is indispensable data information in life, and needs to be processed to obtain weather data information that affects people's production and life.
  • the weather data is parsed in such a way that a weather data file stored in a GRIB or NC format is transferred using an FTP protocol; by triggering a parsing task distributor, the reaching data file is processed as soon as the data file reaches; and then a linear decoding-execution pool receives the data file and parses data.
  • a writing task distributor distributes the data to a writing task, and the data is written to a storage server in a linear writing -execution pool.
  • the parsed data is stored in a Cassandra database.
  • the weather data has a multi -dimensional index structure. For each type of data, one data value may be uniquely determined by one multi-dimensional index.
  • specific data may be uniquely determined by a physical quantity, a level, a report time and a forecast time.
  • the present disclosure provides a method for inquiring weather data, and an electronic device and a storage medium thereof.
  • a method for inquiring weather data includes:
  • the inquiry key contains location information and time information, wherein the location information is intended to indicate a geographic location of the weather data, and the time information is intended to indicate a time period corresponding to the weather data; and [0009] inquiring a database based on the inquiry key to obtain the weather data stored correspondingly to the inquiry key, wherein the database is a key-value database in which the weather data is stored as values, and the weather data is a weather forecast value in the form of a float array.
  • an electronic device for inquiring weather data includes:
  • a memory configured to store at least one executable instruction
  • the at least one executable instruction when executed by the processor, causes the processor to perform a method including:
  • the inquiry key contains location information and time information, wherein the location information is intended to indicate a geographic location of the weather data, and the time information is intended to indicate a time period corresponding to the weather data; and [0016] inquiring a database based on the inquiry key to obtain the weather data stored correspondingly to the inquiry key, wherein the database is a key-value database in which the weather data is stored as values, and the weather data is a weather forecast value in the form of a float array.
  • a computer-readable storage medium contains at least one executable instruction.
  • the at least one executable instruction when loaded and executed by a processor of an electronic device, causes the electronic device to perform a method including:
  • the inquiry key contains location information and time information, wherein the location information is intended to indicate a geographic location of the weather data, and the time information is intended to indicate a time period corresponding to the weather data; and [0020] inquiring a database based on the inquiry key to obtain the weather data stored correspondingly to the inquiry key, wherein the database is a key-value database in which the weather data is stored as values, and the weather data is a weather forecast value in the form of a float array.
  • the weather inquiry request is received from the inquiry terminal, wherein the weather inquiry request is intended to inquire the weather data; the inquiry key is generated based on the weather inquiry request, wherein the inquiry key contains the location information and the time information, wherein the location information is intended to indicate the geographic location of the weather data, and the time information is intended to indicate the time period corresponding to the weather data; and the database is inquired based on the inquiry key to obtain the weather data stored correspondingly to the inquiry key, wherein the database is the key-value database in which the weather data is stored as the value, and the weather data is the weather forecast value in the form of the float array.
  • a corresponding weather forecast value may be directly inquired from the database by inputting the geographic location and the time period, and the problem that it needs to parse the weather data file to determine corresponding weather data when the inquiry is performed based on the latitude and longitude is solved.
  • the data inquiry efficiency is improved.
  • FIG. 1 is a diagram of an implementation environment according to one exemplary embodiment
  • FIG. 2 is a flowchart of a method for inquiring weather data according to one exemplary embodiment
  • FIG. 3 is a flowchart of a method for inquiring weather data inquiry method according to another exemplary embodiment
  • FIG. 4 is a diagram of inquiring weather data according to one exemplary embodiment
  • FIG. 5 is a block diagram of an apparatus for inquiring weather data according to one exemplary embodiment.
  • FIG. 6 is a structural diagram of a computer device according to one exemplary embodiment.
  • the term "plurality” herein refers to two or more.
  • the term “and/or” herein describes the correspondence of the corresponding objects, indicating three kinds of relationship.
  • a and/or B can be expressed as: A exists alone, A and B exist concurrently, B exists alone.
  • the character "/” generally indicates that the context object is an "OR” relationship.
  • the Key-Value database is a non-relational database and is a database that stores data in key-value pairs and is similar to map in java.
  • the entire database may be understood as big map and each key corresponds to a unique value.
  • the row key is the form of a key in the Key-Value database and is stored in the mode of a row of bytes.
  • Each weather source releases forecasts at an interval of 6, 12 or 24 hours.
  • Each forecast batch corresponds to a report time, which is a start time of the batch forecast.
  • the weather source is certain weather product that releases weather data at certain intervals.
  • the fde transfer protocol (FTP) server is a computer that provides a storage space on the Internet and provides services using FTP.
  • the FTP is a protocol specifically for file transfer.
  • a server supporting the FTP is the FTP server.
  • the FTP is a data transfer protocol that is responsible for exchanging data on our computer with server data. For example, to transfer a website program, which is created on a computer, onto the server, it needs to use an FTP tool to transfer data to the server from the computer.
  • the FTP is a protocol for transferring files between two computers on a TCP/IP network.
  • the FTP is one of the earliest protocols used on the TCP/IP network and the Internet and belongs to application layers of a network protocol suite.
  • FIG. 1 is a diagram of an implementation environment shown according to one exemplary embodiment.
  • the implementation environment includes a client 120 and a server 140.
  • the client 120 and the server 140 are connected via a wired or wireless network.
  • the server 140 is a server cluster or a cloud computing center composed of one server or several servers.
  • the wireless or wired network above uses a standard communication technology and/or protocol.
  • the network is usually the Internet, but may also be any network which includes, but is not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or a virtual private network, or any combination thereof.
  • LAN local area network
  • MAN metropolitan area network
  • WAN wide area network
  • mobile, wired or wireless network a private network or a virtual private network, or any combination thereof.
  • data exchanged over the network is represented by technologies and/or formats including Hypertext Markup Language (HTML), and an Extensible Markup Language (XML).
  • HTML Hypertext Markup Language
  • XML Extensible Markup Language
  • SSL Secure Socket Layer
  • TLS Transport Layer Security
  • VPN virtual private network
  • IPsec Internet Protocol Security
  • FIG. 2 is a flow chart of a weather data inquiry method shown according to one exemplary embodiment.
  • the weather data inquiry method may be applied to a server.
  • the weather data is inquired by the server and an inquiry result is output at a client.
  • this client may be the client 120 shown in FIG. 1 and this server may be the server 140 shown in FIG. 1.
  • the method may include the following steps.
  • step 201 a weather inquiry request is received from an inquiry terminal, wherein the weather inquiry request is intended to inquire weather data.
  • an inquiry key is generated based on the weather inquiry request, wherein the inquiry key contains location information and time information, the location information is intended to indicate a geographic location of the weather data, and the time information is intended to indicate a time period corresponding to the weather data.
  • a database is inquired based on the inquiry key to obtain the weather data stored correspondingly to the inquiry key, wherein the database is a key-value database in which the weather data is stored as values, and the weather data is a weather forecast value in the form of a float array.
  • the step that the inquiry key is generated based on the weather inquiry request includes:
  • condition information corresponding to the various inquiry conditions , wherein the condition information contains the location information and the time information;
  • the various inquiry conditions further include at least one of a weather source category and a weather attribute.
  • the condition information corresponding to the various inquiry conditions further includes a weather source category code.
  • the condition information corresponding to the various inquiry conditions further includes a weather attribute code.
  • the geographic information is an ascending int variable
  • the weather source category code is an ascending byte variable
  • the weather attribute code is an ascending byte variable
  • the step that the database is inquired based on the inquiry key to obtain the weather data stored correspondingly to the inquiry key includes:
  • the time information only includes a report time
  • the time information includes a report time and a duration
  • the method further includes:
  • acquiring a weather data file wherein the weather data file is a GRIB-format file or an NC-format file;
  • the weather inquiry request is received from the inquiry terminal, wherein the weather inquiry request is intended to inquire the weather data;
  • the inquiry key is generated based on the weather inquiry request, wherein the inquiry key contains the location information and the time information, wherein the location information is intended to indicate the geographic location of the weather data, and the time information is intended to indicate the time period corresponding to the weather data;
  • the database is inquired based on the inquiry key to obtain the weather data stored correspondingly to the inquiry key, wherein the database is the key-value database in which the weather data is stored as the value, and the weather data is the weather forecast value in the form of the float array.
  • a corresponding weather forecast value may be directly inquired from the database by inputting the geographic location and the time period, and the problem that it needs to parse the weather data file to determine corresponding weather data when the inquiry is performed based on the latitude and longitude is solved.
  • the data inquiry efficiency is improved.
  • FIG. 3 is a flowchart of a method for inquiring weather according to another exemplary embodiment.
  • the method is applicable to a server.
  • the weather data is inquired by the server and an inquiry result is output at a client.
  • this client may be the client 120 shown in FIG. 1 and this server may be the server 140 shown in FIG. 1.
  • the method may include the following steps.
  • step 301 a weather data file is acquired.
  • the local server acquires the weather data files by downloading original weather data files of different weather sources and storing the downloaded weather data files in the local server.
  • the weather data file generally is a GRIB-format file or an NC-format file.
  • the server may download the weather data file from the outside using file transfer protocols including the HTTP or SFTP, store the weather data file in a local folder, and upload the weather data file downloaded locally to a file backup data warehouse of the local server for backing up the weather data file.
  • the sources of the weather data files may be different weather sources which may be weather products including a self-developed certain weather product or a product of a well-known weather bureau.
  • step 302 the weather data file is parsed to obtain the weather data and condition information which corresponds to various inquiry conditions and corresponds to the weather data in the weather data file.
  • the local server parses the downloaded weather data file to obtain, from the weather data file, the weather data and condition information which corresponds to various inquiry conditions and corresponds to the weather data.
  • the weather data obtained from the weather data file may be location information, time information, a weather source category and a weather attribute.
  • the inquiry conditions may include a location or time.
  • the location may be divided by a city or by specific latitude and longitude values, and the time here may refer to a time point or a period of time.
  • the local server may obtain, by parsing, all location information, all weather attributes, and forecast values of all weather attributes of a certain location at certain time in this file.
  • forecast values of all weather attributes corresponding to the inquiry conditions that the location is Beijing and the time is 1 pm on June 1, 2019 may be obtained by parsing.
  • Forecast values of all weather attributes corresponding to the inquiry conditions that the location is Beijing and the time is 1 pm to 4 pm on June 1, 2019 may be obtained by parsing.
  • step 303 the condition information corresponding to the various inquiry conditions as a key and the weather data as a value are correspondingly stored in the database.
  • the local server may obtain the corresponding condition information by inputting location information or time information, wherein the condition information includes the time information, the location information, weather source category information and weather attribute information.
  • the weather data constitutes a row key in the form a float array, and is stored, as a corresponding forecast value, in a Key-Value database.
  • the row key may be set as shown in the following table.
  • a byte string shown in table 1 includes a 4-byte coordinate point, a 1-byte weather source category code, a 1- byte weather attribute code, 1-byte report time information and 2-byte report date information.
  • Geographic information is an ascending int variable; the weather source category code is an ascending byte variable; and the weather attribute code is an ascending byte variable.
  • the geographic information may be a specific longitude and latitude point which may be expressed in the form of a coordinate point index.
  • the coordinate points are in one-to-one correspondence with ascending integer numbers starting from 0, and an obtained corresponding relationship between the coordinate points and the ascending integer numbers is stored in a document database.
  • the weather source category codes and weather attribute codes are also in one-to-one correspondence with ascending integer numbers starting from 0, and an obtained corresponding relationship between the weather source category codes and the ascending integer numbers as well as an obtained corresponding relationship between the weather attribute codes and the ascending integer numbers are both stored in a document database.
  • a weather inquiry request is received from an inquiry terminal.
  • the weather inquiry request is sent to a server-side and the server-side receives the sent weather inquiry request.
  • the request to inquire the weather data is sent at the client, and the server side may receive the weather inquiry request and responds in preparation for the next inquiry step.
  • step 305 various inquiry conditions corresponding to the weather inquiry request are acquired based on the weather inquiry request, wherein the various inquiry conditions contain a geographic location of the weather data and a time period corresponding to the weather data.
  • weather inquiry conditions in this weather inquiry request are obtained.
  • the weather inquiry conditions here may include the geographic location of the weather data and the time period corresponding to the weather data.
  • the geographic location information may be a city name or a specific longitude or latitude point.
  • the time period corresponding to the weather data may be a report time and a duration starting from the report time, i.e., the number of forecast days.
  • the server side may receive information about that the client needs to inquire all the weather forecast values of Beijing from June 1, 2019 to June 10, 2019.
  • step 306 condition information corresponding to the various inquiry conditions is acquired, wherein the condition information contains the location information and the time information.
  • condition information corresponding to the inquiry conditions may be acquired based on the acquired inquiry conditions.
  • the location information may be obtained from the geographic location and the time information may be obtained from the time period corresponding to the weather data.
  • the server side receives the information about that the client needs to inquire all weather forecast values of Beijing from June 1, 2019 to June 10, 2019, the specific latitude and longitude point corresponding to Beijing, the corresponding coordinate point and the number corresponding to the coordinate point may be inquired in the document database to acquire the location information.
  • the time information may be acquired.
  • step 307 the condition information corresponding to the various inquiry conditions is combined to obtain the inquiry key.
  • the inquiry key is input inquiry information which may be the location information and the time information.
  • inquiry information which may be the location information and the time information.
  • the corresponding codes of the corresponding location and time in the database are acquired and constitute the inquiry key.
  • the corresponding forecast value may be found in the Key -Value database using the inquiry key.
  • step 308 in the case that the time information only includes the report time, the database is inquired based on the inquiry key to obtain weather data which is stored correspondingly to the inquiry key and corresponds to a pre-set duration after the report time; or in the case that the time information includes the report time and the duration, a database is inquired based on the inquiry key to obtain weather data which is stored correspondingly to the inquiry key and corresponds to the duration after the report time, and the report time is a byte variable.
  • the corresponding weather forecast values obtained under two inquiry conditions are introduced, which are as follows: when the time information in the input inquiry information is the report time, based on the inquiry key, the weather data corresponding to the pre-set duration after the report time may be obtained by inquiring the database that stores the weather data previously; and when the time information in the input inquiry information is the report time and the duration, based on the inquiry key, the weather data corresponding to the duration after the report time may be obtained by inquiring the database that stores the weather data.
  • corresponding relationships for two inquires may be set as two interfaces which may be expressed specifically as follows:
  • localhost:8080 indicates the IP address and the port number
  • GFS indicates that the weather source to be accessed is GFS
  • WS indicates that the weather attribute is the wind speed (WS)
  • startTime/2019-06-01T00:00:00 indicates that the report time starts from 0:00 on June 1, 2019
  • This interface indicates that the future forecasts of the weather attribute, i.e., WS, which are released by the GFS at the location, i.e., longitude 92 and latitude 39, from the release time, i.e., 0:00 on June 1, 2019, are accessed.
  • Output future forecast values may be an array with the length of 181, for example, [3.5212, 3.6531...], which represents wind speeds at 0:00, 1:00, ...
  • a user may inquire the corresponding forecast values by inputting, by the inquiry interface, a weather source needing to be accessed, a weather attribute needing to be inquired, a report time needing to be inquired, and the number of forecast days needed.
  • the user may obtain the future forecast values of the weather attribute, i.e., WS, by inputting the weather source, i.e., GFS, the report time, i.e., 0:00 on June 1, 2019, the forecast duration, i.e., 10 days.
  • the requested times obtained are 0:00 on June 1, 2019, 0:00 on June 2, 2019, ..., times of 10 days in total and the hour is 0:00. Since there are 181 forecast values at each time, finally, the user may obtain a two- dimensional array of 10 * 181.
  • the electric energy production of a wind driven generator when it is predicted, it needs to use an algorithm for predicting the electric energy production of the wind driven generator.
  • the necessary condition for implementing this algorithm is to know the wind speed in the future firstly.
  • the weather attribute here is the wind speed.
  • the algorithm needs to perform model training for weather data that is forecast at 0:00 every day, i.e.
  • the weather data may also be forecast at 6:00 every day.
  • the algorithm needs to perform model training for weather data of the release batch at 6:00 every day in history.
  • the time information includes the report time
  • the weather data corresponding to the pre set duration after the report time may be obtained by inquiring the Key-Value database based on the inquiry key.
  • weather forecasts needs to be presented on a large LED screen every day. This requires the time information to include the report time and the duration.
  • the weather data corresponding to the duration after the report time may be obtained by inquiring the Key-Value database using the inquiry key.
  • the weather inquiry request is received from the inquiry terminal, wherein the weather inquiry request is intended to inquire the weather data;
  • the inquiry key is generated based on the weather inquiry request, wherein the inquiry key contains the location information and the time information, wherein the location information is intended to indicate the geographic location of the weather data, and the time information is intended to indicate the time period corresponding to the weather data;
  • the database is inquired based on the inquiry key to obtain the weather data stored correspondingly to the inquiry key, wherein the database is the key-value database in which the weather data is stored as the value, and the weather data is the weather forecast value in the form of the float array.
  • a corresponding weather forecast value may be directly inquired from the database by inputting the geographic location and the time period, and the problem that it needs to parse the weather data file to determine corresponding weather data when the inquiry is performed based on the latitude and longitude is solved.
  • the data inquiry efficiency is improved.
  • FIG. 4 is a diagram for weather data inquiry shown according to one exemplary embodiment. As shown in FIG. 4, the technical framework of this solution is as follows.
  • a user downloads an original weather data file using a file transfer protocol SFTP/HTTP.
  • the original weather data file is obtained based on different weather sources 41.
  • the weather source 41 may be a self-produced weather source 41a or a well-known product 4 lb of the weather bureaus such as the ECMWF/GFS.
  • the original weather data file provided is a GRIB/NC -format file.
  • a server 42 After receiving the above GRIB/NC-format file, a server 42 will back up the file to a file backup data warehouse 43d in a memory 43 of the server and at the same time, a data-parsing task distribution timer 42a in the server sends a message of the parsing task to message middleware 42d at a fixed time interval.
  • the message middleware 42d responds to the task, and the original weather data file is downloaded and parsed by a weather file parser 42b. If the parsing has not been completed, a parsing delay alarm 42c will give a parsing delay alarm.
  • the weather data and a corresponding relationship between the inquiry key and a forecast value, which are obtained after parsing, are stored in a Key-Value database 43a.
  • a corresponding relationship between geographic information and numbers, a corresponding relationship between weather source categories and numbers, and a corresponding relationship between weather attributes and numbers in the weather data are all stored in a document database 43b.
  • a client 44 may inquire a corresponding forecast value in the database by a single-time inquiry interface 44a and a continuous multi-time inquiry interface 44c.
  • the GFS releases a batch at 0:00 every day which includes 181 files in total and covers data from 0:00 to several days later.
  • the time represented by these 181 files is 0:00, 1:00, 2:00, ..., respectively.
  • the GFS releases a batch again at 6:00 on the same day, which covers files from 6:00 to the same number of days later, and the time represented by these files is 6:00, 7:00, ..., respectively.
  • a big overlap is defined between these two release times.
  • the overlap time needs to be stored, each file contains all latitude and longitude data and all weather attribute data, and the latitude and longitudes and weather attributes which are contained in various files are the same.
  • 181 forecast values of each of latitudes and longitudes and weather attributes is sorted out by parsing. That is, for the batch at 0:00, there are 65160*5 row keys, each row key corresponds to a float array and there are 181 values in each float array. Data of the other batches is also stored in the same manner.
  • FIG. 5 is a block diagram of an apparatus for inquiring weather data according to one exemplary embodiment.
  • the apparatus may be practiced as all or part of a server by hardware or a combination of software and hardware to perform the steps illustrated in any embodiment shown in FIG. 2 or FIG. 3.
  • this client may be the client 120 shown in FIG. 1 and this server may be the server 140 shown in FIG. 1.
  • the weather data inquiry device may include:
  • a request receiving module 501 configured to receive a weather inquiry request from an inquiry terminal, wherein the weather inquiry request is intended to inquire weather data;
  • an inquiry key generating module 502 configured to generate an inquiry key based on the weather inquiry request, wherein the inquiry key contains location information and time information, the location information is intended to indicate a geographic location of the weather data, and the time information is intended to indicate a time period corresponding to the weather data; and
  • a data acquiring module 503 configured to inquire a database based on the inquiry key to obtain the weather data stored correspondingly to the inquiry key, wherein the database is a key-value database in which the weather data is stored as values, and the weather data is a weather forecast value in the form of a float array.
  • the inquiry key generating module includes:
  • a condition acquiring sub-module configured to acquire various inquiry conditions corresponding to the weather inquiry request based on the weather inquiry request, wherein the various inquiry conditions contain the geographic location of the weather data and the time period corresponding to the weather data;
  • an information acquiring sub-module configured to acquire condition information corresponding to the various inquiry conditions, wherein the condition information contains the location information and the time information; and [00122] an inquiry key acquiring sub-module, configured to combine the condition information corresponding to the various inquiry conditions to obtain the inquiry key.
  • the various inquiry conditions further include at least one of a weather source category and a weather attribute;
  • the condition information corresponding to the various inquiry conditions further includes a weather source category code
  • the condition information corresponding to the various inquiry conditions further includes a weather attribute code.
  • the geographic information is an ascending int variable
  • the weather source category code is an ascending byte variable
  • the weather attribute code is an ascending byte variable
  • the data acquiring module includes:
  • a first data acquiring sub-module configured to: when the time information only includes a report time, inquire a database based on the inquiry key to obtain weather data which is stored correspondingly to the inquiry key and corresponds to a pre-set duration after the report time;
  • a second data acquiring sub-module configured to: in the case that the time information includes a report time and a duration, inquire a database based on the inquiry key to obtain weather data which is stored correspondingly to the inquiry key and corresponds to the duration after the report time, and the report time is a byte variable.
  • the apparatus further includes:
  • a file acquiring module configured to acquire a weather data file, wherein the weather data file is a GRIB-format file or an NC-format file;
  • a file parsing module configured to parse the weather data file to obtain the weather data and condition information which corresponds to various inquiry conditions and corresponds to the weather data in the weather data file; and [00134] a storing module, configured to correspondingly store the condition information corresponding to various inquiry conditions as a key and the weather data as a value in the database.
  • One exemplary embodiment of the present disclosure provides an electronic device for inquiring weather data.
  • the electronic device may be practiced as all or part of a server by hardware or a combination of software and hardware to perform the steps illustrated in any embodiment shown in FIG. 2 or FIG. 3.
  • this client may be the client 120 shown in FIG. 1 and this server may be the server 140 shown in FIG. 1.
  • the electronic device includes a processor, and a memory for storing at least one executable instruction.
  • the at least one executable instruction when executed by the processor, causes the processor to perform steps of:
  • generating an inquiry key based on the weather inquiry request wherein the inquiry key contains location information and time information, wherein the location information is intended to indicate a geographic location of the weather data, and the time information is intended to indicate a time period corresponding to the weather data; and [00141] inquiring a database based on the inquiry key to obtain the weather data stored correspondingly to the inquiry key, wherein the database is a key-value database in which the weather data is stored as values, and the weather data is a weather forecast value in the form of a float array.
  • generating the inquiry key based on the weather inquiry request includes:
  • condition information corresponding to the various inquiry conditions, wherein the condition information contains the location information and the time information;
  • the various inquiry conditions further include at least one of a weather source category and a weather attribute;
  • the condition information corresponding to the various inquiry conditions further includes a weather source category code
  • the condition information corresponding to the various inquiry conditions further includes a weather attribute code.
  • the weather information is an ascending int variable
  • the weather source category code is an ascending byte variable
  • the weather attribute code is an ascending byte variable
  • inquiring the database based on the inquiry key to obtain the weather data stored correspondingly to the inquiry key includes:
  • the time information only includes a report time
  • the time information includes a report time and a duration
  • acquiring the database based on the inquiry key to obtain weather data which is stored correspondingly to the inquiry key and corresponds to the duration after the report time, and the report time is a byte variable.
  • the at least one executable instruction when executed by the processor, causes the processor to perform steps of:
  • acquiring a weather data file wherein the weather data file is a GRIB- format file or an NC-format file;
  • FIG. 6 is a schematic structural diagram of a computer device in accordance with one exemplary embodiment.
  • the computer device 600 includes a central processing unit (CPU) 601, a system memory 604 including a random access memory (RAM) 602 and a read-only memory (ROM) 603, and a system bus 605 connecting the system memory 604 and the CPU 601.
  • CPU central processing unit
  • RAM random access memory
  • ROM read-only memory
  • the computer device 600 further includes a basic input/output system (I/O system) 606 which helps transmit information between various components within a computer, and a high-capacity storage device 607 for storing an operating system 613, an application 614 and other program modules 615.
  • I/O system basic input/output system
  • high-capacity storage device 607 for storing an operating system 613, an application 614 and other program modules 615.
  • the basic I/O system 606 includes a display 608 for displaying information and an input device 609, such as a mouse and a keyboard, for a user to input the information.
  • the display 608 and the input device 609 are both connected to the CPU 601 by an I/O controller 610 connected to the system bus 605.
  • the basic I/O system 606 may also include the I/O controller 610 for receiving and processing input from a plurality of other devices, such as a keyboard, a mouse and an electronic stylus. Similarly, the I/O controller 610 further provides output to a display screen, a printer or other types of output devices.
  • the high-capacity storage device 607 is connected to the CPU 601 by a high -capacity storage controller (not shown) connected to the system bus 605.
  • the high- capacity storage device 607 and its associated computer-readable medium provide non- volatile storage for the computer device 600. That is, the high-capacity storage device 607 may include a computer-readable medium (not shown), such as a hard disk or a CD- ROM drive.
  • the computer-readable medium may include a computer-readable storage medium and a communication medium.
  • the compute- readable r storage medium includes volatile and non-volatile, or removable and non removable media implemented in any method or technology for storage of information such as a computer-readable instruction, a data structure, a program module or other data.
  • the computer-readable storage medium includes a RAM, a ROM, an EPROM, an EEPROM, a flash memory or other solid-state storage technologies; a CD-ROM, DVD or other optical storage; and a tape cartridge, a magnetic tape, a disk storage or other magnetic storage devices.
  • the computer-readable storage medium is not limited to above.
  • the above system memory 604 and the high-capacity storage device 607 may be collectively referred to as the memory.
  • the computer device may also be connected to a remote computer on a network by the network, such as the Internet, for operation. That is, the computer device 600 may be connected to the network 612 by a network interface unit 611 connected to the system bus 605, or may be connected to other types of networks or remote computer systems (not shown) with the network interface unit 611.
  • the network such as the Internet
  • the memory further includes one or more programs stored in the memory.
  • the CPU 601 implements all or part of the steps of the method shown in FIG. 2 or FIG. 3 by executing the one or more programs.
  • the functions described in the embodiments of the present disclosure can be implemented in hardware, software, firmware, or any combination thereof.
  • the functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium.
  • the computer-readable medium includes both a computer-readable storage medium and a communication medium including any medium that facilitates transfer of a computer program from one location to another.
  • the storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
  • An embodiment of the present disclosure also provides a computer- readable storage medium configured to store at least one computer software instruction executable by the above testing apparatus, wherein the computer-readable software instruction includes a program designed for executing the weather data enquiring method.
  • the computer-readable software instruction includes a program designed for executing the weather data enquiring method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Navigation (AREA)
PCT/SG2020/050641 2019-11-07 2020-11-06 Method for inquiring weather data, and electronic device and storage medium thereof WO2021091495A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911081176.3 2019-11-07
CN201911081176.3A CN111090794B (zh) 2019-11-07 2019-11-07 气象数据查询方法、装置及存储介质

Publications (1)

Publication Number Publication Date
WO2021091495A1 true WO2021091495A1 (en) 2021-05-14

Family

ID=70393964

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/SG2020/050641 WO2021091495A1 (en) 2019-11-07 2020-11-06 Method for inquiring weather data, and electronic device and storage medium thereof

Country Status (2)

Country Link
CN (1) CN111090794B (zh)
WO (1) WO2021091495A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111679345A (zh) * 2020-05-18 2020-09-18 上海眼控科技股份有限公司 提取航空气象要素值的方法与设备
CN111581220A (zh) * 2020-05-28 2020-08-25 泰康保险集团股份有限公司 用于时间序列数据的存储及检索方法、装置、设备及存储介质
CN112214472B (zh) * 2020-09-02 2024-01-30 国家气象信息中心 气象格点数据的存储及查询方法、装置及存储介质
CN116186396B (zh) * 2023-01-14 2023-08-29 北京天译科技有限公司 基于生日的气象数据查询方法、存储介质及服务器

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376053A (zh) * 2014-11-04 2015-02-25 南京信息工程大学 一种基于海量气象数据的存储与检索方法
EP2874072A1 (en) * 2013-11-13 2015-05-20 Kona Limited Streaming weather animation
CN105468788A (zh) * 2015-12-29 2016-04-06 北京国能日新系统控制技术有限公司 Nco气象数据处理方法和系统
CN107066511A (zh) * 2017-01-20 2017-08-18 龚杰 一种分布式时间序列地理信息服务系统及方法
CN111125237A (zh) * 2019-12-25 2020-05-08 苏州视锐信息科技有限公司 一种基于NoSql数据库的气象数值预报产品动态成图方法

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7895651B2 (en) * 2005-07-29 2011-02-22 Bit 9, Inc. Content tracking in a network security system
CN102236878A (zh) * 2010-04-30 2011-11-09 上海博泰悦臻电子设备制造有限公司 基于应用设备的天气数据提供方法及天气数据服务系统
JP5728855B2 (ja) * 2010-09-07 2015-06-03 セイコーエプソン株式会社 印刷装置におけるデータ記憶処理装置、印刷装置及びデータ記憶処理方法
US20150010289A1 (en) * 2013-07-03 2015-01-08 Timothy P. Lindblom Multiple retail device universal data gateway
US10019484B2 (en) * 2013-07-17 2018-07-10 Google Llc Third party search applications for a search system
CN109815002A (zh) * 2017-11-21 2019-05-28 中国电力科学研究院有限公司 一种基于在线仿真的分布式并行计算平台及其方法
CN108595511B (zh) * 2018-03-23 2022-04-01 中国人民解放军91977部队 一种多样化气象水文数据分类存储处理方法和系统
CN109471863B (zh) * 2018-11-12 2021-07-20 北京懿医云科技有限公司 基于分布式数据库的信息查询方法及装置、电子设备
CN110086688A (zh) * 2019-04-18 2019-08-02 上海锵戈科技有限公司 一种多监测任务多目标高效ip端性能监测调度方法及系统
CN110209749A (zh) * 2019-04-29 2019-09-06 南瑞集团有限公司 一种基于HBase的地理信息查询方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2874072A1 (en) * 2013-11-13 2015-05-20 Kona Limited Streaming weather animation
CN104376053A (zh) * 2014-11-04 2015-02-25 南京信息工程大学 一种基于海量气象数据的存储与检索方法
CN105468788A (zh) * 2015-12-29 2016-04-06 北京国能日新系统控制技术有限公司 Nco气象数据处理方法和系统
CN107066511A (zh) * 2017-01-20 2017-08-18 龚杰 一种分布式时间序列地理信息服务系统及方法
CN111125237A (zh) * 2019-12-25 2020-05-08 苏州视锐信息科技有限公司 一种基于NoSql数据库的气象数值预报产品动态成图方法

Also Published As

Publication number Publication date
CN111090794A (zh) 2020-05-01
CN111090794B (zh) 2023-12-05

Similar Documents

Publication Publication Date Title
WO2021091495A1 (en) Method for inquiring weather data, and electronic device and storage medium thereof
US11569982B2 (en) Blockchain compression using summary and padding blocks
US5978842A (en) Distributed-client change-detection tool with change-detection augmented by multiple clients
US8108377B2 (en) Predictive resource identification and phased delivery of structured documents
CN104981768B (zh) 基于云的串流数据接收机和保存程序
US20120226785A1 (en) Setting Cookies in Conjunction with Phased Delivery of Structured Documents
CN110910165A (zh) 多渠道归因方法及相关设备
JP5923691B2 (ja) 物流クラウドシステムおよびプログラム
CN111651405A (zh) 配置文件管理方法、装置、设备及存储介质
JP2010267302A (ja) 物流管理システム、物流管理サーバ、物流管理方法、および物流管理のためのプログラム
CN113067709A (zh) 基于云服务的计费方法、装置、设备及可读存储介质
CN113726770B (zh) 数据拦截方法、装置、计算机设备及存储介质
CN106850242A (zh) 一种信息处理方法及装置
CN102984278A (zh) 实现浏览器数据同步的系统和方法
CN110737655B (zh) 用于上报数据的方法和装置
CN112685115A (zh) 国际提示语生成方法、系统、计算机设备及存储介质
JP2007156546A (ja) コンテンツリスト提供装置およびコンテンツリスト提供方法
CN109495561B (zh) 应用程序下载方法、装置、终端及存储介质
CN111131373A (zh) 呼吸机数据同步系统、方法、装置及存储介质
CN112788077A (zh) 数据采集方法、装置、计算机设备和计算机可读存储介质
CN113553133B (zh) 页面展示方法及系统
CN114285743B (zh) 更新配置信息的方法、装置、电子设备及存储介质
CN111158928B (zh) 分布式系统及通信方法
CN110971688B (zh) 一种数据导出方法及相关设备
CN113778423A (zh) 接口文档生成方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20883918

Country of ref document: EP

Kind code of ref document: A1

DPE1 Request for preliminary examination filed after expiration of 19th month from priority date (pct application filed from 20040101)
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20883918

Country of ref document: EP

Kind code of ref document: A1