Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
se1vibration
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
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
vaclab
se1vibration
Commits
bfe14779
Commit
bfe14779
authored
13 years ago
by
wactbprot
Browse files
Options
Downloads
Patches
Plain Diff
eop
parent
e102196d
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ausw.R
+15
-107
15 additions, 107 deletions
ausw.R
diagr/rd-23UM_2012-02-21.pdf
+6182
-0
6182 additions, 0 deletions
diagr/rd-23UM_2012-02-21.pdf
diagr/rd-23UM_2012-02-21.png
+0
-0
0 additions, 0 deletions
diagr/rd-23UM_2012-02-21.png
makeSpectr.R
+112
-0
112 additions, 0 deletions
makeSpectr.R
with
6309 additions
and
107 deletions
ausw.R
+
15
−
107
View file @
bfe14779
path
<-
"data/"
diagpath
<-
"diagr/"
baseN
<-
"spectr-"
sufix
<-
".dat"
N
<-
250
par
(
mfrow
=
c
(
1
,
1
))
##'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
library
(
R4CouchDB
)
plt0
<-
function
(){
png
(
paste
(
diagpath
,
"specFrom-"
,
fns
[
1
],
".png"
,
sep
=
""
))
plot
(
res0
$
freque
,
res0
$
spectr
,
type
=
"l"
,
xlab
=
"f in Hz"
,
ylab
=
"F(v(t))"
)
grid
(
col
=
1
)
points
(
res
$
freque
,
res
$
spectr
,
type
=
"l"
,
col
=
2
,
xlab
=
"f in Hz"
,
ylab
=
"F(v(t))"
)
legend
(
min
(
res0
$
freque
),
max
(
res0
$
spectr
),
c
(
what0
,
what
),
col
=
c
(
1
,
2
),
lty
=
c
(
1
,
1
))
dev.off
()
}
##'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
mvAndPlot
<-
function
(
path
,
baseN
,
sufix
,
N
,
fns
){
amplArr
<-
matrix
(
ncol
=
length
(
fns
),
nrow
=
N
)
freqArr
<-
matrix
(
ncol
=
length
(
fns
),
nrow
=
N
)
for
(
i
in
1
:
length
(
fns
)){
a
<-
read.table
(
paste
(
path
,
baseN
,
fns
[
i
],
sufix
,
sep
=
""
),
dec
=
","
)
cdb
<-
cdbIni
()
cdb
$
serverName
<-
"e73462.berlin.ptb.de"
cdb
$
DBName
<-
"vaclab_db"
cdb
$
id
<-
"356019709104488b7bb420891904a06f"
doc
<-
cdbGetDoc
(
cdb
)
$
res
freqArr
[,
i
]
<-
as.vector
(
a
$
V1
)
amplArr
[,
i
]
<-
as.vector
(
a
$
V2
)
}
spectr
<-
rowMeans
(
amplArr
)
freque
<-
rowMeans
(
freqArr
)
res
<-
list
(
spectr
=
spectr
,
freque
=
freque
)
return
(
res
)
}
##'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
fns
<-
c
(
1
,
2
,
3
,
4
,
5
,
6
,
12
,
15
,
20
,
29
,
30
,
31
,
33
)
what0
<-
"alles aus (alle VP, alle TMP Klimaanlage)"
res0
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
48
:
51
what
<-
"alles an (bis auf Klimaanlage)"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
7
:
11
what
<-
"nur V4 VP (lks)"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
13
:
14
what
<-
"nur 20l VP (re)"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
16
:
19
what
<-
"nur Gaseinl. VP"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
21
:
26
what
<-
"GE VP & V4 VP"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
39
:
41
what
<-
"V4 TMP & VP an"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
44
:
47
what
<-
"GE TMP+VP an V4 TMP*VP an"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
48
:
51
what
<-
"GE TMP+VP an, V4 TMP*VP an, 20l TMP+VP an"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
tms
<-
as.numeric
(
unlist
(
doc
$
Calibration
$
Measurement
$
Values
$
Time
[[
1
]]
$
Value
))
th
<-
(
tms
-
tms
[
1
])
/
1000
/
3600
rd
<-
unlist
(
doc
$
Calibration
$
Measurement
$
Values
$
Pressure
[[
1
]]
$
Value
)
plot
(
th
,
rd
,
main
=
"Finger 23UM am Kessel SE1"
,
xlab
=
"t in h"
,
ylab
=
"dcr"
)
grid
(
col
=
1
)
This diff is collapsed.
Click to expand it.
diagr/rd-23UM_2012-02-21.pdf
0 → 100644
+
6182
−
0
View file @
bfe14779
This diff is collapsed.
Click to expand it.
diagr/rd-23UM_2012-02-21.png
0 → 100644
+
0
−
0
View file @
bfe14779
18.8 KiB
This diff is collapsed.
Click to expand it.
makeSpectr.R
0 → 100644
+
112
−
0
View file @
bfe14779
path
<-
"data/"
diagpath
<-
"diagr/"
baseN
<-
"spectr-"
sufix
<-
".dat"
N
<-
250
par
(
mfrow
=
c
(
1
,
1
))
##'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
plt0
<-
function
(){
png
(
paste
(
diagpath
,
"specFrom-"
,
fns
[
1
],
".png"
,
sep
=
""
))
plot
(
res0
$
freque
,
res0
$
spectr
,
type
=
"l"
,
xlab
=
"f in Hz"
,
ylab
=
"F(v(t))"
)
grid
(
col
=
1
)
points
(
res
$
freque
,
res
$
spectr
,
type
=
"l"
,
col
=
2
,
xlab
=
"f in Hz"
,
ylab
=
"F(v(t))"
)
legend
(
min
(
res0
$
freque
),
max
(
res0
$
spectr
),
c
(
what0
,
what
),
col
=
c
(
1
,
2
),
lty
=
c
(
1
,
1
))
dev.off
()
}
##'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
mvAndPlot
<-
function
(
path
,
baseN
,
sufix
,
N
,
fns
){
amplArr
<-
matrix
(
ncol
=
length
(
fns
),
nrow
=
N
)
freqArr
<-
matrix
(
ncol
=
length
(
fns
),
nrow
=
N
)
for
(
i
in
1
:
length
(
fns
)){
a
<-
read.table
(
paste
(
path
,
baseN
,
fns
[
i
],
sufix
,
sep
=
""
),
dec
=
","
)
freqArr
[,
i
]
<-
as.vector
(
a
$
V1
)
amplArr
[,
i
]
<-
as.vector
(
a
$
V2
)
}
spectr
<-
rowMeans
(
amplArr
)
freque
<-
rowMeans
(
freqArr
)
res
<-
list
(
spectr
=
spectr
,
freque
=
freque
)
return
(
res
)
}
##'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
fns
<-
c
(
1
,
2
,
3
,
4
,
5
,
6
,
12
,
15
,
20
,
29
,
30
,
31
,
33
)
what0
<-
"alles aus (alle VP, alle TMP Klimaanlage)"
res0
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
48
:
51
what
<-
"alles an (bis auf Klimaanlage)"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
7
:
11
what
<-
"nur V4 VP (lks)"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
13
:
14
what
<-
"nur 20l VP (re)"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
16
:
19
what
<-
"nur Gaseinl. VP"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
21
:
26
what
<-
"GE VP & V4 VP"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
39
:
41
what
<-
"V4 TMP & VP an"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
44
:
47
what
<-
"GE TMP+VP an V4 TMP*VP an"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fns
<-
48
:
51
what
<-
"GE TMP+VP an, V4 TMP*VP an, 20l TMP+VP an"
res
<-
mvAndPlot
(
path
,
baseN
,
sufix
,
N
,
fns
)
plt0
()
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