IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34172


Ignore:
Timestamp:
Jul 17, 2012, 1:25:52 PM (14 years ago)
Author:
eugene
Message:

adding new psphot version psphotMinimal (equivalent to call used by ppSub)

Location:
branches/eam_branches/ipp-20120627/psphot/src
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120627/psphot/src/Makefile.am

    r34086 r34172  
    2525libpsphot_la_LDFLAGS = $(PSPHOT_LIBS) $(PSMODULE_LIBS) $(PSLIB_LIBS)
    2626
    27 bin_PROGRAMS = psphot psphotForced psphotMakePSF psphotStack psphotModelTest
     27bin_PROGRAMS = psphot psphotForced psphotMinimal psphotMakePSF psphotStack psphotModelTest
    2828# bin_PROGRAMS = psphotPetrosianStudy psphotTest psphotMomentsStudy
    2929
     
    3535psphotForced_LDFLAGS = $(PSPHOT_LIBS) $(PSMODULE_LIBS) $(PSLIB_LIBS)
    3636psphotForced_LDADD = libpsphot.la
     37
     38psphotMinimal_CFLAGS = $(PSPHOT_CFLAGS) $(PSMODULE_CFLAGS) $(PSLIB_CFLAGS)
     39psphotMinimal_LDFLAGS = $(PSPHOT_LIBS) $(PSMODULE_LIBS) $(PSLIB_LIBS)
     40psphotMinimal_LDADD = libpsphot.la
    3741
    3842psphotMakePSF_CFLAGS = $(PSPHOT_CFLAGS) $(PSMODULE_CFLAGS) $(PSLIB_CFLAGS)
     
    7377        psphotForced.c             \
    7478        psphotForcedArguments.c    \
     79        psphotParseCamera.c        \
     80        psphotImageLoop.c          \
     81        psphotMosaicChip.c         \
     82        psphotCleanup.c
     83
     84# forced photometry of specified positions given a specified psf
     85psphotMinimal_SOURCES = \
     86        psphotMinimal.c            \
     87        psphotMinimalArguments.c           \
    7588        psphotParseCamera.c        \
    7689        psphotImageLoop.c          \
  • branches/eam_branches/ipp-20120627/psphot/src/psphot.h

    r34086 r34172  
    2020    PSPHOT_MAKE_PSF,
    2121    PSPHOT_MODEL_TEST,
     22    PSPHOT_MINIMAL,
    2223} psphotImageLoopMode;
    2324
     
    331332bool psphotForcedReadout(pmConfig *config, const pmFPAview *view, const char *filerule);
    332333
     334pmConfig *psphotMinimalArguments(int argc, char **argv);
     335bool psphotReadoutMinimal(pmConfig *config, const pmFPAview *view, const char *filerule);
     336
    333337pmConfig *psphotMakePSFArguments(int argc, char **argv);
    334338bool psphotMakePSFReadout(pmConfig *config, const pmFPAview *view, const char *filerule);
  • branches/eam_branches/ipp-20120627/psphot/src/psphotForced.c

    r31154 r34172  
    11# include "psphotStandAlone.h"
    2 # define FORCED_PHOTOMETRY 1
    32
    43int main (int argc, char **argv) {
  • branches/eam_branches/ipp-20120627/psphot/src/psphotImageLoop.c

    r34086 r34172  
    118118                    }
    119119                    break;
     120                  case PSPHOT_MINIMAL:
     121                    if (!psphotReadoutMinimal (config, view, "PSPHOT.INPUT")) {
     122                        psError(psErrorCodeLast(), false, "failure in psphotReadout for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout);
     123                        psFree (view);
     124                        return false;
     125                    }
     126                    break;
    120127                  case PSPHOT_FORCED:
    121128                    if (!psphotForcedReadout (config, view, "PSPHOT.INPUT")) {
  • branches/eam_branches/ipp-20120627/psphot/src/psphotReadoutMinimal.c

    r33842 r34172  
    7272    psphotFitSourcesLinear (config, view, filerule, false);
    7373
    74 // XXX eventually, add the extended source fits here
    75 # if (0)
    7674    // measure source size for the remaining sources
    77     psphotSourceSize (config, view, filerule);
     75    psphotSourceSize (config, view, filerule, false);
    7876
    79     psphotExtendedSourceAnalysis (config, view, filerule);
     77    // NOTE: Petrosian and Isophotal mags are not relevant at this time
     78    // psphotExtendedSourceAnalysis (config, view, filerule);
    8079
     80    // in ppSub context, this is used to fit TRAILs (and maybe EXP for comets)
    8181    psphotExtendedSourceFits (config, view, filerule);
    82 # endif
    8382
    8483    // calculate source magnitudes
  • branches/eam_branches/ipp-20120627/psphot/src/psphotSourceSize.c

    r32633 r34172  
    520520            continue;
    521521        }
     522
     523        // XXX in the ppSub context, do we get sensible values for ApResid?
    522524
    523525        // set nSigmaMAG to include both systematic and poisson error terms.  we include a hard
Note: See TracChangeset for help on using the changeset viewer.