swvo.io.f10_7.swpc#

Module for handling F10.7 data from SWPC.

Classes

F107SWPC([data_dir, prefer_env_var])

This is a class for the SWPC F107 data.

class swvo.io.f10_7.swpc.F107SWPC(data_dir: Path | None = None, prefer_env_var: bool = False)[source]#

Bases: BaseIO

This is a class for the SWPC F107 data.

Methods

download_and_process()

Download and process the latest 30-day F10.7 data.

read(start_time, end_time, *[, download])

Read F10.7 SWPC data for the given time range.

Raises:
ValueError

Returns ValueError if necessary environment variable is not set.

download_and_process() None[source]#

Download and process the latest 30-day F10.7 data.

Returns:
None
read(start_time: datetime, end_time: datetime, *, download: bool = False) DataFrame[source]#

Read F10.7 SWPC data for the given time range.

Parameters:
start_timedatetime

Start time of the data to read. Must be timezone-aware.

end_timedatetime

End time of the data to read. Must be timezone-aware.

downloadbool, optional

Download data on the go, defaults to False.

Returns:
pandas.DataFrame

F10.7 data.

Raises:
ValueError

Raises ValueError if start_time is after end_time.