Index: /trunk/dbconfig/warp.md
===================================================================
--- /trunk/dbconfig/warp.md	(revision 15529)
+++ /trunk/dbconfig/warp.md	(revision 15530)
@@ -1,3 +1,3 @@
-# $Id: warp.md,v 1.7 2007-10-25 20:33:45 price Exp $
+# $Id: warp.md,v 1.8 2007-11-09 02:56:46 jhoblitt Exp $
 
 #
@@ -51,4 +51,5 @@
     bg_stdev    F64         0.0
     good_frac   F64         0.0     # Key
+    ignore      BOOL        f       # Key
     fault       S16         0       # Key
 END
Index: /trunk/ippdb/src/ippdb.c
===================================================================
--- /trunk/ippdb/src/ippdb.c	(revision 15529)
+++ /trunk/ippdb/src/ippdb.c	(revision 15530)
@@ -9592,5 +9592,5 @@
 static void warpSkyfileRowFree(warpSkyfileRow *object);
 
-warpSkyfileRow *warpSkyfileRowAlloc(psS64 warp_id, const char *skycell_id, const char *tess_id, const char *uri, const char *path_base, psF64 bg, psF64 bg_stdev, psF64 good_frac, psS16 fault)
+warpSkyfileRow *warpSkyfileRowAlloc(psS64 warp_id, const char *skycell_id, const char *tess_id, const char *uri, const char *path_base, psF64 bg, psF64 bg_stdev, psF64 good_frac, bool ignore, psS16 fault)
 {
     warpSkyfileRow  *_object;
@@ -9607,4 +9607,5 @@
     _object->bg_stdev = bg_stdev;
     _object->good_frac = good_frac;
+    _object->ignore = ignore;
     _object->fault = fault;
 
@@ -9663,4 +9664,9 @@
         return false;
     }
+    if (!psMetadataAdd(md, PS_LIST_TAIL, "ignore", PS_DATA_BOOL, "Key", 0)) {
+        psError(PS_ERR_UNKNOWN, false, "failed to add item ignore");
+        psFree(md);
+        return false;
+    }
     if (!psMetadataAdd(md, PS_LIST_TAIL, "fault", PS_DATA_S16, "Key", 0)) {
         psError(PS_ERR_UNKNOWN, false, "failed to add item fault");
@@ -9681,5 +9687,5 @@
 }
 
-bool warpSkyfileInsert(psDB * dbh, psS64 warp_id, const char *skycell_id, const char *tess_id, const char *uri, const char *path_base, psF64 bg, psF64 bg_stdev, psF64 good_frac, psS16 fault)
+bool warpSkyfileInsert(psDB * dbh, psS64 warp_id, const char *skycell_id, const char *tess_id, const char *uri, const char *path_base, psF64 bg, psF64 bg_stdev, psF64 good_frac, bool ignore, psS16 fault)
 {
     psMetadata *md = psMetadataAlloc();
@@ -9721,4 +9727,9 @@
     if (!psMetadataAdd(md, PS_LIST_TAIL, "good_frac", PS_DATA_F64, NULL, good_frac)) {
         psError(PS_ERR_UNKNOWN, false, "failed to add item good_frac");
+        psFree(md);
+        return false;
+    }
+    if (!psMetadataAdd(md, PS_LIST_TAIL, "ignore", PS_DATA_BOOL, NULL, ignore)) {
+        psError(PS_ERR_UNKNOWN, false, "failed to add item ignore");
         psFree(md);
         return false;
@@ -9752,5 +9763,5 @@
 bool warpSkyfileInsertObject(psDB *dbh, warpSkyfileRow *object)
 {
-    return warpSkyfileInsert(dbh, object->warp_id, object->skycell_id, object->tess_id, object->uri, object->path_base, object->bg, object->bg_stdev, object->good_frac, object->fault);
+    return warpSkyfileInsert(dbh, object->warp_id, object->skycell_id, object->tess_id, object->uri, object->path_base, object->bg, object->bg_stdev, object->good_frac, object->ignore, object->fault);
 }
 
@@ -9865,4 +9876,9 @@
         return false;
     }
+    if (!psMetadataAdd(md, PS_LIST_TAIL, "ignore", PS_DATA_BOOL, NULL, object->ignore)) {
+        psError(PS_ERR_UNKNOWN, false, "failed to add item ignore");
+        psFree(md);
+        return false;
+    }
     if (!psMetadataAdd(md, PS_LIST_TAIL, "fault", PS_DATA_S16, NULL, object->fault)) {
         psError(PS_ERR_UNKNOWN, false, "failed to add item fault");
@@ -9919,4 +9935,9 @@
         return false;
     }
+    bool ignore = psMetadataLookupBool(&status, md, "ignore");
+    if (!status) {
+        psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item ignore");
+        return false;
+    }
     psS16 fault = psMetadataLookupS16(&status, md, "fault");
     if (!status) {
@@ -9925,5 +9946,5 @@
     }
 
-    return warpSkyfileRowAlloc(warp_id, skycell_id, tess_id, uri, path_base, bg, bg_stdev, good_frac, fault);
+    return warpSkyfileRowAlloc(warp_id, skycell_id, tess_id, uri, path_base, bg, bg_stdev, good_frac, ignore, fault);
 }
 psArray *warpSkyfileSelectRowObjects(psDB *dbh, const psMetadata *where, unsigned long long limit)
