if (debug) System.out.printf(" featureScan=%s%n", f.getPath());
ds = NetcdfDataset.openDataset(f.getPath());
fileType = ds.getFileTypeId();
setCoordMap(ds.getCoordinateSystems());
Formatter errlog = new Formatter();
try {
FeatureDataset featureDataset = FeatureDatasetFactoryManager.wrap(null, ds, null, errlog);
if (featureDataset != null) {
featureType = featureDataset.getFeatureType();
if (featureType != null)
ftype = featureType.toString();
ftImpl = featureDataset.getImplementationName();
Formatter infof = new Formatter();
featureDataset.getDetailInfo(infof);
info = infof.toString();
} else {
ftype = "FAIL: " + errlog.toString();
}
} catch (Throwable t) {
ftype = "ERR: " + t.getMessage();