Package util

Examples of util.Stat



  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);

View Full Code Here


      System.out.println("CD total done = " + totalRead);
    }
  }

  public static void main(String[] args) throws Exception  {
    Stat stat = new Stat();

    //testWriteCD(null);
    testWriteMM(stat, 10);

    //testReadMM( stat, 5);
    //testReadCD( stat, 5);

    stat.print();
  }
View Full Code Here

TOP

Related Classes of util.Stat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.