[MOAB-dev] r4049 - in MOAB/trunk/src: . io

tautges at mcs.anl.gov tautges at mcs.anl.gov
Fri Jul 9 22:56:42 CDT 2010


Author: tautges
Date: 2010-07-09 22:56:41 -0500 (Fri, 09 Jul 2010)
New Revision: 4049

Added:
   MOAB/trunk/src/io/ReadNC.cpp
   MOAB/trunk/src/io/ReadNC.hpp
Modified:
   MOAB/trunk/src/ReaderWriterSet.cpp
   MOAB/trunk/src/io/Makefile.am
Log:
Initial code in NC reader (this format is for climate datasets).



Modified: MOAB/trunk/src/ReaderWriterSet.cpp
===================================================================
--- MOAB/trunk/src/ReaderWriterSet.cpp	2010-07-09 16:23:15 UTC (rev 4048)
+++ MOAB/trunk/src/ReaderWriterSet.cpp	2010-07-10 03:56:41 UTC (rev 4049)
@@ -46,6 +46,7 @@
 #  include "ReadNCDF.hpp"
 #  include "WriteNCDF.hpp"
 #  include "WriteSLAC.hpp"
+#  include "ReadNC.hpp"
 #endif
 
 #ifdef CCMIO_FILE
@@ -83,6 +84,7 @@
 #ifdef NETCDF_FILE
   const char* exo_sufxs[] = { "exo", "exoII", "exo2", "g", "gen", NULL };
   register_factory( ReadNCDF::factory, WriteNCDF::factory, "Exodus II", exo_sufxs, "EXODUS" );
+  register_factory( ReadNC::factory, NULL, "Climate NC", "nc", "NC" );
 #endif
 
   register_factory( ReadIDEAS::factory, NULL, "IDEAS format", "unv", "UNV" );

Modified: MOAB/trunk/src/io/Makefile.am
===================================================================
--- MOAB/trunk/src/io/Makefile.am	2010-07-09 16:23:15 UTC (rev 4048)
+++ MOAB/trunk/src/io/Makefile.am	2010-07-10 03:56:41 UTC (rev 4049)
@@ -15,7 +15,8 @@
 if NETCDF_FILE
   MOAB_NETCDF_SRCS = ReadNCDF.cpp  ReadNCDF.hpp \
                      WriteNCDF.cpp WriteNCDF.hpp \
-                     WriteSLAC.cpp WriteSLAC.hpp 
+                     WriteSLAC.cpp WriteSLAC.hpp \
+                     ReadNC.cpp ReadNC.hpp
 else
   MOAB_NETCDF_SRCS =
 endif

Added: MOAB/trunk/src/io/ReadNC.cpp
===================================================================
--- MOAB/trunk/src/io/ReadNC.cpp	                        (rev 0)
+++ MOAB/trunk/src/io/ReadNC.cpp	2010-07-10 03:56:41 UTC (rev 4049)
@@ -0,0 +1,292 @@
+#include "ReadNC.hpp"
+#include "netcdf.h"
+
+#include <algorithm>
+#include <string>
+#include <assert.h>
+#include <stdio.h>
+#include <string.h>
+#include <cmath>
+#include <sstream>


More information about the moab-dev mailing list