Index: /trunk/psLib/src/astronomy/psDB.c
===================================================================
--- /trunk/psLib/src/astronomy/psDB.c	(revision 3670)
+++ /trunk/psLib/src/astronomy/psDB.c	(revision 3671)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-03-31 02:54:27 $
+ *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -360,7 +360,4 @@
         // valid for psVector?
         break;
-    case PS_TYPE_PTR:
-        // valid for psVector?
-        break;
     }
 
@@ -448,5 +445,5 @@
 
             // copy field data and convert NULLs to the appropriate NaN value
-            if ((pType == PS_TYPE_PTR) || (pType == PS_META_STR)) {
+            if (pType == PS_META_STR) {
                 psMetadataAddStr(md, 0, field[i].name, "", data);
             } else if (pType == PS_META_S32) {
@@ -621,5 +618,5 @@
         // column as an psArray of strings; otherwise fetch the column as a
         // psVector.
-        if ((pType == PS_TYPE_PTR) || (pType == PS_META_STR)) {
+        if (pType == PS_META_STR) {
             // PS_META_UNKNOWN -> PS_META_ARRAY ?
             column = psDBSelectColumn(dbh, tableName, field[i].name, 0);
@@ -821,5 +818,5 @@
                    (item->type == PS_META_LOOKUPTABLE) || (item->type == PS_META_JPEG)   ||
                    (item->type == PS_META_PNG)         || (item->type == PS_META_ASTROM) ||
-                   (item->type == PS_META_UNKNOWN)     || (item->type == PS_TYPE_PTR)) {
+                   (item->type == PS_META_UNKNOWN)) {
 
             bind[i].buffer_length = (unsigned long)strlen((char *)item->data.V);
@@ -881,5 +878,5 @@
                    (item->type == PS_META_LOOKUPTABLE) || (item->type == PS_META_JPEG)   ||
                    (item->type == PS_META_PNG)         || (item->type == PS_META_ASTROM) ||
-                   (item->type == PS_META_UNKNOWN)     || (item->type == PS_TYPE_PTR)) {
+                   (item->type == PS_META_UNKNOWN)) {
             // + column name + _ + varchar( + length + )
             psStringAppend(&query, "%s VARCHAR(%s)", item->name, item->data.V);
@@ -1271,5 +1268,4 @@
         psDBAddToLookupTable(lookupTable, PS_TYPE_C64, "PS_TYPE_C64 is not supported");
         psDBAddToLookupTable(lookupTable, PS_TYPE_BOOL,"BOOLEAN");
-        psDBAddToLookupTable(lookupTable, PS_TYPE_PTR, "BLOB");
         psDBAddToLookupTable(lookupTable, PS_META_STR, "BLOB");
     }
@@ -1324,5 +1320,5 @@
 
         // DECIMAL does not exist in the pType to SQL table
-        value = psDBIntToString((psU64)PS_TYPE_PTR);
+        value = psDBIntToString(0);
         psHashAdd(lookupTable, "DECIMAL", value);
         psFree(value);
@@ -1416,5 +1412,6 @@
         psDBAddVoidToLookupTable(lookupTable, PS_TYPE_C64,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
         psDBAddVoidToLookupTable(lookupTable, PS_TYPE_BOOL,   psDBMySQLTypeAlloc(MYSQL_TYPE_TINY,       true));
-        psDBAddVoidToLookupTable(lookupTable, PS_TYPE_PTR,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
+        // XXX: removed PS_TYPE_PTR, can this be removed too?
+        // psDBAddVoidToLookupTable(lookupTable, PS_TYPE_PTR,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
 
         psDBAddVoidToLookupTable(lookupTable, PS_META_STR,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
@@ -1538,7 +1535,4 @@
         // what is NaN for a bool?
         break;
-    case PS_TYPE_PTR:
-        PS_NAN_ALLOC(myNaN, char, '\0');
-        break;
     }
 
@@ -1593,7 +1587,4 @@
     case PS_TYPE_BOOL:
         // what is NaN for a bool?
-        break;
-    case PS_TYPE_PTR:
-        isNaN = PS_IS_NAN(char, data, '\0');
         break;
     }
Index: /trunk/psLib/src/astronomy/psMetadata.h
===================================================================
--- /trunk/psLib/src/astronomy/psMetadata.h	(revision 3670)
+++ /trunk/psLib/src/astronomy/psMetadata.h	(revision 3671)
@@ -11,6 +11,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-03-29 22:13:53 $
+*  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-04-06 01:12:58 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -64,5 +64,5 @@
         (METATYPE==PS_META_F32) ? PS_TYPE_F32 : \
         (METATYPE==PS_META_F64) ? PS_TYPE_F64 : \
-        (METATYPE==PS_META_BOOL) ? PS_TYPE_BOOL : PS_TYPE_PTR )
+        (METATYPE==PS_META_BOOL) ? PS_TYPE_BOOL : 0 )
 
 /** Option flags for psMetadata functions
Index: /trunk/psLib/src/astronomy/psMetadataIO.c
===================================================================
--- /trunk/psLib/src/astronomy/psMetadataIO.c	(revision 3670)
+++ /trunk/psLib/src/astronomy/psMetadataIO.c	(revision 3671)
@@ -9,6 +9,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-03-17 19:01:01 $
+*  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-04-06 01:12:58 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -509,5 +509,5 @@
     char *strComment = NULL;
     char *linePtr = NULL;
-    psElemType vecType = PS_TYPE_PTR;
+    psElemType vecType = 0;
     psS32 status = 0;
     psU32 lineCount = 0;
@@ -956,5 +956,5 @@
     psS32 status = 0;
     psU32 lineNumber = 0;
-    psElemType pType = PS_TYPE_PTR;
+    psElemType pType = 0;
     char *strName = NULL;
     char *strType = NULL;
Index: /trunk/psLib/src/collections/psMetadata.h
===================================================================
--- /trunk/psLib/src/collections/psMetadata.h	(revision 3670)
+++ /trunk/psLib/src/collections/psMetadata.h	(revision 3671)
@@ -11,6 +11,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-03-29 22:13:53 $
+*  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-04-06 01:12:58 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -64,5 +64,5 @@
         (METATYPE==PS_META_F32) ? PS_TYPE_F32 : \
         (METATYPE==PS_META_F64) ? PS_TYPE_F64 : \
-        (METATYPE==PS_META_BOOL) ? PS_TYPE_BOOL : PS_TYPE_PTR )
+        (METATYPE==PS_META_BOOL) ? PS_TYPE_BOOL : 0 )
 
 /** Option flags for psMetadata functions
Index: /trunk/psLib/src/collections/psMetadataIO.c
===================================================================
--- /trunk/psLib/src/collections/psMetadataIO.c	(revision 3670)
+++ /trunk/psLib/src/collections/psMetadataIO.c	(revision 3671)
@@ -9,6 +9,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-03-17 19:01:01 $
+*  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-04-06 01:12:58 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -509,5 +509,5 @@
     char *strComment = NULL;
     char *linePtr = NULL;
-    psElemType vecType = PS_TYPE_PTR;
+    psElemType vecType = 0;
     psS32 status = 0;
     psU32 lineCount = 0;
@@ -956,5 +956,5 @@
     psS32 status = 0;
     psU32 lineNumber = 0;
-    psElemType pType = PS_TYPE_PTR;
+    psElemType pType = 0;
     char *strName = NULL;
     char *strType = NULL;
Index: /trunk/psLib/src/dataIO/psDB.c
===================================================================
--- /trunk/psLib/src/dataIO/psDB.c	(revision 3670)
+++ /trunk/psLib/src/dataIO/psDB.c	(revision 3671)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-03-31 02:54:27 $
+ *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -360,7 +360,4 @@
         // valid for psVector?
         break;
-    case PS_TYPE_PTR:
-        // valid for psVector?
-        break;
     }
 
@@ -448,5 +445,5 @@
 
             // copy field data and convert NULLs to the appropriate NaN value
-            if ((pType == PS_TYPE_PTR) || (pType == PS_META_STR)) {
+            if (pType == PS_META_STR) {
                 psMetadataAddStr(md, 0, field[i].name, "", data);
             } else if (pType == PS_META_S32) {
@@ -621,5 +618,5 @@
         // column as an psArray of strings; otherwise fetch the column as a
         // psVector.
-        if ((pType == PS_TYPE_PTR) || (pType == PS_META_STR)) {
+        if (pType == PS_META_STR) {
             // PS_META_UNKNOWN -> PS_META_ARRAY ?
             column = psDBSelectColumn(dbh, tableName, field[i].name, 0);
@@ -821,5 +818,5 @@
                    (item->type == PS_META_LOOKUPTABLE) || (item->type == PS_META_JPEG)   ||
                    (item->type == PS_META_PNG)         || (item->type == PS_META_ASTROM) ||
-                   (item->type == PS_META_UNKNOWN)     || (item->type == PS_TYPE_PTR)) {
+                   (item->type == PS_META_UNKNOWN)) {
 
             bind[i].buffer_length = (unsigned long)strlen((char *)item->data.V);
@@ -881,5 +878,5 @@
                    (item->type == PS_META_LOOKUPTABLE) || (item->type == PS_META_JPEG)   ||
                    (item->type == PS_META_PNG)         || (item->type == PS_META_ASTROM) ||
-                   (item->type == PS_META_UNKNOWN)     || (item->type == PS_TYPE_PTR)) {
+                   (item->type == PS_META_UNKNOWN)) {
             // + column name + _ + varchar( + length + )
             psStringAppend(&query, "%s VARCHAR(%s)", item->name, item->data.V);
@@ -1271,5 +1268,4 @@
         psDBAddToLookupTable(lookupTable, PS_TYPE_C64, "PS_TYPE_C64 is not supported");
         psDBAddToLookupTable(lookupTable, PS_TYPE_BOOL,"BOOLEAN");
-        psDBAddToLookupTable(lookupTable, PS_TYPE_PTR, "BLOB");
         psDBAddToLookupTable(lookupTable, PS_META_STR, "BLOB");
     }
@@ -1324,5 +1320,5 @@
 
         // DECIMAL does not exist in the pType to SQL table
-        value = psDBIntToString((psU64)PS_TYPE_PTR);
+        value = psDBIntToString(0);
         psHashAdd(lookupTable, "DECIMAL", value);
         psFree(value);
@@ -1416,5 +1412,6 @@
         psDBAddVoidToLookupTable(lookupTable, PS_TYPE_C64,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
         psDBAddVoidToLookupTable(lookupTable, PS_TYPE_BOOL,   psDBMySQLTypeAlloc(MYSQL_TYPE_TINY,       true));
-        psDBAddVoidToLookupTable(lookupTable, PS_TYPE_PTR,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
+        // XXX: removed PS_TYPE_PTR, can this be removed too?
+        // psDBAddVoidToLookupTable(lookupTable, PS_TYPE_PTR,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
 
         psDBAddVoidToLookupTable(lookupTable, PS_META_STR,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
@@ -1538,7 +1535,4 @@
         // what is NaN for a bool?
         break;
-    case PS_TYPE_PTR:
-        PS_NAN_ALLOC(myNaN, char, '\0');
-        break;
     }
 
@@ -1593,7 +1587,4 @@
     case PS_TYPE_BOOL:
         // what is NaN for a bool?
-        break;
-    case PS_TYPE_PTR:
-        isNaN = PS_IS_NAN(char, data, '\0');
         break;
     }
Index: /trunk/psLib/src/dataIO/psFits.c
===================================================================
--- /trunk/psLib/src/dataIO/psFits.c	(revision 3670)
+++ /trunk/psLib/src/dataIO/psFits.c	(revision 3671)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-04-05 19:33:30 $
+ *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -27,4 +27,5 @@
 #define MAX_STRING_LENGTH 256  // maximum length string for FITS routines
 
+// list of FITS header keys to ignore.
 static char* standardFitsKeys[] = {
                                       NULL
@@ -72,5 +73,5 @@
                 "Unknown FITS datatype, %d.",
                 datatype);
-        return PS_TYPE_PTR;
+        return 0;
     }
 }
Index: /trunk/psLib/src/dataManip/psFunctions.c
===================================================================
--- /trunk/psLib/src/dataManip/psFunctions.c	(revision 3670)
+++ /trunk/psLib/src/dataManip/psFunctions.c	(revision 3671)
@@ -7,6 +7,6 @@
  *  polynomials.  It also contains a Gaussian functions.
  *
- *  @version $Revision: 1.94 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-03-10 22:33:57 $
+ *  @version $Revision: 1.95 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -1985,4 +1985,5 @@
                 PS_ERRORTEXT_psFunctions_TYPE_NOT_SUPPORTED,
                 strType);
+        return 0;
     case PS_TYPE_C64:
         PS_TYPE_NAME(strType,x->type.type);
@@ -1990,9 +1991,5 @@
                 PS_ERRORTEXT_psFunctions_TYPE_NOT_SUPPORTED,
                 strType);
-    case PS_TYPE_PTR:
-        PS_TYPE_NAME(strType,x->type.type);
-        psError(PS_ERR_BAD_PARAMETER_TYPE,
-                PS_ERRORTEXT_psFunctions_TYPE_NOT_SUPPORTED,
-                strType);
+        return 0;
     case PS_TYPE_BOOL:
         PS_TYPE_NAME(strType,x->type.type);
@@ -2000,4 +1997,5 @@
                 PS_ERRORTEXT_psFunctions_TYPE_NOT_SUPPORTED,
                 strType);
+        return 0;
     }
     return(-3);
Index: /trunk/psLib/src/db/psDB.c
===================================================================
--- /trunk/psLib/src/db/psDB.c	(revision 3670)
+++ /trunk/psLib/src/db/psDB.c	(revision 3671)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-03-31 02:54:27 $
+ *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -360,7 +360,4 @@
         // valid for psVector?
         break;
-    case PS_TYPE_PTR:
-        // valid for psVector?
-        break;
     }
 
@@ -448,5 +445,5 @@
 
             // copy field data and convert NULLs to the appropriate NaN value
-            if ((pType == PS_TYPE_PTR) || (pType == PS_META_STR)) {
+            if (pType == PS_META_STR) {
                 psMetadataAddStr(md, 0, field[i].name, "", data);
             } else if (pType == PS_META_S32) {
@@ -621,5 +618,5 @@
         // column as an psArray of strings; otherwise fetch the column as a
         // psVector.
-        if ((pType == PS_TYPE_PTR) || (pType == PS_META_STR)) {
+        if (pType == PS_META_STR) {
             // PS_META_UNKNOWN -> PS_META_ARRAY ?
             column = psDBSelectColumn(dbh, tableName, field[i].name, 0);
@@ -821,5 +818,5 @@
                    (item->type == PS_META_LOOKUPTABLE) || (item->type == PS_META_JPEG)   ||
                    (item->type == PS_META_PNG)         || (item->type == PS_META_ASTROM) ||
-                   (item->type == PS_META_UNKNOWN)     || (item->type == PS_TYPE_PTR)) {
+                   (item->type == PS_META_UNKNOWN)) {
 
             bind[i].buffer_length = (unsigned long)strlen((char *)item->data.V);
@@ -881,5 +878,5 @@
                    (item->type == PS_META_LOOKUPTABLE) || (item->type == PS_META_JPEG)   ||
                    (item->type == PS_META_PNG)         || (item->type == PS_META_ASTROM) ||
-                   (item->type == PS_META_UNKNOWN)     || (item->type == PS_TYPE_PTR)) {
+                   (item->type == PS_META_UNKNOWN)) {
             // + column name + _ + varchar( + length + )
             psStringAppend(&query, "%s VARCHAR(%s)", item->name, item->data.V);
@@ -1271,5 +1268,4 @@
         psDBAddToLookupTable(lookupTable, PS_TYPE_C64, "PS_TYPE_C64 is not supported");
         psDBAddToLookupTable(lookupTable, PS_TYPE_BOOL,"BOOLEAN");
-        psDBAddToLookupTable(lookupTable, PS_TYPE_PTR, "BLOB");
         psDBAddToLookupTable(lookupTable, PS_META_STR, "BLOB");
     }
@@ -1324,5 +1320,5 @@
 
         // DECIMAL does not exist in the pType to SQL table
-        value = psDBIntToString((psU64)PS_TYPE_PTR);
+        value = psDBIntToString(0);
         psHashAdd(lookupTable, "DECIMAL", value);
         psFree(value);
@@ -1416,5 +1412,6 @@
         psDBAddVoidToLookupTable(lookupTable, PS_TYPE_C64,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
         psDBAddVoidToLookupTable(lookupTable, PS_TYPE_BOOL,   psDBMySQLTypeAlloc(MYSQL_TYPE_TINY,       true));
-        psDBAddVoidToLookupTable(lookupTable, PS_TYPE_PTR,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
+        // XXX: removed PS_TYPE_PTR, can this be removed too?
+        // psDBAddVoidToLookupTable(lookupTable, PS_TYPE_PTR,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
 
         psDBAddVoidToLookupTable(lookupTable, PS_META_STR,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
@@ -1538,7 +1535,4 @@
         // what is NaN for a bool?
         break;
-    case PS_TYPE_PTR:
-        PS_NAN_ALLOC(myNaN, char, '\0');
-        break;
     }
 
@@ -1593,7 +1587,4 @@
     case PS_TYPE_BOOL:
         // what is NaN for a bool?
-        break;
-    case PS_TYPE_PTR:
-        isNaN = PS_IS_NAN(char, data, '\0');
         break;
     }
Index: /trunk/psLib/src/fft/psImageFFT.c
===================================================================
--- /trunk/psLib/src/fft/psImageFFT.c	(revision 3670)
+++ /trunk/psLib/src/fft/psImageFFT.c	(revision 3671)
@@ -5,6 +5,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-02-22 19:38:44 $
+ *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -126,5 +126,5 @@
 
     /* if not a complex number, this is logically just a copy then */
-    if (!PS_IS_PSELEMTYPE_COMPLEX(type) && type != PS_TYPE_PTR) {
+    if (!PS_IS_PSELEMTYPE_COMPLEX(type)) {
         return psImageCopy(out, in, type);
     }
@@ -186,5 +186,5 @@
 
     /* if not a complex image type, this is logically just zeroed image of same size */
-    if (!PS_IS_PSELEMTYPE_COMPLEX(type) && type != PS_TYPE_PTR) {
+    if (!PS_IS_PSELEMTYPE_COMPLEX(type)) {
         out = psImageRecycle(out, numCols, numRows, type);
         memset(out->data.V[0], 0, PSELEMTYPE_SIZEOF(type) * numCols * numRows);
@@ -327,5 +327,5 @@
 
     /* if not a complex image, this is logically just a image copy */
-    if (!PS_IS_PSELEMTYPE_COMPLEX(type) && type != PS_TYPE_PTR) {
+    if (!PS_IS_PSELEMTYPE_COMPLEX(type)) {
         return psImageCopy(out, in, type);
     }
Index: /trunk/psLib/src/fileUtils/psDB.c
===================================================================
--- /trunk/psLib/src/fileUtils/psDB.c	(revision 3670)
+++ /trunk/psLib/src/fileUtils/psDB.c	(revision 3671)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-03-31 02:54:27 $
+ *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -360,7 +360,4 @@
         // valid for psVector?
         break;
-    case PS_TYPE_PTR:
-        // valid for psVector?
-        break;
     }
 
@@ -448,5 +445,5 @@
 
             // copy field data and convert NULLs to the appropriate NaN value
-            if ((pType == PS_TYPE_PTR) || (pType == PS_META_STR)) {
+            if (pType == PS_META_STR) {
                 psMetadataAddStr(md, 0, field[i].name, "", data);
             } else if (pType == PS_META_S32) {
@@ -621,5 +618,5 @@
         // column as an psArray of strings; otherwise fetch the column as a
         // psVector.
-        if ((pType == PS_TYPE_PTR) || (pType == PS_META_STR)) {
+        if (pType == PS_META_STR) {
             // PS_META_UNKNOWN -> PS_META_ARRAY ?
             column = psDBSelectColumn(dbh, tableName, field[i].name, 0);
@@ -821,5 +818,5 @@
                    (item->type == PS_META_LOOKUPTABLE) || (item->type == PS_META_JPEG)   ||
                    (item->type == PS_META_PNG)         || (item->type == PS_META_ASTROM) ||
-                   (item->type == PS_META_UNKNOWN)     || (item->type == PS_TYPE_PTR)) {
+                   (item->type == PS_META_UNKNOWN)) {
 
             bind[i].buffer_length = (unsigned long)strlen((char *)item->data.V);
@@ -881,5 +878,5 @@
                    (item->type == PS_META_LOOKUPTABLE) || (item->type == PS_META_JPEG)   ||
                    (item->type == PS_META_PNG)         || (item->type == PS_META_ASTROM) ||
-                   (item->type == PS_META_UNKNOWN)     || (item->type == PS_TYPE_PTR)) {
+                   (item->type == PS_META_UNKNOWN)) {
             // + column name + _ + varchar( + length + )
             psStringAppend(&query, "%s VARCHAR(%s)", item->name, item->data.V);
@@ -1271,5 +1268,4 @@
         psDBAddToLookupTable(lookupTable, PS_TYPE_C64, "PS_TYPE_C64 is not supported");
         psDBAddToLookupTable(lookupTable, PS_TYPE_BOOL,"BOOLEAN");
-        psDBAddToLookupTable(lookupTable, PS_TYPE_PTR, "BLOB");
         psDBAddToLookupTable(lookupTable, PS_META_STR, "BLOB");
     }
@@ -1324,5 +1320,5 @@
 
         // DECIMAL does not exist in the pType to SQL table
-        value = psDBIntToString((psU64)PS_TYPE_PTR);
+        value = psDBIntToString(0);
         psHashAdd(lookupTable, "DECIMAL", value);
         psFree(value);
@@ -1416,5 +1412,6 @@
         psDBAddVoidToLookupTable(lookupTable, PS_TYPE_C64,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
         psDBAddVoidToLookupTable(lookupTable, PS_TYPE_BOOL,   psDBMySQLTypeAlloc(MYSQL_TYPE_TINY,       true));
-        psDBAddVoidToLookupTable(lookupTable, PS_TYPE_PTR,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
+        // XXX: removed PS_TYPE_PTR, can this be removed too?
+        // psDBAddVoidToLookupTable(lookupTable, PS_TYPE_PTR,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
 
         psDBAddVoidToLookupTable(lookupTable, PS_META_STR,    psDBMySQLTypeAlloc(MYSQL_TYPE_VAR_STRING, false));
@@ -1538,7 +1535,4 @@
         // what is NaN for a bool?
         break;
-    case PS_TYPE_PTR:
-        PS_NAN_ALLOC(myNaN, char, '\0');
-        break;
     }
 
@@ -1593,7 +1587,4 @@
     case PS_TYPE_BOOL:
         // what is NaN for a bool?
-        break;
-    case PS_TYPE_PTR:
-        isNaN = PS_IS_NAN(char, data, '\0');
         break;
     }
Index: /trunk/psLib/src/fileUtils/psFits.c
===================================================================
--- /trunk/psLib/src/fileUtils/psFits.c	(revision 3670)
+++ /trunk/psLib/src/fileUtils/psFits.c	(revision 3671)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-04-05 19:33:30 $
+ *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -27,4 +27,5 @@
 #define MAX_STRING_LENGTH 256  // maximum length string for FITS routines
 
+// list of FITS header keys to ignore.
 static char* standardFitsKeys[] = {
                                       NULL
@@ -72,5 +73,5 @@
                 "Unknown FITS datatype, %d.",
                 datatype);
-        return PS_TYPE_PTR;
+        return 0;
     }
 }
Index: /trunk/psLib/src/fits/psFits.c
===================================================================
--- /trunk/psLib/src/fits/psFits.c	(revision 3670)
+++ /trunk/psLib/src/fits/psFits.c	(revision 3671)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-04-05 19:33:30 $
+ *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -27,4 +27,5 @@
 #define MAX_STRING_LENGTH 256  // maximum length string for FITS routines
 
+// list of FITS header keys to ignore.
 static char* standardFitsKeys[] = {
                                       NULL
@@ -72,5 +73,5 @@
                 "Unknown FITS datatype, %d.",
                 datatype);
-        return PS_TYPE_PTR;
+        return 0;
     }
 }
Index: /trunk/psLib/src/image/psImage.c
===================================================================
--- /trunk/psLib/src/image/psImage.c	(revision 3670)
+++ /trunk/psLib/src/image/psImage.c	(revision 3671)
@@ -9,6 +9,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.61 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-03-18 02:35:14 $
+ *  @version $Revision: 1.62 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -35,18 +35,4 @@
     if (image == NULL) {
         return;
-    }
-
-    if (image->type.type == PS_TYPE_PTR) {
-        // 2-D array of pointers -- must dereference elements
-        psU32 oldNumRows = image->numRows;
-        psU32 oldNumCols = image->numCols;
-        psPtr* rowPtr;
-
-        for (psU32 row = 0; row < oldNumRows; row++) {
-            rowPtr = image->data.PTR[row];
-            for (psU32 col = 0; col < oldNumCols; col++) {
-                psMemDecrRefCounter(rowPtr[col]);
-            }
-        }
     }
 
@@ -188,20 +174,4 @@
     }
 
-    if (old->type.type == PS_TYPE_PTR) {
-        // 2-D array of pointers -- must
-        // dereference
-        psU32 oldNumRows = old->numRows;
-        psU32 oldNumCols = old->numCols;
-        psPtr* rowPtr;
-
-        for (psU32 row = 0; row < oldNumRows; row++) {
-            rowPtr = old->data.PTR[row];
-            for (psU32 col = 0; col < oldNumCols; col++) {
-                psMemDecrRefCounter(rowPtr[col]);
-                rowPtr[col] = NULL;
-            }
-        }
-    }
-
     /* image already the right size/type? */
     if (numCols == old->numCols && numRows == old->numRows &&
@@ -263,12 +233,4 @@
     elements = numRows * numCols;
     elementSize = PSELEMTYPE_SIZEOF(inDatatype);
-
-    if (inDatatype == PS_TYPE_PTR || type == PS_TYPE_PTR) {
-        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
-                PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,
-                PS_TYPE_PTR_NAME);
-        psFree(output);
-        return NULL;
-    }
 
     output = psImageRecycle(output, numCols, numRows, type);
Index: /trunk/psLib/src/image/psImageFFT.c
===================================================================
--- /trunk/psLib/src/image/psImageFFT.c	(revision 3670)
+++ /trunk/psLib/src/image/psImageFFT.c	(revision 3671)
@@ -5,6 +5,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-02-22 19:38:44 $
+ *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -126,5 +126,5 @@
 
     /* if not a complex number, this is logically just a copy then */
-    if (!PS_IS_PSELEMTYPE_COMPLEX(type) && type != PS_TYPE_PTR) {
+    if (!PS_IS_PSELEMTYPE_COMPLEX(type)) {
         return psImageCopy(out, in, type);
     }
@@ -186,5 +186,5 @@
 
     /* if not a complex image type, this is logically just zeroed image of same size */
-    if (!PS_IS_PSELEMTYPE_COMPLEX(type) && type != PS_TYPE_PTR) {
+    if (!PS_IS_PSELEMTYPE_COMPLEX(type)) {
         out = psImageRecycle(out, numCols, numRows, type);
         memset(out->data.V[0], 0, PSELEMTYPE_SIZEOF(type) * numCols * numRows);
@@ -327,5 +327,5 @@
 
     /* if not a complex image, this is logically just a image copy */
-    if (!PS_IS_PSELEMTYPE_COMPLEX(type) && type != PS_TYPE_PTR) {
+    if (!PS_IS_PSELEMTYPE_COMPLEX(type)) {
         return psImageCopy(out, in, type);
     }
Index: /trunk/psLib/src/math/psPolynomial.c
===================================================================
--- /trunk/psLib/src/math/psPolynomial.c	(revision 3670)
+++ /trunk/psLib/src/math/psPolynomial.c	(revision 3671)
@@ -7,6 +7,6 @@
  *  polynomials.  It also contains a Gaussian functions.
  *
- *  @version $Revision: 1.94 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-03-10 22:33:57 $
+ *  @version $Revision: 1.95 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -1985,4 +1985,5 @@
                 PS_ERRORTEXT_psFunctions_TYPE_NOT_SUPPORTED,
                 strType);
+        return 0;
     case PS_TYPE_C64:
         PS_TYPE_NAME(strType,x->type.type);
@@ -1990,9 +1991,5 @@
                 PS_ERRORTEXT_psFunctions_TYPE_NOT_SUPPORTED,
                 strType);
-    case PS_TYPE_PTR:
-        PS_TYPE_NAME(strType,x->type.type);
-        psError(PS_ERR_BAD_PARAMETER_TYPE,
-                PS_ERRORTEXT_psFunctions_TYPE_NOT_SUPPORTED,
-                strType);
+        return 0;
     case PS_TYPE_BOOL:
         PS_TYPE_NAME(strType,x->type.type);
@@ -2000,4 +1997,5 @@
                 PS_ERRORTEXT_psFunctions_TYPE_NOT_SUPPORTED,
                 strType);
+        return 0;
     }
     return(-3);
Index: /trunk/psLib/src/math/psSpline.c
===================================================================
--- /trunk/psLib/src/math/psSpline.c	(revision 3670)
+++ /trunk/psLib/src/math/psSpline.c	(revision 3671)
@@ -7,6 +7,6 @@
  *  polynomials.  It also contains a Gaussian functions.
  *
- *  @version $Revision: 1.94 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-03-10 22:33:57 $
+ *  @version $Revision: 1.95 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -1985,4 +1985,5 @@
                 PS_ERRORTEXT_psFunctions_TYPE_NOT_SUPPORTED,
                 strType);
+        return 0;
     case PS_TYPE_C64:
         PS_TYPE_NAME(strType,x->type.type);
@@ -1990,9 +1991,5 @@
                 PS_ERRORTEXT_psFunctions_TYPE_NOT_SUPPORTED,
                 strType);
-    case PS_TYPE_PTR:
-        PS_TYPE_NAME(strType,x->type.type);
-        psError(PS_ERR_BAD_PARAMETER_TYPE,
-                PS_ERRORTEXT_psFunctions_TYPE_NOT_SUPPORTED,
-                strType);
+        return 0;
     case PS_TYPE_BOOL:
         PS_TYPE_NAME(strType,x->type.type);
@@ -2000,4 +1997,5 @@
                 PS_ERRORTEXT_psFunctions_TYPE_NOT_SUPPORTED,
                 strType);
