Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
artoa4argo
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
argoTools
artoa4argo
Commits
3eb6ef31
Commit
3eb6ef31
authored
4 years ago
by
leprob001
Browse files
Options
Downloads
Patches
Plain Diff
Updated rfc format.
parent
b379e691
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
VERSION
+1
-1
1 addition, 1 deletion
VERSION
lib/+artoa/+controller/+file/saveRfc.m
+4
-0
4 additions, 0 deletions
lib/+artoa/+controller/+file/saveRfc.m
lib/+artoa/+save/rfc.m
+41
-24
41 additions, 24 deletions
lib/+artoa/+save/rfc.m
with
46 additions
and
25 deletions
VERSION
+
1
−
1
View file @
3eb6ef31
290
\ No newline at end of file
291
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lib/+artoa/+controller/+file/saveRfc.m
+
4
−
0
View file @
3eb6ef31
...
...
@@ -32,6 +32,10 @@ filter = artoa.data.getMember(artoaConfig, {'filemask', 'rfc'}, '*.rfc');
%% Ask for filename
[
filename
,
pathname
]
=
uiputfile
(
fullfile
(
folder
,
filter
));
if
filename
==
0
return
;
end
filepath
=
fullfile
(
pathname
,
filename
);
artoa
.
save
.
rfc
(
filepath
,
artoaWorkspace
.
float
,
data
,
trajectory
);
...
...
This diff is collapsed.
Click to expand it.
lib/+artoa/+save/rfc.m
+
41
−
24
View file @
3eb6ef31
...
...
@@ -154,41 +154,58 @@ trajectoryHeader = { ...
[
'** Interpolation step size: '
num2str
(
pTrajectory
.
trackParameter
.
interpolationInterval
)
' hours'
],
...
[
'** Interpolation gap size: '
num2str
(
pTrajectory
.
trackParameter
.
gapSize
)],
...
[
'** Doppler correction: '
dopplerCorrectionUsed
],
...
[
'** -------'
],
...
[
'** Sound source combinations: (rafos day, sound sources, reference position, sound speed)'
]
...
[
'** -------'
]
...
};
trajectoryHeader
=
strjoin
(
trajectoryHeader
,
newline
);
soundSourcesHeader
=
''
;
for
i
=
1
:
size
(
pTrajectory
.
trackParameter
.
soundsourceCombinations
,
1
)
currentCombination
=
pTrajectory
.
trackParameter
.
soundsourceCombinations
(
i
,
:);
soundSourcesHeader
=
[
...
soundSourcesHeader
...
'** '
num2str
(
currentCombination
.
combinationBegin
)
' to '
num2str
(
currentCombination
.
combinationEnd
)
': '
...
currentCombination
.
soundsources
' '
...
currentCombination
.
referencePosition
' '
...
num2str
(
currentCombination
.
soundspeed1
)
...
newline
...
];
end
% soundSourcesHeader = '';
% for i = 1:size(pTrajectory.trackParameter.soundsourceCombinations, 1)
% currentCombination = pTrajectory.trackParameter.soundsourceCombinations(i, :);
% soundSourcesHeader = [ ...
% soundSourcesHeader ...
% '** ' num2str(currentCombination.combinationBegin) ' to ' num2str(currentCombination.combinationEnd) ': ' ...
% currentCombination.soundsources ' ' ...
% currentCombination.referencePosition ' ' ...
% num2str(pTrajectory.offsets{'Float', 'AppliedSound) ...
% newline ...
% ];
% end
%
% soundSourcesHeader = [ ...
% soundSourcesHeader ...
% '** -------' newline ...
% '** Additional Float clock offsets, seconds (beginning, end): ' ...
% num2str(pTrajectory.offsets{'Float', 'OffsetStart'}) ...
% ' ' ...
% num2str(pTrajectory.offsets{'Float', 'OffsetStart'}) newline ...
% '** -------' newline ...
% ' * l ----------' ...
% ];
%% write tables to temporary files
writetable
(
pTrajectory
.
trackParameter
.
soundsourceCombinations
,
'c.tmp'
,
'Delimiter'
,
'\t'
,
'FileType'
,
'text'
,
'WriteRowNames'
,
true
,
'WriteVariableNames'
,
true
);
writetable
(
pTrajectory
.
offsets
,
'o.tmp'
,
'Delimiter'
,
'\t'
,
'FileType'
,
'text'
,
'WriteRowNames'
,
true
,
'WriteVariableNames'
,
true
);
c
=
fileread
(
'c.tmp'
);
o
=
fileread
(
'o.tmp'
);
delete
'c.tmp'
'o.tmp'
;
soundSourcesHeader
=
[
...
soundSourcesHeader
...
'** -------'
newline
...
'** Additional Float clock offsets, seconds (beginning, end): '
...
num2str
(
pTrajectory
.
offsets
{
'Float'
,
'OffsetStart'
})
...
' '
...
num2str
(
pTrajectory
.
offsets
{
'Float'
,
'OffsetStart'
})
newline
...
newline
'** Track parameter table'
newline
...
regexprep
(
strrep
([
'** '
c
],
newline
,
[
newline
'** '
]),
'\t'
,
'\t\t'
)
...
newline
'** -------'
newline
...
'** Offsets table'
newline
...
regexprep
(
strrep
([
'** '
o
],
newline
,
[
newline
'** '
]),
'\t'
,
'\t\t'
)
...
'** -------'
newline
...
' * l ----------'
...
];
];
headerString
=
strjoin
(
[
...
headerString
=
[
...
headerString
newline
...
trajectoryHeader
newline
...
trajectoryHeader
...
soundSourcesHeader
newline
...
],
''
);
];
%% Save to file
saveToFile
(
pFilename
,
headerString
,
dataString
);
...
...
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