Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MUG
visad
Commits
45d87588
Commit
45d87588
authored
Oct 04, 2018
by
rink
Browse files
fix bug when we locate in first granule (need check that lastSetIdx > 0, if 0 just
return the scan local coords
parent
65a06613
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/src/visad/XTrackScanLatLonSet.java
View file @
45d87588
...
...
@@ -155,7 +155,7 @@ public class XTrackScanLatLonSet extends GriddedLatLonSet {
}
else
{
grid
[
0
][
i
]
=
gxgy
[
0
][
0
];
grid
[
1
][
i
]
=
(
lastSetIdx
-
1
)*
linesPerScan
+
gxgy
[
1
][
0
];
grid
[
1
][
i
]
=
(
lastSetIdx
>
0
)
?
(
lastSetIdx
-
1
)*
linesPerScan
+
gxgy
[
1
][
0
]
:
gxgy
[
1
][
0
];
lgxy
[
0
]
=
scanSet
.
lgxy
[
0
];
lgxy
[
1
]
=
scanSet
.
lgxy
[
1
]
+
(
lastSetIdx
-
1
)*
linesPerScan
;
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment