Index: trunk/psLib/src/astronomy/psMetadata.c
===================================================================
--- trunk/psLib/src/astronomy/psMetadata.c	(revision 2941)
+++ trunk/psLib/src/astronomy/psMetadata.c	(revision 2971)
@@ -12,6 +12,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-12-10 02:50:14 $
+*  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-01-13 19:50:44 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -465,4 +465,27 @@
 }
 
+psF32 psMetadataLookupF32(psMetadata *md, const char *key, psU32 *status)
+{
+    psF32 value = 0.0;
+    psElemType pType;
+    psMetadataItem *metadataItem = NULL;
+
+
+    metadataItem = psMetadataLookup(md, key);
+    if(metadataItem == NULL) {
+        *status = 1;
+        return value;
+    }
+
+    pType = metadataItem->pType;
+    value = metadataItem->data.F32;
+    if(pType != PS_TYPE_F32) {
+        psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psMetadata_METATYPE_MISMATCH, pType,
+                PS_TYPE_F32);
+    }
+
+    return value;
+}
+
 psF64 psMetadataLookupF64(psMetadata *md, const char *key, psU32 *status)
 {
Index: trunk/psLib/src/astronomy/psMetadata.h
===================================================================
--- trunk/psLib/src/astronomy/psMetadata.h	(revision 2941)
+++ trunk/psLib/src/astronomy/psMetadata.h	(revision 2971)
@@ -11,6 +11,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-12-07 23:27:31 $
+*  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-01-13 19:50:44 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -212,4 +212,18 @@
 );
 
+/** Find an item in the metadata collection based on key name and return its single precision value.
+ *
+ *  Items may be found in the metadata by providing a key. If the key is
+ *  non-unique, the value of the first item is returned. If the item is not found, zero is
+ *  returned.
+ *
+ * @return psF32 : Value of metadata item.
+ */
+psF64 psMetadataLookupF32(
+    psMetadata *md,            ///< Metadata collection to lookup metadata item.
+    const char *key,           ///< Name of metadata key.
+    psU32 *status              ///< Status of lookup.
+);
+
 /** Find an item in the metadata collection based on key name and return its integer value.
  *
