throw new IllegalArgumentException( "Error occurred during NetCDF file reading: The input file is a Directory.");
} else if (protocol.equalsIgnoreCase("http") || protocol.equalsIgnoreCase("dods")) {
dataset = NetcdfDataset.acquireDataset(tempURL.toExternalForm(), null);
}
} else if (input instanceof URIImageInputStream) {
final URIImageInputStream uriInStream = (URIImageInputStream) input;
dataset = NetcdfDataset.acquireDataset(uriInStream.getUri().toString(), null);
} else if (input instanceof AccessibleStream) {
final AccessibleStream<?> stream= (AccessibleStream<?>) input;
if(stream.getBinding().isAssignableFrom(File.class)){
final File file = ((AccessibleStream<File>) input).getTarget();
if (!file.isDirectory())