import geoscript.layer.Format
def file = '/data/bmng2/200406.A1.tif' as File
def format = Format.getFormat(file)
def raster = format.read(file)
raster.dispose()
java.util.ServiceConfigurationError: javax.imageio.spi.ImageReaderSpi: Provider org.geotools.imageio.netcdf.NetCDFImageReaderSpi could not be instantiated: java.lang.NoClassDefFoundError: Could not initialize class org.geotools.imageio.netcdf.NetCDFImageReaderSpi
at org.geotools.image.io.ImageIOExt.getImageInputStreamSPI(ImageIOExt.java:221)
at org.geotools.image.io.ImageIOExt.getImageInputStreamSPI(ImageIOExt.java:204)
at org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:196)
at org.geotools.gce.geotiff.GeoTiffFormat.getReader(GeoTiffFormat.java:283)
at org.geotools.gce.geotiff.GeoTiffFormat$getReader.call(Unknown Source)
at geoscript.layer.Format.read(Format.groovy:192)
at geoscript.layer.Format$read$1.callCurrent(Unknown Source)
at geoscript.layer.Format.read(Format.groovy:111)
at geoscript.layer.Format.read(Format.groovy)
at geoscript.layer.Format$read$0.call(Unknown Source)
at ConsoleScript2.run(ConsoleScript2:5)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.geotools.imageio.netcdf.NetCDFImageReaderSpi
... 11 more