param = processor.getOperation("Resample").getParameters();
param.parameter("Source").setValue(cropped);
param.parameter("CoordinateReferenceSystem").setValue(inReader.getCrs());
param.parameter("GridGeometry").setValue(scaledGridGeometry);
param.parameter("InterpolationType").setValue(Interpolation.getInstance(Interpolation.INTERP_NEAREST));
gc = (GridCoverage2D) processor.doOperation(param);
message = new StringBuilder("Scaling...");
if (LOGGER.isLoggable(Level.FINE))
LOGGER.fine(message.toString());