Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
METRo projects
metro
Commits
371db5b3
Commit
371db5b3
authored
Mar 14, 2008
by
Miguel Tremblay
Browse files
Split the function __set_theoretical_flux in functions for IR and SF.
parent
93701f5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/frontend/executable_module/metro_preprocess_fsint2.py
View file @
371db5b3
...
...
@@ -95,8 +95,12 @@ class Metro_preprocess_fsint2(Metro_preprocess):
forecast_data
.
get_interpolated_data
(),
\
station_data
)
self
.
__print_info
()
self
.
__set_theoretical_flux
(
forecast_data
.
get_controlled_data
(),
\
forecast_data
.
get_interpolated_data
())
# SF
self
.
__set_sf
(
forecast_data
.
get_controlled_data
(),
\
forecast_data
.
get_interpolated_data
()
)
# IR
self
.
__set_ir
(
forecast_data
.
get_controlled_data
(),
\
forecast_data
.
get_interpolated_data
()
)
pForecast
.
set_data_collection
(
forecast_data
)
pStation
.
set_data
(
station_data
)
...
...
@@ -119,24 +123,6 @@ class Metro_preprocess_fsint2(Metro_preprocess):
self
.
fLon
=
station_data
.
get_longitude
()
self
.
__set_sunrise_sunset
(
wf_controlled_data
)
def
__set_theoretical_flux
(
self
,
wf_controlled_data
,
\
wf_interpolated_data
):
"""
The flux value of the forecast are calculated from the
position of the earth around the sun.
Notes: All times are in UTC. Since Sun.py gives times over 24h,
special case is done with %24 (January 15th 2006 modifications).
Parameters:
wf_controlled_data (metro_data) : controlled data. Read-only
wf_interpolated_data (metro_data) : container of the interpolated data.
"""
# SF
self
.
__set_sf
(
wf_controlled_data
,
wf_interpolated_data
)
# IR
self
.
__set_ir
(
wf_controlled_data
,
wf_interpolated_data
)
def
__print_info
(
self
):
"""
Print the information about the sunrise/sunset computed for this
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment