Index: /trunk/psLib/src/dataIO/psLookupTable.c
===================================================================
--- /trunk/psLib/src/dataIO/psLookupTable.c	(revision 2195)
+++ /trunk/psLib/src/dataIO/psLookupTable.c	(revision 2195)
@@ -0,0 +1,35 @@
+
+/** @file  psLookupTable.c
+*
+*  @brief This file defines the structure and functions for table lookups.
+*
+*  @ingroup fileUtils
+*
+*  @author Ross Harman, MHPCC
+*
+*  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-26 00:36:50 $
+*
+*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+*/
+
+#include "psLookupTable.c"
+
+
+psLookupTable* psLookupTableAlloc(psU64 numRows, psU64 numCols)
+{
+}
+
+psLookupTable* psLookupTableRead(char *fileName)
+{
+}
+
+psF64 psLookupTableInterpolate(psLookupTable *table, psF64 index, psMaskType *status)
+{
+}
+
+psVector* psLookupTableInterpolate(psLookupTable *table, psF64 index, psMaskType *status)
+{
+}
+
+#endif
Index: /trunk/psLib/src/dataIO/psLookupTable.h
===================================================================
--- /trunk/psLib/src/dataIO/psLookupTable.h	(revision 2195)
+++ /trunk/psLib/src/dataIO/psLookupTable.h	(revision 2195)
@@ -0,0 +1,90 @@
+/** @file  psLookupTable.h
+*
+*  @brief This file defines the structure and functions for table lookups.
+*
+*  @ingroup fileUtils
+*
+*  @author Ross Harman, MHPCC
+*
+*  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-26 00:37:15 $
+*
+*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+*/
+
+#ifndef PS_LOOKUPTABLE_H
+#define PS_LOOKUPTABLE_H
+
+
+/** Lookup table structure
+ *
+ *  Holds table data read from external data files.
+ *
+ */
+typedef struct
+{
+    psVector *index;                   ///< Vector of independent index values
+    psArray *values;                   ///< Array of dependent table values corresponding to index values.
+}
+psLookupTable;
+
+
+/** Lookup error conditions
+ *
+ *  Success and failure conditions for table lookups.
+ */
+typedef enum {
+    PS_LOOKUP_SUCCESS = 0x000,         ///< Table lookup succeeded.
+    PS_LOOKUP_TOP     = 0x0001,        ///< Lookup off top of table.
+    PS_LOOKUP_BOTTOM  = 0x0002,        ///< Lookup off bottom of table.
+    PS_LOOKUP_ERROR   = 0x0003,        ///< Any other type of lookup error.
+} psLookupErrorType;
+
+/** Allocator for psLookupTable struct
+ *
+ *  Allocates a new psLookupTable struct.
+ *
+ *  @return psLookupTable*     New psLookupTable struct.
+ */
+psLookupTable* psLookupTableAlloc(
+    psU64 numRows,                  ///< Number of rows
+    psU64 numCols                   ///< number of columns
+);
+
+/** Read lookup table
+ *
+ *  Reads a lookup table and fills corresponding psLookupTable struct.
+ *
+ *  @return psLookupTable*     New psLookupTable struct.
+ */
+psLookupTable* psLookupTableRead(
+    char *fileName                  ///< Name of file to read
+);
+
+/** Lookup and interpolate value from table.
+ *
+ *  Interpolates value from table. Sets status bit for success or one of several possible failure
+ *  conditions.
+ *
+ *  @return psLookupTable*     New psLookupTable struct.
+ */
+psF64 psLookupTableInterpolate(
+    psLookupTable *table,           ///< Table with data
+    psF64 index,                    ///< Value to be interpolated
+    psMaskType *status              ///< Status of lookup.
+);
+
+/** Lookup and interpolate all values from table.
+ *
+ *  Interpolates all values from table. Sets status bit for success or one of several possible failure
+ *  conditions.
+ *
+ *  @return psLookupTable*     New psLookupTable struct.
+ */
+psVector* psLookupTableInterpolate(
+    psLookupTable *table,           ///< Table with data
+    psF64 index,                    ///< Value to be interpolated
+    psMaskType *status              ///< Status of lookup.
+);
+
+#endif
Index: /trunk/psLib/src/fileUtils/psLookupTable.c
===================================================================
--- /trunk/psLib/src/fileUtils/psLookupTable.c	(revision 2195)
+++ /trunk/psLib/src/fileUtils/psLookupTable.c	(revision 2195)
@@ -0,0 +1,35 @@
+
+/** @file  psLookupTable.c
+*
+*  @brief This file defines the structure and functions for table lookups.
+*
+*  @ingroup fileUtils
+*
+*  @author Ross Harman, MHPCC
+*
+*  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-26 00:36:50 $
+*
+*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+*/
+
+#include "psLookupTable.c"
+
+
+psLookupTable* psLookupTableAlloc(psU64 numRows, psU64 numCols)
+{
+}
+
+psLookupTable* psLookupTableRead(char *fileName)
+{
+}
+
+psF64 psLookupTableInterpolate(psLookupTable *table, psF64 index, psMaskType *status)
+{
+}
+
+psVector* psLookupTableInterpolate(psLookupTable *table, psF64 index, psMaskType *status)
+{
+}
+
+#endif
Index: /trunk/psLib/src/fileUtils/psLookupTable.h
===================================================================
--- /trunk/psLib/src/fileUtils/psLookupTable.h	(revision 2195)
+++ /trunk/psLib/src/fileUtils/psLookupTable.h	(revision 2195)
@@ -0,0 +1,90 @@
+/** @file  psLookupTable.h
+*
+*  @brief This file defines the structure and functions for table lookups.
+*
+*  @ingroup fileUtils
+*
+*  @author Ross Harman, MHPCC
+*
+*  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-26 00:37:15 $
+*
+*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+*/
+
+#ifndef PS_LOOKUPTABLE_H
+#define PS_LOOKUPTABLE_H
+
+
+/** Lookup table structure
+ *
+ *  Holds table data read from external data files.
+ *
+ */
+typedef struct
+{
+    psVector *index;                   ///< Vector of independent index values
+    psArray *values;                   ///< Array of dependent table values corresponding to index values.
+}
+psLookupTable;
+
+
+/** Lookup error conditions
+ *
+ *  Success and failure conditions for table lookups.
+ */
+typedef enum {
+    PS_LOOKUP_SUCCESS = 0x000,         ///< Table lookup succeeded.
+    PS_LOOKUP_TOP     = 0x0001,        ///< Lookup off top of table.
+    PS_LOOKUP_BOTTOM  = 0x0002,        ///< Lookup off bottom of table.
+    PS_LOOKUP_ERROR   = 0x0003,        ///< Any other type of lookup error.
+} psLookupErrorType;
+
+/** Allocator for psLookupTable struct
+ *
+ *  Allocates a new psLookupTable struct.
+ *
+ *  @return psLookupTable*     New psLookupTable struct.
+ */
+psLookupTable* psLookupTableAlloc(
+    psU64 numRows,                  ///< Number of rows
+    psU64 numCols                   ///< number of columns
+);
+
+/** Read lookup table
+ *
+ *  Reads a lookup table and fills corresponding psLookupTable struct.
+ *
+ *  @return psLookupTable*     New psLookupTable struct.
+ */
+psLookupTable* psLookupTableRead(
+    char *fileName                  ///< Name of file to read
+);
+
+/** Lookup and interpolate value from table.
+ *
+ *  Interpolates value from table. Sets status bit for success or one of several possible failure
+ *  conditions.
+ *
+ *  @return psLookupTable*     New psLookupTable struct.
+ */
+psF64 psLookupTableInterpolate(
+    psLookupTable *table,           ///< Table with data
+    psF64 index,                    ///< Value to be interpolated
+    psMaskType *status              ///< Status of lookup.
+);
+
+/** Lookup and interpolate all values from table.
+ *
+ *  Interpolates all values from table. Sets status bit for success or one of several possible failure
+ *  conditions.
+ *
+ *  @return psLookupTable*     New psLookupTable struct.
+ */
+psVector* psLookupTableInterpolate(
+    psLookupTable *table,           ///< Table with data
+    psF64 index,                    ///< Value to be interpolated
+    psMaskType *status              ///< Status of lookup.
+);
+
+#endif
Index: /trunk/psLib/src/types/psLookupTable.c
===================================================================
--- /trunk/psLib/src/types/psLookupTable.c	(revision 2195)
+++ /trunk/psLib/src/types/psLookupTable.c	(revision 2195)
@@ -0,0 +1,35 @@
+
+/** @file  psLookupTable.c
+*
+*  @brief This file defines the structure and functions for table lookups.
+*
+*  @ingroup fileUtils
+*
+*  @author Ross Harman, MHPCC
+*
+*  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-26 00:36:50 $
+*
+*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+*/
+
+#include "psLookupTable.c"
+
+
+psLookupTable* psLookupTableAlloc(psU64 numRows, psU64 numCols)
+{
+}
+
+psLookupTable* psLookupTableRead(char *fileName)
+{
+}
+
+psF64 psLookupTableInterpolate(psLookupTable *table, psF64 index, psMaskType *status)
+{
+}
+
+psVector* psLookupTableInterpolate(psLookupTable *table, psF64 index, psMaskType *status)
+{
+}
+
+#endif
Index: /trunk/psLib/src/types/psLookupTable.h
===================================================================
--- /trunk/psLib/src/types/psLookupTable.h	(revision 2195)
+++ /trunk/psLib/src/types/psLookupTable.h	(revision 2195)
@@ -0,0 +1,90 @@
+/** @file  psLookupTable.h
+*
+*  @brief This file defines the structure and functions for table lookups.
+*
+*  @ingroup fileUtils
+*
+*  @author Ross Harman, MHPCC
+*
+*  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-26 00:37:15 $
+*
+*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+*/
+
+#ifndef PS_LOOKUPTABLE_H
+#define PS_LOOKUPTABLE_H
+
+
+/** Lookup table structure
+ *
+ *  Holds table data read from external data files.
+ *
+ */
+typedef struct
+{
+    psVector *index;                   ///< Vector of independent index values
+    psArray *values;                   ///< Array of dependent table values corresponding to index values.
+}
+psLookupTable;
+
+
+/** Lookup error conditions
+ *
+ *  Success and failure conditions for table lookups.
+ */
+typedef enum {
+    PS_LOOKUP_SUCCESS = 0x000,         ///< Table lookup succeeded.
+    PS_LOOKUP_TOP     = 0x0001,        ///< Lookup off top of table.
+    PS_LOOKUP_BOTTOM  = 0x0002,        ///< Lookup off bottom of table.
+    PS_LOOKUP_ERROR   = 0x0003,        ///< Any other type of lookup error.
+} psLookupErrorType;
+
+/** Allocator for psLookupTable struct
+ *
+ *  Allocates a new psLookupTable struct.
+ *
+ *  @return psLookupTable*     New psLookupTable struct.
+ */
+psLookupTable* psLookupTableAlloc(
+    psU64 numRows,                  ///< Number of rows
+    psU64 numCols                   ///< number of columns
+);
+
+/** Read lookup table
+ *
+ *  Reads a lookup table and fills corresponding psLookupTable struct.
+ *
+ *  @return psLookupTable*     New psLookupTable struct.
+ */
+psLookupTable* psLookupTableRead(
+    char *fileName                  ///< Name of file to read
+);
+
+/** Lookup and interpolate value from table.
+ *
+ *  Interpolates value from table. Sets status bit for success or one of several possible failure
+ *  conditions.
+ *
+ *  @return psLookupTable*     New psLookupTable struct.
+ */
+psF64 psLookupTableInterpolate(
+    psLookupTable *table,           ///< Table with data
+    psF64 index,                    ///< Value to be interpolated
+    psMaskType *status              ///< Status of lookup.
+);
+
+/** Lookup and interpolate all values from table.
+ *
+ *  Interpolates all values from table. Sets status bit for success or one of several possible failure
+ *  conditions.
+ *
+ *  @return psLookupTable*     New psLookupTable struct.
+ */
+psVector* psLookupTableInterpolate(
+    psLookupTable *table,           ///< Table with data
+    psF64 index,                    ///< Value to be interpolated
+    psMaskType *status              ///< Status of lookup.
+);
+
+#endif