Index: /trunk/ippdb/src/ippdb.h
===================================================================
--- /trunk/ippdb/src/ippdb.h	(revision 15529)
+++ /trunk/ippdb/src/ippdb.h	(revision 15530)
@@ -4735,4 +4735,5 @@
     psF64           bg_stdev;
     psF64           good_frac;
+    bool            ignore;
     psS16           fault;
 } warpSkyfileRow;
@@ -4752,4 +4753,5 @@
     psF64           bg_stdev,
     psF64           good_frac,
+    bool            ignore,
     psS16           fault
 );
@@ -4790,4 +4792,5 @@
     psF64           bg_stdev,
     psF64           good_frac,
+    bool            ignore,
     psS16           fault
 );
Index: /trunk/ippdb/tests/alloc.c
===================================================================
--- /trunk/ippdb/tests/alloc.c	(revision 15529)
+++ /trunk/ippdb/tests/alloc.c	(revision 15530)
@@ -1032,5 +1032,5 @@
         warpSkyfileRow  *object;
 
-        object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, -16    );
+        object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, true, -16    );
 
         if (!object) {
@@ -1067,4 +1067,8 @@
         }
         if (!object->good_frac == 64.64) {
+            psFree(object);
+            exit(EXIT_FAILURE);
+        }
+        if (!object->ignore == true) {
             psFree(object);
             exit(EXIT_FAILURE);
Index: /trunk/ippdb/tests/insert.c
===================================================================
--- /trunk/ippdb/tests/insert.c	(revision 15529)
+++ /trunk/ippdb/tests/insert.c	(revision 15530)
@@ -328,5 +328,5 @@
         }
 
-        if (!warpSkyfileInsert(dbh, -64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, -16)) {
+        if (!warpSkyfileInsert(dbh, -64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, true, -16)) {
             exit(EXIT_FAILURE);
         }
Index: /trunk/ippdb/tests/insertobject.c
===================================================================
--- /trunk/ippdb/tests/insertobject.c	(revision 15529)
+++ /trunk/ippdb/tests/insertobject.c	(revision 15530)
@@ -476,5 +476,5 @@
         }
 
-        object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, -16);
+        object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, true, -16);
         if (!object) {
             exit(EXIT_FAILURE);
Index: /trunk/ippdb/tests/metadatafromobject.c
===================================================================
--- /trunk/ippdb/tests/metadatafromobject.c	(revision 15529)
+++ /trunk/ippdb/tests/metadatafromobject.c	(revision 15530)
@@ -1178,5 +1178,5 @@
         bool            status;
 
-        object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, -16);
+        object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, true, -16);
         if (!object) {
             exit(EXIT_FAILURE);
@@ -1218,4 +1218,8 @@
         }
         if (!psMetadataLookupF64(&status, md, "good_frac") == 64.64) {
+            psFree(md);
+            exit(EXIT_FAILURE);
+        }
+        if (!psMetadataLookupBool(&status, md, "ignore") == true) {
             psFree(md);
             exit(EXIT_FAILURE);
Index: /trunk/ippdb/tests/objectfrommetadata.c
===================================================================
--- /trunk/ippdb/tests/objectfrommetadata.c	(revision 15529)
+++ /trunk/ippdb/tests/objectfrommetadata.c	(revision 15530)
@@ -1870,4 +1870,8 @@
             exit(EXIT_FAILURE);
         }
+        if (!psMetadataAdd(md, PS_LIST_TAIL, "ignore", PS_DATA_BOOL, NULL, true)) {
+            psFree(md);
+            exit(EXIT_FAILURE);
+        }
             psFree(md);
             exit(EXIT_FAILURE);
@@ -1910,4 +1914,8 @@
         }
         if (!object->good_frac == 64.64) {
+            psFree(object);
+            exit(EXIT_FAILURE);
+        }
+        if (!object->ignore == true) {
             psFree(object);
             exit(EXIT_FAILURE);
