Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mayer
CircularGreenSimCity
Commits
8717c842
Commit
8717c842
authored
1 year ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Moves datetime index by 1h
parent
6f4999f8
master
eric_enrich_trees
gPMayer2-master-patch-26512
gPMayer2-master-patch-49202
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tree-water-demand/all_values.csv
+8754
-8754
tree-water-demand/all_values.csv
tree-water-demand/src/main/java/de/hft/stuttgart/water/TreeWaterDemand.java
+3
-3
...src/main/java/de/hft/stuttgart/water/TreeWaterDemand.java
with
8757 additions
and
8757 deletions
+8757
-8757
tree-water-demand/all_values.csv
+
8754
-
8754
View file @
8717c842
This diff is collapsed.
Click to expand it.
tree-water-demand/src/main/java/de/hft/stuttgart/water/TreeWaterDemand.java
+
3
-
3
View file @
8717c842
...
...
@@ -62,9 +62,9 @@ public class TreeWaterDemand
double
advection
=
1.6
;
double
tr
=
0.9
;
LocalDateTime
startOfYear
=
LocalDateTime
.
of
(
2005
,
1
,
1
,
0
,
0
);
LocalDateTime
startOfYear
=
LocalDateTime
.
of
(
2005
,
1
,
1
,
1
,
0
);
LocalDateTime
start
=
LocalDateTime
.
of
(
2005
,
1
,
1
,
0
,
0
);
LocalDateTime
start
=
LocalDateTime
.
of
(
2005
,
1
,
1
,
1
,
0
);
LocalDateTime
end
=
LocalDateTime
.
of
(
2006
,
1
,
1
,
0
,
0
);
// LocalDateTime start = LocalDateTime.of(2005, 4, 1, 0, 0);
...
...
@@ -83,7 +83,7 @@ public class TreeWaterDemand
try
(
BufferedWriter
bw
=
Files
.
newBufferedWriter
(
Paths
.
get
(
"all_values.csv"
),
StandardCharsets
.
UTF_8
))
{
bw
.
write
(
"DateTime;Temperature;Humidity;GHI;WindSpeed;SaturationVaporPressure;ActualVaporPressure;ET0;ET0u\n"
);
bw
.
write
(
"dd/mm/yyyy HH:MM;[°C];[%];[W/m²];[m/s];[?];[?];[l/h];[l/h]\n"
);
for
(
int
i
=
startHours
;
i
<
startHours
+
hours
;
i
++)
{
for
(
int
i
=
startHours
;
i
<
=
startHours
+
hours
;
i
++)
{
bw
.
write
(
String
.
format
(
"%s;"
,
counter
.
format
(
f
)));
String
[]
row
=
csvValues
.
get
(
i
+
2
);
double
temp
=
Double
.
parseDouble
(
row
[
tempIndex
]);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets