@@ -92,8 +92,13 @@ period = [Dates.Date("2021-01-01"), Dates.Date("2021-12-31")]
9292meteo = get_weather(43.649777, 3.869889, period, sink = DataFrame)=#
9393
9494function get_simple_meteo_bank ()
95+
96+ df = CSV. read (joinpath (pkgdir (PlantSimEngine), " examples/meteo_day.csv" ), DataFrame, header= 18 )
97+
98+
9599 meteos=
96100 [#= nothing,=# Atmosphere (T= 20.0 , Wind= 1.0 , P= 101.3 , Rh= 0.65 , Ri_PAR_f= 300.0 ),
101+ Weather ([Atmosphere (T= 20.0 , Wind= 1.0 , P= 101.3 , Rh= 0.65 )]),
97102 Weather (
98103 [
99104 Atmosphere (T= 20.0 , Wind= 1.0 , Rh= 0.65 , Ri_PAR_f= 300.0 ),
@@ -107,9 +112,9 @@ function get_simple_meteo_bank()
107112 Atmosphere (T= 20.0 , Wind= 1.0 , Rh= 0.6 , Ri_PAR_f= 200.0 ),
108113 Atmosphere (T= 25.0 , Wind= 1.0 , Rh= 0.6 , Ri_PAR_f= 200.0 ),
109114 Atmosphere (T= 10.0 , Wind= 0.5 , Rh= 0.6 , Ri_PAR_f= 200.0 )]),
110-
111- CSV . read ( joinpath ( pkgdir (PlantSimEngine), " examples/meteo_day.csv " ), DataFrame, header = 18 ) ,
112-
115+ df,
116+ df[ 1 ,:] ,
117+ DataFrame (df[ 1 ,:]),
113118 ]
114119 return meteos
115120end
0 commit comments