Skip to main content

common functions for muiscaenergy projects

Project description

Muisca Energy Commons

Common functions for muiscaenergy projects.

Time Series

Example usage: from datetime import datetime from muiscaenergy_common.src.timeseries.base import get_timeseries

ts_from = datetime(2023, 9, 30, 12, 0, 0)
ts_to = datetime(2023, 10, 1, 11, 0, 0)
freq = 'H'
lat = 52.5200
lon = 13.4050
tz = 'America/Los_Angeles'

# Get a TimeSeriesMessage object without notion of location
ts1 = get_timeseries(ts_from=ts_from,
                 ts_to=ts_to,
                 freq=freq)
print(ts1.df)

# Get a TimeSeriesMessage object with notion of location via lat and lon
ts2 = get_timeseries(ts_from=ts_from,
                 ts_to=ts_to,
                 freq=freq,
                 lat=lat,
                 lon=lon)
print(ts2.df)

# Get a TimeSeriesMessage object with notion of location via tz (timezone)
ts3 = get_timeseries(ts_from=ts_from,
                 ts_to=ts_to,
                 freq=freq,
                 tz=tz)
print(ts3.df)

Learning Material

Espanol

English

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

muiscaenergy_common-0.0.3.tar.gz (7.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page