@Test public void test_getRowOffset() { assertEquals(0, grid.getBinOffset(0)); assertEquals(3, grid.getBinOffset(1)); assertEquals(3 + 9, grid.getBinOffset(2)); assertEquals(3 + 9 + 16, grid.getBinOffset(3)); assertEquals(3 + 9 + 16 + 22, grid.getBinOffset(4)); assertEquals(5940422 / 2 - 4320, grid.getBinOffset(2160 / 2 - 1)); assertEquals(5940422 / 2, grid.getBinOffset(2160 / 2)); assertEquals(5940422 - (3), grid.getBinOffset(2160 - 1 - 0)); assertEquals(5940422 - (3 + 9), grid.getBinOffset(2160 - 1 - 1)); assertEquals(5940422 - (3 + 9 + 16), grid.getBinOffset(2160 - 1 - 2)); assertEquals(5940422 - (3 + 9 + 16 + 22), grid.getBinOffset(2160 - 1 - 3)); }
public int getBinOffset(int rowIndex) { return binOffsets[rowIndex]; }
ISINGrid { public int getBinOffset(int rowIndex) { return binOffsets[rowIndex]; } }
ISINGrid { public int getBinOffset(int rowIndex) { return binOffsets[rowIndex]; } ISINGrid(int rowCount); }
ISINGrid { public int getBinOffset(int rowIndex) { return binOffsets[rowIndex]; } ISINGrid(int rowCount); int getRowCount(); double getBinSize(); double getDeltaLat(); int getTotalBinCount(); double getLat(int rowIndex); double getDeltaLon(int rowIndex); int getRowLength(int rowIndex); int getBinOffset(int rowIndex); int getRowIndex(int binIndex); Point getGridPoint(int binIndex, Point gridPoint); int getBinIndex(Point gridPoint); int getColIndex(int rowIndex, double lon); int getBinIndex(int rowIndex, double lon); static int detectRowCount(String productName); }
ISINGrid { public int getBinOffset(int rowIndex) { return binOffsets[rowIndex]; } ISINGrid(int rowCount); int getRowCount(); double getBinSize(); double getDeltaLat(); int getTotalBinCount(); double getLat(int rowIndex); double getDeltaLon(int rowIndex); int getRowLength(int rowIndex); int getBinOffset(int rowIndex); int getRowIndex(int binIndex); Point getGridPoint(int binIndex, Point gridPoint); int getBinIndex(Point gridPoint); int getColIndex(int rowIndex, double lon); int getBinIndex(int rowIndex, double lon); static int detectRowCount(String productName); static final double RE; static final int DEFAULT_ROW_COUNT; }