package ucar.nc2.ft.point.standard;

import java.io.IOException;
import java.util.Formatter;
import org.junit.Test;
import ucar.nc2.dataset.NetcdfDataset;
import ucar.unidata.util.test.TestDir;

public class TestTableAnalyzer {

  static void doit(String filename) throws IOException {
    filename = TestDir.cdmTestDataDir + filename;
    System.out.println(filename);
    NetcdfDataset ncd = ucar.nc2.dataset.NetcdfDataset.openDataset(filename);
    TableAnalyzer csa = TableAnalyzer.factory(null, null, ncd);
    csa.getDetailInfo(new Formatter(System.out));
    System.out.println("%n-----------------");
  }

  @Test
  public void testStuff() throws IOException {
    /* doit("C:/data/dt2/station/Surface_METAR_20080205_0000.nc");
    doit("C:/data/bufr/edition3/idd/profiler/PROFILER_3.bufr");
    doit("C:/data/bufr/edition3/idd/profiler/PROFILER_2.bufr");
    doit("C:/data/profile/PROFILER_wind_01hr_20080410_2300.nc"); */
    //doit("C:/data/test/20070301.nc");
    //doit("C:/data/dt2/profile/PROFILER_3.bufr");

    //doit("C:/data/dt2/station/ndbc.nc");
    //doit("C:/data/dt2/station/madis2.sao");
    // doit("C:/data/metars/Surface_METAR_20070326_0000.nc");  // ok
    //doit("C:/data/dt2/station/Sean_multidim_20070301.nc"); // ok
    //doit("Q:/cdmUnitTest/formats/gempak/surface/20090521_sao.gem");
    doit("datasets/metars/Surface_METAR_20070513_0000.nc");

    //doit("C:/data/profile/PROFILER_wind_01hr_20080410_2300.nc");
    //doit("C:/data/cadis/tempting");
  }


}

@@ -669,37 +669,41 @@
 %0A   
- /*
  doit(%22
-C:/data/dt2/station
+ncss/point_features/metars
 /Sur
@@ -719,14 +719,14 @@
 R_20
-080205
+130823
 _000
@@ -747,151 +747,50 @@
 it(%22
-C:/data/bufr/edition3/idd/profiler/PROFILER_3.bufr%22);%0A    doit(%22C:/data/bufr/edition3/idd/profiler/PROFILER_2.bufr%22);%0A    doit(%22C:/data/profile
+ncss/point_features/windProfilers/20131101
 /PRO
@@ -805,584 +805,89 @@
 nd_0
-1hr_200804
+6min_20131
 10
+1
 _23
-00
+48
 .nc%22);
- */%0A    //doit(%22C:/data/test/20070301.nc%22);%0A    //doit(%22C:/data/dt2/profile/PROFILER_3.bufr%22);%0A%0A    //doit(%22C:/data/dt2/station/ndbc.nc%22);%0A    //doit(%22C:/data/dt2/station/madis2.sao%22);%0A    // doit(%22C:/data/metars/Surface_METAR_20070326_0000.nc%22);  // ok%0A    //doit(%22C:/data/dt2/station/Sean_multidim_20070301.nc%22); // ok%0A    //doit(%22Q:/cdmUnitTest/formats/gempak/surface/20090521_sao.gem%22);%0A    doit(%22datasets/metars/Surface_METAR_20070513_0000.nc%22);%0A%0A    //doit(%22C:/data/profile/PROFILER_wind_01hr_20080410_2300.nc%22);%0A    //doit(%22C:/data/cadis/tempting
+%0A%0A    // LOOK add all in directory%0A    // doAll(%22cfPoint/
 %22);%0A

fix tests