Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Knoten
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
aflab
astrogeology
Knoten
Commits
67800a12
Commit
67800a12
authored
5 years ago
by
Kaitlyn Lee
Committed by
Jesse Mapel
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updated lro notebook and fixed campt call.
parent
5a3cf71f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/data/M1142142198RE.json
+1
-1
1 addition, 1 deletion
examples/data/M1142142198RE.json
knoten/vis.py
+9
-7
9 additions, 7 deletions
knoten/vis.py
with
10 additions
and
8 deletions
examples/data/M1142142198RE.json
+
1
−
1
View file @
67800a12
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
knoten/vis.py
+
9
−
7
View file @
67800a12
...
...
@@ -112,13 +112,16 @@ def point_info(cube_path, x, y, point_type, allow_outside=False):
f
.
write
(
"
\n
"
.
join
([
"
{}, {}
"
.
format
(
xval
,
yval
)
for
xval
,
yval
in
zip
(
x
,
y
)]))
f
.
flush
()
with
tempfile
.
NamedTemporaryFile
(
"
r+
"
)
as
campt_output
:
try
:
pvlres
=
isis
.
campt
(
from_
=
cube_path
,
coordlist
=
f
.
name
,
allowoutside
=
allow_outside
,
usecoordlist
=
True
,
coordtype
=
point_type
)
isis
.
campt
(
from_
=
cube_path
,
coordlist
=
f
.
name
,
allowoutside
=
allow_outside
,
usecoordlist
=
True
,
coordtype
=
point_type
,
to
=
campt_output
.
name
)
except
ProcessError
as
e
:
warn
(
f
"
CAMPT call failed, image:
{
cube_path
}
\n
{
e
.
stderr
}
"
)
return
pvlres
=
pvl
.
loads
(
pvlres
)
pvlres
=
pvl
.
load
(
campt_output
.
name
)
if
len
(
x
)
>
1
and
len
(
y
)
>
1
:
for
r
in
pvlres
:
# convert all pixels to PLIO pixels from ISIS
...
...
@@ -127,7 +130,6 @@ def point_info(cube_path, x, y, point_type, allow_outside=False):
else
:
pvlres
[
"
GroundPoint
"
][
"
Sample
"
]
-=
.
5
pvlres
[
"
GroundPoint
"
][
"
Line
"
]
-=
.
5
return
pvlres
...
...
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