Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plio
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
Plio
Commits
162bc90f
Commit
162bc90f
authored
5 years ago
by
David P. Mayer
Committed by
jlaura
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove half pixel shift from bin scripts in light of #127 (#136)
parent
3c276a43
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/isisnet2socet
+5
-5
5 additions, 5 deletions
bin/isisnet2socet
bin/socetnet2isis
+2
-2
2 additions, 2 deletions
bin/socetnet2isis
with
7 additions
and
7 deletions
bin/isisnet2socet
+
5
−
5
View file @
162bc90f
...
...
@@ -18,13 +18,13 @@ from plio.utils.utils import find_in_dict, split_all_ext
def
parse_args
():
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'
cnet_file
'
,
help
=
'
Path to an
isis
control network.
'
)
parser
.
add_argument
(
'
cnet_file
'
,
help
=
'
Path to an
ISIS
control network.
'
)
parser
.
add_argument
(
'
e_radius
'
,
type
=
float
,
help
=
'
The semimajor radius of a given target.
'
)
parser
.
add_argument
(
'
eccentricity
'
,
type
=
float
,
help
=
'
The eccentricity of a given target.
'
)
parser
.
add_argument
(
'
cub_list
'
,
help
=
'
Path to a list file of all cubes being used. This
\
includes file paths an extnsions.
'
)
includes file paths an
d
ext
e
nsions.
'
)
parser
.
add_argument
(
'
out_gpf
'
,
help
=
'
Path to save location of gpf file and new ipf files.
'
)
parser
.
add_argument
(
'
--adjusted
'
,
help
=
'
Flag
for
sav
ing apriori
values
or adju
sted values
'
,
parser
.
add_argument
(
'
--adjusted
'
,
help
=
'
Flag
to
sav
e adjusted
values
in
ste
a
d
of a priori
values
.
'
,
default
=
False
,
required
=
False
)
return
parser
.
parse_args
()
...
...
@@ -123,8 +123,8 @@ def fix_sample_line(record, serial_dict, cub_dict):
line_size
=
find_in_dict
(
cube
,
'
Lines
'
)
sample_size
=
find_in_dict
(
cube
,
'
Samples
'
)
new_line
=
record
[
'
l.
'
]
-
(
int
(
line_size
/
2.0
))
-
1
new_sample
=
record
[
'
s.
'
]
-
(
int
(
sample_size
/
2.0
))
-
1
new_line
=
record
[
'
l.
'
]
-
(
int
(
line_size
/
2.0
))
-
0.5
new_sample
=
record
[
'
s.
'
]
-
(
int
(
sample_size
/
2.0
))
-
0.5
return
new_line
,
new_sample
...
...
This diff is collapsed.
Click to expand it.
bin/socetnet2isis
+
2
−
2
View file @
162bc90f
...
...
@@ -63,8 +63,8 @@ def line_sample_size(record, path):
break
line_size
=
int
(
line_size
)
/
2.0
+
record
[
'
l.
'
]
+
1
sample_size
=
int
(
sample_size
)
/
2.0
+
record
[
'
s.
'
]
+
1
line_size
=
int
(
line_size
)
/
2.0
+
record
[
'
l.
'
]
+
0.5
sample_size
=
int
(
sample_size
)
/
2.0
+
record
[
'
s.
'
]
+
0.5
return
sample_size
,
line_size
,
img_index
def
get_axis
(
file
):
...
...
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