+        return 0;
     }
     return(-3);
Index: /trunk/psLib/src/mathtypes/psImage.c
===================================================================
--- /trunk/psLib/src/mathtypes/psImage.c	(revision 3670)
+++ /trunk/psLib/src/mathtypes/psImage.c	(revision 3671)
@@ -9,6 +9,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.61 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-03-18 02:35:14 $
+ *  @version $Revision: 1.62 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-04-06 01:12:58 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -35,18 +35,4 @@
     if (image == NULL) {
         return;
-    }
-
-    if (image->type.type == PS_TYPE_PTR) {
-        // 2-D array of pointers -- must dereference elements
-        psU32 oldNumRows = image->numRows;
-        psU32 oldNumCols = image->numCols;
-        psPtr* rowPtr;
-
-        for (psU32 row = 0; row < oldNumRows; row++) {
-            rowPtr = image->data.PTR[row];
-            for (psU32 col = 0; col < oldNumCols; col++) {
-                psMemDecrRefCounter(rowPtr[col]);
-            }
-        }
     }
 
@@ -188,20 +174,4 @@
     }
 
-    if (old->type.type == PS_TYPE_PTR) {
-        // 2-D array of pointers -- must
-        // dereference
-        psU32 oldNumRows = old->numRows;
-        psU32 oldNumCols = old->numCols;
-        psPtr* rowPtr;
-
-        for (psU32 row = 0; row < oldNumRows; row++) {
-            rowPtr = old->data.PTR[row];
-            for (psU32 col = 0; col < oldNumCols; col++) {
-                psMemDecrRefCounter(rowPtr[col]);
-                rowPtr[col] = NULL;
-            }
-        }
-    }
-
     /* image already the right size/type? */
     if (numCols == old->numCols && numRows == old->numRows &&
@@ -263,12 +233,4 @@
     elements = numRows * numCols;
     elementSize = PSELEMTYPE_SIZEOF(inDatatype);
-
-    if (inDatatype == PS_TYPE_PTR || type == PS_TYPE_PTR) {
-        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
-                PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,
-                PS_TYPE_PTR_NAME);
-        psFree(output);
-        return NULL;
-    }
 
     output = psImageRecycle(output, numCols, numRows, type);
