Commit 45d87588 authored by rink's avatar 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
......@@ -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;
......
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