Midas Weather
Description
This package contains a midas module providing a simulator for weather data.
Although this package is intendet to be used with midas, it can be use it in any mosaik simulation scenario.
Installation
This package will usually be installed automatically together with midas-mosaik if you opt-in for the base extra.
It is available on pypi, you can install it manually with
pip install midas-weather
Usage
The complete documentation is available at https://midas-mosaik.gitlab.io/midas.
Inside of midas
To use the weather data inside of midas, add weather to your modules
my_scenario:
modules:
- weather
- ...
and configure it with
weather_params:
my_weather_scope:
weather_mapping:
WeatherCurrent:
- interpolate: true
randomize: true
If a store module is enabled, the weather module will automatically send all outputs to the store.
Any mosaik scenario
If you don't use midas, you can add the weather manually to your mosaik scenario file.
First, the entry in the sim_config:
sim_config = {
"WeatherData": {"python": "midas_weather.simulator:WeatherDataSimulator"},
# ...
}
Next, you need to define start_date and step_size.
The start_date is to be provided as ISO datestring and can anything between 2009 and 2022:
start_date = "2021-06-08 14:00:00+0000"
The step_size can be anything between 1 and 3600.
Higher values might be possible, but this is untested.
Now, the simulator can be started:
weather_sim = world.start("WeatherData", step_size=900, start_date=start_date)
Next, a weather data model can be started:
weather_model = weather_sim.WeatherCurrent(interpolate=True, randomize=True)
Finally, the model needs to be connected to other models:
world.connect(weather_model, other_entity, "t_air_deg_celsius", "wind_v_m_per_s")
License
This software is released under the GNU Lesser General Public License (LGPL). See the license file for more information about the details.
Metadata
Release files for midas-weather 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| midas_weather-2.1.0.tar.gz | 24.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| midas_weather-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.6 kB
Release files / midas_weather-2.1.0.tar.gz
| Download URL | midas_weather-2.1.0.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
789f367e61323d631f469450ac35015a409582278b0f332a50da0e8a07855bbc
|
|
BLAKE2b-256 checksum How to use checksums |
df42cf3cfd61cf7858de9f745ecf612535fa4cf94070a35078077be01505c9a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / midas_weather-2.1.0-py3-none-any.whl
| Download URL | midas_weather-2.1.0-py3-none-any.whl |
|---|---|
| Size | 22.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d63791f576347b035bc4c63e2c2ee9b2e800c672f441915130ae9fb7fa3eae13
|
|
BLAKE2b-256 checksum How to use checksums |
daeb4c2c00c04a0f5b99c249a1039fa57e2053400fa3d5b3d8c8a42d65a4e874
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Security for midas-weather 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.