Index: /trunk/Ohana/src/absphot/doc/notes.txt
===================================================================
--- /trunk/Ohana/src/absphot/doc/notes.txt	(revision 16267)
+++ /trunk/Ohana/src/absphot/doc/notes.txt	(revision 16267)
@@ -0,0 +1,17 @@
+
+absphot
+
+  we have relphot to determine the relative photometry on small spatial scales
+  we have uniphot to determine the zero point trend with time.
+  the result of these two should be a single, consistent photometry system in the internal filter system
+
+  the goal of absphot is to determine the relationships between the
+  internal magnitude system and an external reference
+
+usage:
+
+  absphot -target (photcode) -ref (photcode) [-region RA RA DEC DEC]
+
+  - determine the fit M_ref = M_target + \Sum_i A_i * color^i
+
+    
Index: /trunk/Ohana/src/absphot/src/absphot.c
===================================================================
--- /trunk/Ohana/src/absphot/src/absphot.c	(revision 16267)
+++ /trunk/Ohana/src/absphot/src/absphot.c	(revision 16267)
@@ -0,0 +1,31 @@
+# include "relphot.h"
+
+int main (int argc, char **argv) {
+
+  // select the list of database region files, based on region
+  // loop over the catalogs, load the magnitudes in the selected bands
+  // determine the fit
+
+  int i, status, Ncatalog;
+  Catalog *catalog;
+  FITS_DB db;
+
+  SkyList *skylist = NULL;
+
+  /* get configuration info, args */
+  initialize (argc, argv);
+
+  /* register database handle with shutdown procedure */
+  set_db (&db);
+  db.mode   = dvo_catalog_catmode (CATMODE);
+  db.format = dvo_catalog_catformat (CATFORMAT);
+
+  /* load regions based on specified sky patch */
+  skylist = load_regions (&db, &UserPatch, UserPatchSelect);
+
+  /* load catalog data from region files */
+  catalog = load_catalogs (skylist, &Ncatalog);
+  
+  fitTrends (catalog);
+
+}
