@@ -11,21 +11,30 @@ sn = load_network("Example Network", joinpath(data_path, "campaspe_network.yml")
1111
1212# Load climate data
1313date_format = " YYYY-mm-dd"
14- climate_data = CSV. File (joinpath (data_path, " climate/climate_historic.csv" ),
15- comment= " #" ,
16- dateformat= date_format) |> DataFrame
14+ climate_data = CSV. read (
15+ joinpath (data_path, " climate/climate_historic.csv" ),
16+ DataFrame;
17+ comment= " #" ,
18+ dateformat= date_format
19+ )
1720
1821dam_level_fn = joinpath (data_path, " gauges/406000_historic_levels_for_fit.csv" )
1922dam_releases_fn = joinpath (data_path, " gauges/406000_historic_outflow.csv" )
20- hist_dam_levels = CSV. File (dam_level_fn, dateformat= date_format) |> DataFrame
21- hist_dam_releases = CSV. File (dam_releases_fn, dateformat= date_format) |> DataFrame
23+
24+ @info dam_level_fn
25+ @info dam_releases_fn
26+
27+ hist_dam_levels = CSV. read (dam_level_fn, DataFrame; dateformat= date_format)
28+ hist_dam_releases = CSV. read (dam_releases_fn, DataFrame; dateformat= date_format)
2229
2330rename! (hist_dam_releases, [" 406000_outflow_[ML]" => " 406000_releases_[ML]" ])
2431
2532# Subset to same range
26- climate_data, hist_dam_levels, hist_dam_releases = Streamfall. align_time_frame (climate_data,
27- hist_dam_levels,
28- hist_dam_releases)
33+ climate_data, hist_dam_levels, hist_dam_releases = Streamfall. align_time_frame (
34+ climate_data,
35+ hist_dam_levels,
36+ hist_dam_releases
37+ )
2938
3039climate = Climate (climate_data, " _rain" , " _evap" )
3140
0 commit comments