}
}
// HORIZONTAL DOMAIN
final HorizontalDomain horizontalDomain= gridSource.getHorizontalDomain();
if(horizontalDomain==null)
LOGGER.info("Horizontal domain is null");
else{
// print the horizontal domain elements
final CoordinateReferenceSystem crs2D=horizontalDomain.getCoordinateReferenceSystem2D();
assert crs2D!=null;
final MathTransform2D g2w=horizontalDomain.getGridToWorldTransform(null);
assert g2w !=null;
final Set<? extends BoundingBox> spatialElements = horizontalDomain.getSpatialElements(true,null);
assert spatialElements!=null&& !spatialElements.isEmpty();
final StringBuilder buf= new StringBuilder();
buf.append("Horizontal domain is as follows:\n");
buf.append("G2W:").append("\t").append(g2w).append("\n");