### Question:
WriterHelper { static float[] createLatData(GridDef gridDef) { final float[] latData = new float[gridDef.getHeight()]; for (int y = 0; y < gridDef.getHeight(); y++) { latData[y] = (float) gridDef.getCenterLat(y); } return latData; } private  WriterHelper();   }### Answer:
@Test public void testCreateLatData() throws Exception { final GridDef gridDef = SpatialResolution.DEGREE_10_00.getGridDef(); final float[] latData = WriterHelper.createLatData(gridDef); assertArrayEquals(EXPECTED_LAT, latData, 1e-8f); }