forked from toddkarin/pvtools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.py
111 lines (93 loc) · 3.11 KB
/
home.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import dash_bootstrap_components as dbc
from dash import Dash, dcc, html, Input, Output, callback
from app import app
# Initialize the app - incorporate css
# external_stylesheets = [dbc.themes.BOOTSTRAP]
# app = Dash(__name__, external_stylesheets=external_stylesheets)
layout = dbc.Container([
dbc.Row([
dbc.Col([
html.H2('About'),
html.P(
"""PVTOOLS is a set of web applications and
python libraries for photovoltaic-specific
applications. This work is funded by the Duramat coalition.
"""
)
],
md=4,
# width=4
),
dbc.Col([
html.H2([
"IV Curve Correction Tool ",
dbc.Badge("New!", color="success")]
),
html.P(
""" Tools for IV curve correction based on IEC 60891:2021 procedures and Pdynamic for healthy or degraded PV modules
"""
),
html.Div([
html.A( dbc.Button("Launch Tool", color="secondary"),
href='iv-curve-correction-tool'
)
]),
html.P(""),
html.A(
html.Img(
src=app.get_asset_url(
'ivcorrection.png'),
style={'width': '70%'}),
href='iv-curve-correction-tool'
),
html.P(""),
html.H2(["String Length Calculator "]),
html.P(
"""The string length calculator is an industry
standard tool for calculating the maximum string
length for a PV system in a given location.
"""
),
html.Div([
html.A( dbc.Button("Launch Tool", color="secondary"),
href='string-length-calculator'
)
]),
html.A(
html.Img(
src=app.get_asset_url(
'string_length_screenshot.png'),
style={'width': '70%'}),
href='string-length-calculator'
),
html.H2([
"Photovoltaic Climate Zones "]
),
html.P(
"""Explore the geographic distribution of
environmental stress on solar photovoltaics.
"""
),
html.Div([
html.A( dbc.Button("Launch Tool", color="secondary"),
href='pv-climate-stressors'
)
]),
html.P(""),
html.A(
html.Img(
src=app.get_asset_url(
'pvcz_screenshow2.jpg'),
style={'width': '70%'}),
href='pv-climate-stressors'
),
html.P(''),
html.P(''),
],
),
]),
])
if __name__ == "__main__":
app.layout = html.Div(layout)
app.run_server()
# app.run(debug=True)