public static void main(String[] args) {
Stat v1 = new Stat();
Stat raf = new Stat();
long total;
File topDir = new File("C:/data/conventions/");
try {
//SPFactory.setServiceProvider("ucar.nc2.SPNioMMap");
//readAllData("C:/data/conventions/csm/B06.62.atm.0703.nc", null);
//SPFactory.setServiceProvider("ucar.nc2.SPNioMMap");
//total = doOneDirRecord(topDir, mm);
//System.out.println("total bytes= "+total);
///SPFactory.setServiceProvider("ucar.nc2.SPNioCD");
//total = doOneDirRecord(topDir, cd);
//System.out.println("total bytes= "+total);
int n = 10;
SPFactory.setServiceProvider("ucar.nc2.N3ver1");
total = readSpreadData("C:/data/conventions/mm5/copy_n040.nc", v1, n);
System.out.println("total bytes= "+total);
SPFactory.setServiceProvider("ucar.nc2.iosp.netcdf3.N3raf");
total = readSpreadData("C:/data/conventions/mm5/n040.nc", raf, n);
System.out.println("total bytes= "+total);
SPFactory.setServiceProvider("ucar.nc2.N3ver1");
total = doOneDir(topDir, v1);
System.out.println("total bytes= "+total); // */
SPFactory.setServiceProvider("ucar.nc2.iosp.netcdf3.N3raf");
total = doOneDir(topDir, raf);
System.out.println("total bytes= "+total);
/* SPFactory.setServiceProvider("ucar.nc2.SPnioMMap");
total = doOneDir(topDir, mm);
System.out.println("total bytes= "+total);
SPFactory.setServiceProvider("ucar.nc2.SPnioCD");
total = doOneDir(topDir, cd);
System.out.println("total bytes= "+total); */
/* SPFactory.setServiceProvider("ucar.nc2.SPnioMMap");
total = readSpreadData("C:/data/conventions/mm5/copy2_n040.nc", mm, n);
System.out.println("total bytes= "+total);
SPFactory.setServiceProvider("ucar.nc2.SPnioCD");
total = readSpreadData("C:/data/conventions/mm5/n040.nc", cd, n);
System.out.println("total bytes= "+total); */
} catch (Exception e) {
e.printStackTrace();
}
System.out.print("Ver1=");
v1.print();
System.out.print("Raf=");
raf.print();
/*
doit(null);