These should be run from within this directory (has the fits files to use and such)

Step 1

./run.addstar.resort (catdir)

Step 2

relphot needs to be run, 

./run.relphot.diff (catdir)


Step 3

relastro calcs the ra/dec errrs

./run.relastro.diff (catdir)




Gene's comments 

*for the diff database, you need to run relphot to set the primary flag and to set the mean mags and Ncode values.  you do not want to do any image calibrations, however (relphot zero pointing makes no sense in a diff database).  if you use -nloop 0 then the mean object properties will be set, along with the primary flag:

  relphot -images g,r,i,z,y -D CAMERA gpc1 -nloop 0 -basic-image-search -statmode WT_MEAN -region 320 340 -10 10 -boundary-tree tess.3pi.fits -D CATDIR $catdir -update 
(the values MAG_LIM, SIGMA_LIM, STAR_TOOFEW, etc, are relevant to finding the image zero points and are thus ignored for -nloop 0)
  
