@Test
public void testReadGrid() throws Exception {

    final File file = getResourceAsFile("20070321-UKMO-L4HRfnd-GLOB-v01-fv02-OSTIARANanom_stdev.nc");
    final Grid grid = RegriddingLUT1.readGrid(file);
    assertNotNull(grid);
    assertEquals(3600, grid.getGridDef().getHeight());
    assertEquals(7200, grid.getGridDef().getWidth());
    assertEquals(39, grid.getSampleInt(OCEAN_X, OCEAN_Y));
    assertEquals(39.0 * 0.01, grid.getSampleDouble(OCEAN_X, OCEAN_Y), 1.0e-7);
    assertEquals(0, grid.getSampleInt(LAND_X, LAND_Y));
    assertTrue(Double.isNaN(grid.getSampleDouble(LAND_X, LAND_Y)));
}