public void checkGridCoordSystem_findXYindexFromLatLonBounded()
throws IOException
{
GridDataset gd = GridDataset.open( datasetLocation );
GridDatatype hsGrid = gd.findGridDatatype( "hs" );
GridCoordSystem coordSys = hsGrid.getCoordinateSystem();
Date date = coordSys.getTimeAxis1D().getTimeDate( 0 );
int[] xy = coordSys.findXYindexFromLatLonBounded( lat, lon, null );
assertEquals( i, xy[0] );
assertEquals( j, xy[1] );