Index: trunk/psLib/src/math/psConstants.h
===================================================================
--- trunk/psLib/src/math/psConstants.h	(revision 2261)
+++ trunk/psLib/src/math/psConstants.h	(revision 2272)
@@ -6,6 +6,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-11-02 01:52:43 $
+ *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-11-03 22:58:53 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -264,5 +264,15 @@
 }
 
-
+#define PS_READOUT_CHECK_EMPTY(NAME, RVAL) \
+if (NAME->image->numCols < 1 || NAME->image->numRows < 1) { \
+    psError(__func__,"Unallowable operation: psReadout %s or its data is NULL.", #NAME); \
+    return(RVAL); \
+}
+
+#define PS_READOUT_CHECK_TYPE(NAME, TYPE, RVAL) \
+if (NAME->image->type.type != TYPE) { \
+    psError(__func__,"Unallowable operation: psImage %s has incorrect type.", #NAME); \
+    return(RVAL); \
+}
 
 /*****************************************************************************
