Commit f442c1a2 authored by rink's avatar rink
Browse files

recognize that lastSetIdx is zero based

parent 45d87588
......@@ -155,9 +155,9 @@ public class XTrackScanLatLonSet extends GriddedLatLonSet {
}
else {
grid[0][i] = gxgy[0][0];
grid[1][i] = (lastSetIdx > 0) ? (lastSetIdx-1)*linesPerScan + gxgy[1][0] : gxgy[1][0];
grid[1][i] = lastSetIdx*linesPerScan + gxgy[1][0];
lgxy[0] = scanSet.lgxy[0];
lgxy[1] = scanSet.lgxy[1] + (lastSetIdx-1)*linesPerScan;
lgxy[1] = scanSet.lgxy[1] + lastSetIdx*linesPerScan;
break;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment