Rand Stats

DSL::Entity::WeatherData

zef:antononcube

Raku DSL::Entity::WeatherData

Raku grammar classes for weather data entities. (Variable- and station names.)


Installation

From Zef ecosystem:

zef install DSL::Entity::WeatherData

From GitHub:

zef install https://github.com/antononcube/Raku-DSL-Entity-WeatherData.git

Examples

Here are examples of recognizing different types of data acquisition related specifications:

use DSL::Entity::WeatherData;
use DSL::Entity::WeatherData::Grammar;
my $pCOMMAND = DSL::Entity::WeatherData::Grammar;
$pCOMMAND.set-resources(DSL::Entity::WeatherData::resource-access-object());

say $pCOMMAND.parse('MaxTemperature');
# 「MaxTemperature」
#  weather-data-entity-command => 「MaxTemperature」
#   entity-variable-name => 「MaxTemperature」
#    0 => 「MaxTemperature」
#     entity-name-part => 「MaxTemperature」
say $pCOMMAND.parse('cloud cover fraction');
# 「cloud cover fraction」
#  weather-data-entity-command => 「cloud cover fraction」
#   entity-variable-name => 「cloud cover fraction」
#    0 => 「cloud cover fraction」
#     entity-name-part => 「cloud」
#     entity-name-part => 「cover」
#     entity-name-part => 「fraction」
say $pCOMMAND.parse('KACQ');
# 「KACQ」
#  weather-data-entity-command => 「KACQ」
#   entity-station-name => 「KACQ」
#    0 => 「KACQ」
#     entity-name-part => 「KACQ」

References

Datasets

[WRI1] Wolfram Research (2007), WeatherData, (introduced 2007), (updated 2016), Wolfram Language function.

[WRI2] Wolfram Research, Inc., WeatherData Source Information.

Packages

[AAp1] Anton Antonov, DSL::Shared Raku package, (2020), GitHub/antononcube.

[AAp2] Anton Antonov, DSL::Entity::Geographics Raku package, (2021), GitHub/antononcube.

[AAp3] Anton Antonov, DSL::Entity::Jobs Raku package, (2021), GitHub/antononcube.

[AAp4] Anton Antonov, DSL::Entity::Foods Raku package, (2021), GitHub/antononcube.

[AAp5] Anton Antonov, Data::ExampleDatasets Raku package, (2021), GitHub/antononcube.