assertSame(8, cvs.size());
//
// cloud_formations is short
//
Dimension dim = dataset.findDimension("cloud_formations");
assertNotNull(dim);
assertEquals("cloud_formations", dim.getShortName());
// check type
CoordinateAxis coordinateAxis = dataset.findCoordinateAxis(dim.getShortName());
assertNotNull(coordinateAxis);
assertTrue(coordinateAxis instanceof CoordinateAxis1D);
Class<?> binding = CoordinateVariable.suggestBinding((CoordinateAxis1D) coordinateAxis);
assertNotNull(binding);
assertSame(Short.class, binding);
CoordinateVariable<?> cv = CoordinateVariable.create((CoordinateAxis1D) coordinateAxis);
assertSame(Short.class, cv.getType());
assertEquals((short) 0, cv.getMinimum());
assertEquals((short) 2, cv.getMaximum());
assertEquals(3, cv.getSize());
assertEquals("level", cv.getUnit());
//
// lat is float
//
dim = dataset.findDimension("lat");
assertNotNull(dim);
assertEquals("lat", dim.getShortName());
// check type
coordinateAxis = dataset.findCoordinateAxis(dim.getShortName());
assertNotNull(coordinateAxis);
assertTrue(coordinateAxis instanceof CoordinateAxis1D);
binding = CoordinateVariable.suggestBinding((CoordinateAxis1D) coordinateAxis);
assertNotNull(binding);
assertSame(Float.class, binding);
cv = CoordinateVariable.create((CoordinateAxis1D) coordinateAxis);
assertNotNull(cv);
assertSame(Float.class, cv.getType());
assertEquals(-77.327934f, cv.getMinimum());
assertEquals(89.781555f, cv.getMaximum());
assertEquals(766, cv.getSize());
assertEquals("degrees_north", cv.getUnit());
assertTrue(cv.isRegular());
assertEquals(cv.getMinimum(), cv.getStart());
assertEquals(0.2184437770469516, cv.getIncrement());
//
// lon is float
//
dim = dataset.findDimension("lon");
assertNotNull(dim);
assertEquals("lon", dim.getShortName());
// check type
coordinateAxis = dataset.findCoordinateAxis(dim.getShortName());
assertNotNull(coordinateAxis);
assertTrue(coordinateAxis instanceof CoordinateAxis1D);
binding = CoordinateVariable.suggestBinding((CoordinateAxis1D) coordinateAxis);
assertNotNull(binding);
assertSame(Float.class, binding);
cv = CoordinateVariable.create((CoordinateAxis1D) coordinateAxis);
assertNotNull(cv);
assertEquals("degrees_east", cv.getUnit());
//
// pressure_levels_ozone is Double
//
dim = dataset.findDimension("nlo");
assertNotNull(dim);
assertEquals("nlo", dim.getShortName());
// check type
coordinateAxis = dataset.findCoordinateAxis(dim.getShortName());
assertNotNull(coordinateAxis);
assertTrue(coordinateAxis instanceof CoordinateAxis1D);
binding = CoordinateVariable.suggestBinding((CoordinateAxis1D) coordinateAxis);
assertNotNull(binding);
assertSame(Double.class, binding);
cv = CoordinateVariable.create((CoordinateAxis1D) coordinateAxis);
assertNotNull(cv);
assertEquals("Pa", cv.getUnit());
//
// pressure_levels_ozone is Double
//
dim = dataset.findDimension("nlt");
assertNotNull(dim);
assertEquals("nlt", dim.getShortName());
// check type
coordinateAxis = dataset.findCoordinateAxis(dim.getShortName());
assertNotNull(coordinateAxis);
assertTrue(coordinateAxis instanceof CoordinateAxis1D);
binding = CoordinateVariable.suggestBinding((CoordinateAxis1D) coordinateAxis);
assertNotNull(binding);
assertSame(Double.class, binding);