Output
Meteole provides forecasts in pandas.DataFrame, a convenient standard format for integration into your modeling pipelines.
Processing Indicator Names in Output DataFrame
Indicator names are reprocessed by Meteole for the following reasons:
- Handling unknown column names:
Sometimes the column name is "unknown", in which case meteole generates a name by taking the first letters of the indicator name.
- Concatenation of height or pressure values:
To simplify output (mainly for retrieving multiple indicators), if the data includes height or pressure values, these are concatenated into the indicator name and the column is deleted. In this case, height (in meters) or pressure (in hPa) values are added to the base name.
For further details, please refer to the function :
(Protected) Return the forecast's data for a given time and indicator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
coverage_id
|
str
|
the indicator. |
required |
height
|
int
|
height in meters |
required |
pressure
|
int
|
pressure in hPa |
required |
forecast_horizon
|
timedelta
|
the forecast horizon (how much time ahead?) |
required |
ensemble_number
|
int
|
For ensemble models only, number of the desired ensemble member. |
required |
lat
|
tuple
|
minimum and maximum latitude |
required |
long
|
tuple
|
minimum and maximum longitude |
required |
temp_dir
|
str | None
|
Directory to store the temporary file. Defaults to None. |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: The forecast for the specified time. |
Source code in meteole/forecast.py
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 | |