Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HighBlueParsers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
Paul Best
HighBlueParsers
Commits
70e65c79
Commit
70e65c79
authored
2 years ago
by
Paul Best
Browse files
Options
Downloads
Patches
Plain Diff
detection 1min
parent
19384e04
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Rapport2wavs.py
+4
-4
4 additions, 4 deletions
Rapport2wavs.py
RapportInfo2txt
+0
-0
0 additions, 0 deletions
RapportInfo2txt
RapportInfo2txt.c
+2
-2
2 additions, 2 deletions
RapportInfo2txt.c
with
6 additions
and
6 deletions
Rapport2wavs.py
+
4
−
4
View file @
70e65c79
...
@@ -6,8 +6,8 @@ parser = argparse.ArgumentParser()
...
@@ -6,8 +6,8 @@ parser = argparse.ArgumentParser()
parser
.
add_argument
(
'
filename
'
)
parser
.
add_argument
(
'
filename
'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
RORQUAL_HOPSIZE
,
RORQUAL_WINSIZE
,
RORQUAL_FE
,
RORQUAL_SAMPLEPERSAMPLE
=
256
,
4096
,
4000
,
25600
RORQUAL_HOPSIZE
,
RORQUAL_WINSIZE
,
RORQUAL_FE
,
RORQUAL_SAMPLEPERSAMPLE
,
RORQUAL_LENSIG
=
256
,
4096
,
4000
,
25600
,
60
CACHA_HOPSIZE
,
CACHA_WINSIZE
,
CACHA_FE
,
CACHA_SAMPLEPERSAMPLE
=
256
,
512
,
64000
,
12800
CACHA_HOPSIZE
,
CACHA_WINSIZE
,
CACHA_FE
,
CACHA_SAMPLEPERSAMPLE
,
CACHA_LENSIG
=
256
,
512
,
64000
,
12800
,
60
CACHA_RAPPORT_FE
,
RORQUAL_RAPPORT_FE
,
RAPPORT_N_CHANNELS
=
128_000
,
128_00
,
5
CACHA_RAPPORT_FE
,
RORQUAL_RAPPORT_FE
,
RAPPORT_N_CHANNELS
=
128_000
,
128_00
,
5
CACHA_NUM_DETEC
,
RORQUAL_NUM_DETEC
=
10
,
3
CACHA_NUM_DETEC
,
RORQUAL_NUM_DETEC
=
10
,
3
rorqual_predPos
=
lambda
p
:
int
(((
p
*
RORQUAL_HOPSIZE
+
(
RORQUAL_WINSIZE
/
2
+
RORQUAL_HOPSIZE
*
13
)
/
2
)
/
RORQUAL_FE
-
1
)
*
RORQUAL_RAPPORT_FE
)
rorqual_predPos
=
lambda
p
:
int
(((
p
*
RORQUAL_HOPSIZE
+
(
RORQUAL_WINSIZE
/
2
+
RORQUAL_HOPSIZE
*
13
)
/
2
)
/
RORQUAL_FE
-
1
)
*
RORQUAL_RAPPORT_FE
)
...
@@ -20,7 +20,7 @@ for l in lines:
...
@@ -20,7 +20,7 @@ for l in lines:
if
l
==
'
rorqual predPeaks
\n
'
:
if
l
==
'
rorqual predPeaks
\n
'
:
l
=
next
(
lines
)
l
=
next
(
lines
)
if
'
,
'
in
l
:
if
'
,
'
in
l
:
sig
=
np
.
zeros
((
30
*
RORQUAL_RAPPORT_FE
,
RAPPORT_N_CHANNELS
),
dtype
=
'
int16
'
)
sig
=
np
.
zeros
((
RORQUAL_LENSIG
*
RORQUAL_RAPPORT_FE
,
RAPPORT_N_CHANNELS
),
dtype
=
'
int16
'
)
peaks
=
np
.
array
(
l
[:
-
2
].
split
(
'
,
'
)).
astype
(
int
)
peaks
=
np
.
array
(
l
[:
-
2
].
split
(
'
,
'
)).
astype
(
int
)
l
=
next
(
lines
)
l
=
next
(
lines
)
for
p
in
peaks
[:
RORQUAL_NUM_DETEC
]:
for
p
in
peaks
[:
RORQUAL_NUM_DETEC
]:
...
@@ -31,7 +31,7 @@ for l in lines:
...
@@ -31,7 +31,7 @@ for l in lines:
if
l
==
'
cacha predPeaks
\n
'
:
if
l
==
'
cacha predPeaks
\n
'
:
l
=
next
(
lines
)
l
=
next
(
lines
)
if
'
,
'
in
l
:
if
'
,
'
in
l
:
sig
=
np
.
zeros
((
10
*
CACHA_RAPPORT_FE
,
RAPPORT_N_CHANNELS
),
dtype
=
'
int16
'
)
sig
=
np
.
zeros
((
CACHA_LENSIG
*
CACHA_RAPPORT_FE
,
RAPPORT_N_CHANNELS
),
dtype
=
'
int16
'
)
peaks
=
np
.
array
(
l
[:
-
2
].
split
(
'
,
'
)).
astype
(
int
)
peaks
=
np
.
array
(
l
[:
-
2
].
split
(
'
,
'
)).
astype
(
int
)
l
=
next
(
lines
)
l
=
next
(
lines
)
for
p
in
peaks
[:
CACHA_NUM_DETEC
]:
for
p
in
peaks
[:
CACHA_NUM_DETEC
]:
...
...
This diff is collapsed.
Click to expand it.
RapportInfo2txt
+
0
−
0
View file @
70e65c79
No preview for this file type
This diff is collapsed.
Click to expand it.
RapportInfo2txt.c
+
2
−
2
View file @
70e65c79
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#define NTOAS_MAX 200
#define NTOAS_MAX 200
#define RORQUAL_SAMPLE_RATE 4000
#define RORQUAL_SAMPLE_RATE 4000
#define RORQUAL_LENSIG RORQUAL_SAMPLE_RATE*
3
0 // load 60sec
#define RORQUAL_LENSIG RORQUAL_SAMPLE_RATE*
6
0 // load 60sec
#define RORQUAL_WINSIZE 4096
#define RORQUAL_WINSIZE 4096
#define RORQUAL_LENSPEC (RORQUAL_LENSIG - RORQUAL_WINSIZE)/RORQUAL_HOPSIZE
#define RORQUAL_LENSPEC (RORQUAL_LENSIG - RORQUAL_WINSIZE)/RORQUAL_HOPSIZE
#define RORQUAL_HOPSIZE 256
#define RORQUAL_HOPSIZE 256
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#define RORQUAL_RAPPORT_SAMPLESPERSAMPLE 25600 // see cacha
#define RORQUAL_RAPPORT_SAMPLESPERSAMPLE 25600 // see cacha
#define CACHA_SAMPLE_RATE 64000
#define CACHA_SAMPLE_RATE 64000
#define CACHA_LENSIG CACHA_SAMPLE_RATE*
1
0 // load 10sec
#define CACHA_LENSIG CACHA_SAMPLE_RATE*
6
0 // load 10sec
#define CACHA_WINSIZE 512
#define CACHA_WINSIZE 512
#define CACHA_LENSPEC (CACHA_LENSIG - CACHA_WINSIZE)/CACHA_HOPSIZE
#define CACHA_LENSPEC (CACHA_LENSIG - CACHA_WINSIZE)/CACHA_HOPSIZE
#define CACHA_HOPSIZE 256
#define CACHA_HOPSIZE 256
...
...
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