Index: /trunk/psLib/src/sys/psType.h
===================================================================
--- /trunk/psLib/src/sys/psType.h	(revision 3670)
+++ /trunk/psLib/src/sys/psType.h	(revision 3671)
@@ -10,6 +10,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-03-07 20:58:50 $
+*  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-04-06 01:12:58 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -83,6 +83,5 @@
     PS_TYPE_C32  = 0x0808,             ///< Complex numbers consisting of single-precision floating point.
     PS_TYPE_C64  = 0x0810,             ///< Complex numbers consisting of double-precision floating point.
-    PS_TYPE_BOOL = 0x1301,             ///< Boolean.
-    PS_TYPE_PTR  = 0x0000              ///< Something else that's not supported for arithmetic.
+    PS_TYPE_BOOL = 0x1301              ///< Boolean.
 } psElemType;
 
@@ -133,5 +132,4 @@
 #define PS_TYPE_C32_NAME  "psC32"
 #define PS_TYPE_C64_NAME  "psC64"
-#define PS_TYPE_PTR_NAME  "psPtr"
 
 #define PS_TYPE_NAME(value,type) \
@@ -175,7 +173,4 @@
 case PS_TYPE_C64: \
     value = PS_TYPE_C64_NAME; \
-    break; \
-case PS_TYPE_PTR: \
-    value = PS_TYPE_PTR_NAME; \
     break; \
 default: \
