public void write ( String path ) throws Exception { if ( makeNew ) { RasterWriter . writeRaster ( path , buildRaster ( ) ) ; } else { throw new RuntimeException ( "Only new rasters can be dumped." ) ; } }
Write the raster to file .