String center = ds.findAttValueIgnoreCase(null, "center", null);
return center != null && center.equals("UCAR/CDAAC");
}
public TableConfig getConfig(FeatureType wantFeatureType, NetcdfDataset ds, Formatter errlog) throws IOException {
PointConfigXML reader = new PointConfigXML();
if(ds.getConventionUsed().equalsIgnoreCase("Cosmic1"))
return reader.readConfigXMLfromResource("resources/nj22/pointConfig/Cosmic1.xml", wantFeatureType, ds, errlog);
else if(ds.getConventionUsed().equalsIgnoreCase("Cosmic2"))
return reader.readConfigXMLfromResource("resources/nj22/pointConfig/Cosmic2.xml", wantFeatureType, ds, errlog);
else if(ds.getConventionUsed().equalsIgnoreCase("Cosmic3"))
return reader.readConfigXMLfromResource("resources/nj22/pointConfig/Cosmic3.xml", wantFeatureType, ds, errlog);
else
return null;
//return reader.readConfigXML("C:\\dev\\tds\\thredds\\cdm\\src\\main\\resources\\resources\\nj22\\pointConfig\\Cosmic1.xml", wantFeatureType, ds, errlog);
}