@@ -206,5 +201,5 @@
 #define PS_IS_PSELEMTYPE_BOOL(x) ((x & 0x1000) == 0x1000)
 /// Macro to determine the storage size, in bytes, of the psElemType.
-#define PSELEMTYPE_SIZEOF(x) ( (x==(PS_TYPE_PTR&0xFFFF)) ? sizeof(psPtr) :(x & 0xFF) )
+#define PSELEMTYPE_SIZEOF(x) (x & 0xFF)
 
 /** Dimensions of a data type.
Index: /trunk/psLib/src/sysUtils/psType.h
===================================================================
--- /trunk/psLib/src/sysUtils/psType.h	(revision 3670)
+++ /trunk/psLib/src/sysUtils/psType.h	(revision 3671)
@@ -10,6 +10,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-03-07 20:58:50 $
+*  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-04-06 01:12:58 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -83,6 +83,5 @@
     PS_TYPE_C32  = 0x0808,             ///< Complex numbers consisting of single-precision floating point.
     PS_TYPE_C64  = 0x0810,             ///< Complex numbers consisting of double-precision floating point.
-    PS_TYPE_BOOL = 0x1301,             ///< Boolean.
-    PS_TYPE_PTR  = 0x0000              ///< Something else that's not supported for arithmetic.
+    PS_TYPE_BOOL = 0x1301              ///< Boolean.
 } psElemType;
 
@@ -133,5 +132,4 @@
 #define PS_TYPE_C32_NAME  "psC32"
 #define PS_TYPE_C64_NAME  "psC64"
-#define PS_TYPE_PTR_NAME  "psPtr"
 
 #define PS_TYPE_NAME(value,type) \
@@ -175,7 +173,4 @@
 case PS_TYPE_C64: \
     value = PS_TYPE_C64_NAME; \
-    break; \
-case PS_TYPE_PTR: \
-    value = PS_TYPE_PTR_NAME; \
     break; \
 default: \
@@ -206,5 +201,5 @@
 #define PS_IS_PSELEMTYPE_BOOL(x) ((x & 0x1000) == 0x1000)
 /// Macro to determine the storage size, in bytes, of the psElemType.
-#define PSELEMTYPE_SIZEOF(x) ( (x==(PS_TYPE_PTR&0xFFFF)) ? sizeof(psPtr) :(x & 0xFF) )
+#define PSELEMTYPE_SIZEOF(x) (x & 0xFF)
 
 /** Dimensions of a data type.
Index: /trunk/psLib/src/types/psMetadata.h
===================================================================
--- /trunk/psLib/src/types/psMetadata.h	(revision 3670)
+++ /trunk/psLib/src/types/psMetadata.h	(revision 3671)
@@ -11,6 +11,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-03-29 22:13:53 $
+*  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-04-06 01:12:58 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -64,5 +64,5 @@
         (METATYPE==PS_META_F32) ? PS_TYPE_F32 : \
         (METATYPE==PS_META_F64) ? PS_TYPE_F64 : \
-        (METATYPE==PS_META_BOOL) ? PS_TYPE_BOOL : PS_TYPE_PTR )
+        (METATYPE==PS_META_BOOL) ? PS_TYPE_BOOL : 0 )
 
 /** Option flags for psMetadata functions
Index: /trunk/psLib/src/types/psMetadataConfig.c
===================================================================
--- /trunk/psLib/src/types/psMetadataConfig.c	(revision 3670)
+++ /trunk/psLib/src/types/psMetadataConfig.c	(revision 3671)
@@ -9,6 +9,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-03-17 19:01:01 $
+*  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-04-06 01:12:58 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -509,5 +509,5 @@
     char *strComment = NULL;
     char *linePtr = NULL;
-    psElemType vecType = PS_TYPE_PTR;
+    psElemType vecType = 0;
     psS32 status = 0;
     psU32 lineCount = 0;
@@ -956,5 +956,5 @@
     psS32 status = 0;
     psU32 lineNumber = 0;
-    psElemType pType = PS_TYPE_PTR;
+    psElemType pType = 0;
     char *strName = NULL;
     char *strType = NULL;
Index: /trunk/psLib/src/xml/psXML.c
===================================================================
--- /trunk/psLib/src/xml/psXML.c	(revision 3670)
+++ /trunk/psLib/src/xml/psXML.c	(revision 3671)
@@ -9,6 +9,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-03-17 19:01:01 $
+*  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-04-06 01:12:58 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -509,5 +509,5 @@
     char *strComment = NULL;
     char *linePtr = NULL;
-    psElemType vecType = PS_TYPE_PTR;
+    psElemType vecType = 0;
     psS32 status = 0;
     psU32 lineCount = 0;
@@ -956,5 +956,5 @@
     psS32 status = 0;
     psU32 lineNumber = 0;
-    psElemType pType = PS_TYPE_PTR;
+    psElemType pType = 0;
     char *strName = NULL;
     char *strType = NULL;
