-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from QuaSi-Software/feature_DateTime_timestamps
Enhance time handling and profile definition with datetime indexes and improved profile conversion. Version bump to v0.10.1 with the following changes: * Change handling and definition of timesteps by introducing datetime indexes for profiles and for internal handling: * Profile values in ReSiE are now defined as the mean/sum of the timespan following the current timestep. This affects mainly the weather data from a global weather file. If this is not used, any definition can be used, the provided profiles just have to be consistent. * Simulation start and end time have to be given as datetime now. * Simulation time step can now be given in multiple time formats: seconds, minutes, hours * Profiles now have to be referenced in time and have to cover the simulation start and end time. * Major restructuring of profile definition: Can now be startdate & timestepsize, startdate & timestamp or a datestamp with custom format. * Add parameter "data_type" in profiles and explicitly setting it as "intensive" or "extensive" values. "is_power" is no longer used. * Add parameter "time_shift_seconds" in profiles to manually shift profile data by a given time span * Add parameter "use_linear_segmentation" if linear and not stepwise interpolation should be used for segmentation. * Fix import of weather data to meet new time definition in ReSiE, especially for intensive values of EPW which are defined as values at the time indicated. * Add multi-year usage of weather data files. Weatherdata from weather file can have any year. * Improve segmentation and aggregation algorithms. Segmentation can now be either linear or stepwise (default) interpolation, depending on user input. * Add handling of daylight savings: Internally, ReSiE uses now local standard time. Profiles with a datestamp including DST are converted to local standard time. Output is always local standard time without DST. DST in EWP-Header will not be considered. * Add handling of leap days: They are ignored in all input and output. See documentation for details. * Line plot x-axis is now configurable to show seconds, hours or a datetime index. * Removed deprecated internal parameter "is_first_timestep" as this is now indicated by "time" that starts always at zero. * Add input of coordinates (optional) and reading and conversion of coordinates given in weather data files (default) * Add long wave irradiation as available profile for other components from weather file * Add and improve tests to cover profile conversion algorithms * Add default simulation parameters for tests * Add Julia packages Dates, TimeZones, Proj (for coordinate transformation) * For handling of timezones beyond 2038, files for a required recompilation of the package TimeZones and a description in the README has been included.
- Loading branch information
Showing
140 changed files
with
11,577 additions
and
10,521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
profiles/examples/district/PV_Stuttgart_10_east_Wh_per_square_meter.prf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
profiles/examples/district/PV_Stuttgart_10_west_Wh_per_square_meter.prf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
profiles/examples/district/PV_Stuttgart_30_south_Wh_per_square_meter.prf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
profiles/examples/district/ambient_temperature_TRY2015_Stuttgart.prf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
profiles/examples/district/custom_g-function_geothermal_probe.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
G-Function calculated using pygfunction (method: detailed, 8 segments) for a rectangular probe field with 14 x 42 probes. | ||
The following parameters were used for the calculation: | ||
borehole depth: 25 m | ||
borehole spacing: 10m | ||
borehole radius: 0.110 m | ||
borehole buried depth: 0.5 m | ||
ground thermal diffusivity: 8.745e-7 m2/s | ||
|
||
-- required parameter -- | ||
number_of_probes: 588 | ||
|
||
-- data -- | ||
*** | ||
-10.00145149; 0.11692829 | ||
-8.94596669; 0.41193769 | ||
-8.14783289; 0.72741733 | ||
-7.43977885; 1.04239484 | ||
-6.77167086; 1.35456167 | ||
-6.12303267; 1.6636677 | ||
-5.48431457; 1.9692851 | ||
-4.8507645; 2.27040199 | ||
-4.2199379; 2.56536842 | ||
-3.59055521; 2.85187927 | ||
-2.96194048; 3.12710942 | ||
-2.33373489; 3.39514679 | ||
-1.70574749; 3.70511843 | ||
-1.07787648; 4.16232799 | ||
-0.45006758; 4.85421046 | ||
0.17770816; 5.78990079 | ||
0.80546621; 6.85174471 | ||
1.43321481; 7.82223272 | ||
2.06095838; 8.54142114 | ||
2.68869925; 9.00468145 | ||
3.31643868; 9.28612476 | ||
3.94417735; 9.45217429 | ||
4.57191561; 9.54634024 | ||
5.19965365; 9.59695471 | ||
5.82739157; 9.62246368 | ||
6.45512943; 9.63445433 | ||
7.08286726; 9.63974592 |
7 changes: 5 additions & 2 deletions
7
profiles/examples/district/demand_electricity_85Living_15Business_Wh_per_square_meter.prf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
...es/examples/district/demand_heating_and_water_25Living_75Business_Wh_per_square_meter.prf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
...es/examples/district/demand_heating_and_water_85Living_15Business_Wh_per_square_meter.prf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
profiles/examples/district/demand_heating_and_water_temp_60_const.prf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
profiles/examples/general/src_heat_maxpow_dailyvar_lo-amp.prf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.