TwoPhaseMethod
frads.TwoPhaseMethod
Bases: PhaseMethod
Implements two phase method.
Initializes the two phase method
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config
|
WorkflowConfig
|
A WorkflowConfig object |
required |
calculate_sensor
Calculate a sensor view.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sensor
|
str
|
A sensor name, must be loaded during configuration. |
required |
time
|
datetime
|
A datetime object |
required |
dni
|
float
|
Direct normal irradiance |
required |
dhi
|
float
|
Diffuse horizontal irradiance |
required |
Returns: Sensor illuminance value
calculate_sensor_from_wea
Calculate a sensor for tue duration of the weather file that's loaded during configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sensor
|
str
|
sensor name, must be loaded during configuration. |
required |
Returns: A numpy array containing a series of illuminance values
calculate_view
Calculate (render) a view. Args: view: A view name, must bed loaded during configuration. time: A datetime object dni: Direct normal irradiance dhi: Diffuse horizontal irradiance Returns: A image as a numpy array
calculate_view_from_wea
Render a series of images for a view. Rendering using the weather file loaded during configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
view
|
str
|
View name, must be loaded during configuration. |
required |
Returns: A numpy array containing a series of images