data_sources.sun

Sun Data Source i.e azimuth and elevation angles

data_sources.sun.sun_model

Model for Sun features

SunML Objects

class SunML(DataSourceOutputML)

Model for Sun features

elevation_shape

@validator("sun_elevation_angle")
def elevation_shape(cls, v, values)

Validate 'sun_elevation_angle'.

This is done by change shape is the same as the "sun_azimuth_angle"

sun_datetime_index_shape

@validator("sun_datetime_index")
def sun_datetime_index_shape(cls, v, values)

Validate 'sun_datetime_index'.

This is done by checking last dimension is the same as the last dim of 'sun_azimuth_angle' i.e the time dimension

get_datetime_index

def get_datetime_index()

Get the datetime index of this data

from_xr_dataset

@staticmethod
def from_xr_dataset(xr_dataset)

Change xr dataset to model. If data does not exist, then return None