Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
toolbox
WindEnergyToolbox
Commits
cb9f88e6
There was a problem fetching the pipeline summary.
Commit
cb9f88e6
authored
7 years ago
by
David Verelst
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.windenergy.dtu.dk:toolbox/WindEnergyToolbox
parents
9b71ae2c
5cbc45e3
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/tutorials/1-creating-master-excel.md
+7
-5
7 additions, 5 deletions
docs/tutorials/1-creating-master-excel.md
wetb/prepost/dlcdefs.py
+13
-5
13 additions, 5 deletions
wetb/prepost/dlcdefs.py
with
20 additions
and
10 deletions
docs/tutorials/1-creating-master-excel.md
+
7
−
5
View file @
cb9f88e6
...
@@ -86,13 +86,15 @@ Generate the master Excel file in a few easy steps:
...
@@ -86,13 +86,15 @@ Generate the master Excel file in a few easy steps:
the Wind Energy Toolbox tutorials directory.
the Wind Energy Toolbox tutorials directory.
3. From a terminal/command window, run the code to generate the Excel file
3. From a terminal/command window, run the code to generate the Excel file
from a folder of text files:
from a folder of text files:
* Windows:
* Windows
(from the wetb tutorials folder)
:
```
python ..
\.
.
\w
etb
\p
repost
\w
rite_master.py --folder data
\D
LCs_onshore --filename DLCs_onshore.xlsx
```
```
python ..
\.
.
\w
etb
\p
repost
\w
rite_master.py --folder data
\D
LCs_onshore --filename DLCs_onshore.xlsx
```
* Mac/Linux:
* Mac/Linux
(from the wetb tutorials folder)
:
```
python ../../wetb/prepost/write_master.py --folder data/DLCs_onshore --filename DLCs_onshore.xlsx
```
```
python ../../wetb/prepost/write_master.py --folder data/DLCs_onshore --filename DLCs_onshore.xlsx
```
* Gorm:
* Gorm (from any folder that contains a subfolder with your text files. Note
```
python /home/MET/repositories/toolbox/WindEnergyToolbox/wetb/prepost/write_master.py --folder /home/MET/repositories/toolbox/WindEnergyToolbox/wetb/docs/tutoria
you must activate the wetb environment (see Step 5 [here](https://gitlab.windenergy.dtu.dk/toolbox/WindEnergyToolbox/blob/master/docs/getting-started-with-dlbs.md)
ls/data/DLCs_onshore --filename DLCs_onshore.xlsx
```
) before this command will work. This command also assumes the folder with your
text files is called "DLCs_onshore" and is located in the working directory.):
```
python /home/MET/repositories/toolbox/WindEnergyToolbox/wetb/prepost/write_master.py --folder ./DLCs_onshore --filename ./DLCs_onshore.xlsx
```
The master Excel file "DLCs_onshore.xlsx" should now be in the your current
The master Excel file "DLCs_onshore.xlsx" should now be in the your current
directory.
directory.
...
...
This diff is collapsed.
Click to expand it.
wetb/prepost/dlcdefs.py
+
13
−
5
View file @
cb9f88e6
...
@@ -169,24 +169,32 @@ def vartag_excel_stabcon(master):
...
@@ -169,24 +169,32 @@ def vartag_excel_stabcon(master):
return
master
return
master
print
(
'
creating hydro input file for: %s.inp
\n
'
%
mt
[
'
[hydro input name]
'
])
print
(
'
creating hydro input file for: %s.inp
\n
'
%
mt
[
'
[hydro input name]
'
])
mt
[
'
[wdepth]
'
]
=
float
(
mt
[
'
[wdepth]
'
])
mt
[
'
[wdepth]
'
]
=
float
(
mt
[
'
[wdepth]
'
])
mt
[
'
[Hs]
'
]
=
float
(
mt
[
'
[Hs]
'
])
mt
[
'
[Hs]
'
]
=
float
(
mt
[
'
[Hs]
'
])
mt
[
'
[Tp]
'
]
=
float
(
mt
[
'
[Tp]
'
])
mt
[
'
[Tp]
'
]
=
float
(
mt
[
'
[Tp]
'
])
if
'
[wave_gamma]
'
not
in
mt
or
not
mt
[
'
[wave_gamma]
'
]:
if
'
[wave_gamma]
'
not
in
mt
or
not
mt
[
'
[wave_gamma]
'
]:
mt
[
'
[wave_gamma]
'
]
=
3.3
mt
[
'
[wave_gamma]
'
]
=
3.3
else
:
mt
[
'
[wave_gamma]
'
]
=
float
(
mt
[
'
[wave_gamma]
'
])
if
'
[wave_coef]
'
not
in
mt
or
not
mt
[
'
[wave_coef]
'
]:
if
'
[wave_coef]
'
not
in
mt
or
not
mt
[
'
[wave_coef]
'
]:
mt
[
'
[wave_coef]
'
]
=
200
mt
[
'
[wave_coef]
'
]
=
200
else
:
mt
[
'
[wave_coef]
'
]
=
int
(
mt
[
'
[wave_coef]
'
])
if
'
[stretching]
'
not
in
mt
or
not
mt
[
'
[stretching]
'
]:
if
'
[stretching]
'
not
in
mt
or
not
mt
[
'
[stretching]
'
]:
mt
[
'
[stretching]
'
]
=
1
mt
[
'
[stretching]
'
]
=
1
if
mt
[
'
[wave_seed]
'
]
is
not
False
:
mt
[
'
[wave_seed]
'
]
=
int
(
mt
[
'
[wave_seed]
'
])
else
:
else
:
mt
[
'
[
wave_seed
]
'
]
=
int
(
mt
[
'
[s
eed
]
'
])
mt
[
'
[
stretching
]
'
]
=
int
(
mt
[
'
[s
tretching
]
'
])
if
'
[wave_seed]
'
not
in
mt
or
not
mt
[
'
[wave_seed]
'
]:
mt
[
'
[wave_seed]
'
]
=
int
(
mt
[
'
[seed]
'
])
else
:
mt
[
'
[wave_seed]
'
]
=
int
(
mt
[
'
[wave_seed]
'
])
try
:
try
:
embed_sf
=
float
(
master
.
tags
[
'
[embed_sf]
'
])
embed_sf
=
float
(
master
.
tags
[
'
[embed_sf]
'
])
embed_sf_t0
=
int
(
master
.
tags
[
'
[t0]
'
])
+
20
embed_sf_t0
=
int
(
master
.
tags
[
'
[t0]
'
])
+
20
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment