private GridSpatialRepresentation createSpatialRepresentationInfo(final GridGeometry cs) throws IOException {
final DefaultGridSpatialRepresentation grid = new DefaultGridSpatialRepresentation();
grid.setNumberOfDimensions(cs.getTargetDimensions());
final Axis[] axes = cs.getAxes();
for (int i=axes.length; --i>=0;) {
final Axis axis = axes[i];
if (axis.sourceDimensions.length != 0) {
final DefaultDimension dimension = new DefaultDimension();
dimension.setDimensionSize(axis.sourceSizes[0]);
final AttributeNames.Dimension attributeNames = axis.attributeNames;
if (attributeNames != null) {