Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
L2 pipelines
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Metis scientific pipeline
L2 pipelines
Commits
1d53b04e
Commit
1d53b04e
authored
3 years ago
by
Roberto Susino
Browse files
Options
Downloads
Patches
Plain Diff
Add management of predictive SPICE metakernel
parent
92de877f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
load_spice_kernels.pro
+21
-4
21 additions, 4 deletions
load_spice_kernels.pro
with
21 additions
and
4 deletions
load_spice_kernels.pro
+
21
−
4
View file @
1d53b04e
pro
load_spice_kernels
,
path
,
unload
=
unload
,
kernel_list
=
kernel_list
,
kernel_version
=
kernel_version
if
keyword_set
(
unload
)
then
cspice_kclear
else
begin
metakernel
=
path
+
'/mk/solo_ANC_soc-flown-mk.tm'
openr
,
in
,
metakernel
,
/
get_lun
kernel_list
=
list
()
while
~
eof
(
in
)
do
begin
openr
,
unit
,
path
+
'/mk/solo_ANC_soc-pred-mk.tm'
,
/
get
while
~
eof
(
unit
)
do
begin
line
=
''
readf
,
in
,
line
readf
,
unit
,
line
if
line
.
contains
(
'$KERNELS'
,
/
fold
)
then
begin
line
=
line
.
replace
(
'$KERNELS'
,
path
)
line
=
line
.
replace
(
"'"
,
''
)
...
...
@@ -17,6 +17,23 @@ pro load_spice_kernels, path, unload = unload, kernel_list = kernel_list, kernel
endif
endwhile
close
,
/
all
openr
,
unit
,
path
+
'/mk/solo_ANC_soc-flown-mk.tm'
,
/
get
while
~
eof
(
unit
)
do
begin
line
=
''
readf
,
unit
,
line
if
line
.
contains
(
'$KERNELS'
,
/
fold
)
then
begin
line
=
line
.
replace
(
'$KERNELS'
,
path
)
line
=
line
.
replace
(
"'"
,
''
)
kernel_list
.
add
,
line
.
trim
()
endif
if
line
.
contains
(
'SKD_VERSION'
,
/
fold
)
then
begin
fields
=
stregex
(
line
,
".*'([a-z_0-9]*)'"
,
/
extract
,
/
sub
)
kernel_version
=
fields
[
1
]
endif
endwhile
close
,
/
all
foreach
item
,
kernel_list
do
cspice_furnsh
,
item
endelse
end
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