static public void compareFiles(NetcdfFile org, NetcdfFile copy, Formatter f) { compareFiles(org, copy, f, false, false, false); }
static public boolean compareFiles(NetcdfFile org, NetcdfFile copy, Formatter f) { return compareFiles(org, copy, f, false, false, false); }
static public boolean compareFiles(NetcdfFile org, NetcdfFile copy, Formatter f) { return compareFiles(org, copy, f, false, false, false); }
public static void main(String arg[]) throws IOException { String usage = "usage: ucar.nc2.util.CompareNetcdf2 file1 file2 [-showEach] [-compareData]"; if (arg.length < 2) { System.out.println(usage); System.exit(0); } boolean showEach = false; boolean compareData = false; String file1 = arg[0]; String file2 = arg[1]; for (int i = 2; i < arg.length; i++) { String s = arg[i]; if (s.equalsIgnoreCase("-showEach")) showEach = true; if (s.equalsIgnoreCase("-compareData")) compareData = true; } NetcdfFile ncfile1 = NetcdfDataset.open(file1); NetcdfFile ncfile2 = NetcdfDataset.open(file2); compareFiles(ncfile1, ncfile2, new Formatter(System.out), true, showEach, compareData); ncfile1.close(); ncfile2.close(); }
public static void main(String arg[]) throws IOException { String usage = "usage: ucar.nc2.util.CompareNetcdf2 file1 file2 [-showEach] [-compareData]"; if (arg.length < 2) { System.out.println(usage); System.exit(0); } boolean showEach = false; boolean compareData = false; String file1 = arg[0]; String file2 = arg[1]; for (int i = 2; i < arg.length; i++) { String s = arg[i]; if (s.equalsIgnoreCase("-showEach")) showEach = true; if (s.equalsIgnoreCase("-compareData")) compareData = true; } NetcdfFile ncfile1 = NetcdfDataset.open(file1); NetcdfFile ncfile2 = NetcdfDataset.open(file2); compareFiles(ncfile1, ncfile2, new Formatter(System.out), true, compareData, showEach); ncfile1.close(); ncfile2.close(); }
public static void main(String arg[]) throws IOException { String usage = "usage: ucar.nc2.util.CompareNetcdf2 file1 file2 [-showEach] [-compareData]"; if (arg.length < 2) { System.out.println(usage); System.exit(0); } boolean showEach = false; boolean compareData = false; String file1 = arg[0]; String file2 = arg[1]; for (int i = 2; i < arg.length; i++) { String s = arg[i]; if (s.equalsIgnoreCase("-showEach")) showEach = true; if (s.equalsIgnoreCase("-compareData")) compareData = true; } NetcdfFile ncfile1 = NetcdfDataset.open(file1); NetcdfFile ncfile2 = NetcdfDataset.open(file2); compareFiles(ncfile1, ncfile2, new Formatter(System.out), true, compareData, showEach); ncfile1.close(); ncfile2.close(); }
boolean ok = CompareNetcdf2.compareFiles(nc1, nc2, out, false, false, false); System.out.printf("---fd compare ok %s%n%s%n", ok,out);
NetcdfDataset ncd2 = NetcdfDataset.wrap(ncd, NetcdfDataset.getEnhanceAll()); Formatter out = new Formatter(); ok &= CompareNetcdf2.compareFiles(ncd, ncd2, out, false, false, false); System.out.printf("----------------%nfile=%s%n%s%n", filename, out);