public int accept( InvDataset d) { if (null == d.getDataType()) return 0; return (d.getDataType() == type) ? 1 : -1; } }
public int accept( InvDataset d) { if (null == d.getDataType()) return 0; return (d.getDataType() == type) ? 1 : -1; } }
public int accept( InvDataset d) { if (null == d.getDataType()) return 0; return (d.getDataType() == type) ? 1 : -1; } }
/** * Open a FeatureDataset from an InvAccess object. * * @param access use this InvAccess. * @param task may be null * @return ThreddsDataFactory.Result check fatalError for validity * @throws IOException on read error */ public ThreddsDataFactory.Result openFeatureDataset(InvAccess access, ucar.nc2.util.CancelTask task) throws IOException { InvDataset invDataset = access.getDataset(); ThreddsDataFactory.Result result = new Result(); if (invDataset.getDataType() == null) { result.errLog.format("InvDatasert must specify a FeatureType%n"); result.fatalError = true; return result; } return openFeatureDataset(invDataset.getDataType(), access, task, result); }
/** * Open a FeatureDataset from an InvAccess object. * * @param access use this InvAccess. * @param task may be null * @return ThreddsDataFactory.Result check fatalError for validity * @throws IOException on read error */ public ThreddsDataFactory.Result openFeatureDataset(InvAccess access, ucar.nc2.util.CancelTask task) throws IOException { InvDataset invDataset = access.getDataset(); ThreddsDataFactory.Result result = new Result(); if (invDataset.getDataType() == null) { result.errLog.format("InvDatasert must specify a FeatureType%n"); result.fatalError = true; return result; } return openFeatureDataset(invDataset.getDataType(), access, task, result); }
/** * Open a FeatureDataset from an InvAccess object. * * @param access use this InvAccess. * @param task may be null * @return ThreddsDataFactory.Result check fatalError for validity * @throws IOException on read error */ public ThreddsDataFactory.Result openFeatureDataset(InvAccess access, ucar.nc2.util.CancelTask task) throws IOException { InvDataset invDataset = access.getDataset(); ThreddsDataFactory.Result result = new Result(); if (invDataset.getDataType() == null) { result.errLog.format("InvDatasert must specify a FeatureType%n"); result.fatalError = true; return result; } return openFeatureDataset(invDataset.getDataType(), access, task, result); }
out.println(" **Open " + ds.getDataType() + " " + ncd.getLocation() + " (" + ds.getName() + ") " + took + " msecs"); if (verbose) System.out.println(" **Open " + ds.getDataType() + " " + ncd.getLocation() + " (" + ds.getName() + ") " + took + " msecs; ok=" + ok);
out.println(" **Open " + ds.getDataType() + " " + ncd.getLocation() + " (" + ds.getName() + ") " + took + " msecs"); if (verbose) System.out.println(" **Open " + ds.getDataType() + " " + ncd.getLocation() + " (" + ds.getName() + ") " + took + " msecs");
out.println(" **Open " + ds.getDataType() + " " + ncd.getLocation() + " (" + ds.getName() + ") " + took + " msecs"); if (verbose) System.out.println(" **Open " + ds.getDataType() + " " + ncd.getLocation() + " (" + ds.getName() + ") " + took + " msecs");
public ThreddsDataFactory.Result openFeatureDataset(FeatureType wantFeatureType, InvDataset invDataset, ucar.nc2.util.CancelTask task, Result result) throws IOException { result.featureType = invDataset.getDataType(); if (result.featureType == null) result.featureType = wantFeatureType;
public ThreddsDataFactory.Result openFeatureDataset(FeatureType wantFeatureType, InvDataset invDataset, ucar.nc2.util.CancelTask task, Result result) throws IOException { result.featureType = invDataset.getDataType(); if (result.featureType == null) result.featureType = wantFeatureType;
public ThreddsDataFactory.Result openFeatureDataset(FeatureType wantFeatureType, InvDataset invDataset, ucar.nc2.util.CancelTask task, Result result) throws IOException { result.featureType = invDataset.getDataType(); if (result.featureType == null) result.featureType = wantFeatureType;
educational.addContent( resourceTypes); String resourceType = "DLESE:Data:In situ dataset"; // default if (ds.getDataType() == FeatureType.GRID) resourceType = "DLESE:Data:Modeled dataset"; // take a guess else if (ds.getDataType() == FeatureType.IMAGE) resourceType = "DLESE:Data:Remotely sensed dataset"; resourceTypes.addContent( new Element("resourceType", defNS).addContent(resourceType));
educational.addContent( resourceTypes); String resourceType = "DLESE:Data:In situ dataset"; // default if (ds.getDataType() == FeatureType.GRID) resourceType = "DLESE:Data:Modeled dataset"; // take a guess else if (ds.getDataType() == FeatureType.IMAGE) resourceType = "DLESE:Data:Remotely sensed dataset"; resourceTypes.addContent( new Element("resourceType", defNS).addContent(resourceType));
educational.addContent( resourceTypes); String resourceType = "DLESE:Data:In situ dataset"; // default if (ds.getDataType() == FeatureType.GRID) resourceType = "DLESE:Data:Modeled dataset"; // take a guess else if (ds.getDataType() == FeatureType.IMAGE) resourceType = "DLESE:Data:Remotely sensed dataset"; resourceTypes.addContent( new Element("resourceType", defNS).addContent(resourceType));