IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2008, 1:27:58 PM (18 years ago)
Author:
eugene
Message:

extensive changes from eam_branch_20080719:

  • added the 'cleanup' options to camtool, faketool, warptool, difftool, stacktool
  • added corresponding sql code
  • changed the states for camera, fake, warp, diff, and stack to the new set of states: new, full, goto_cleaned, cleaned, update, goto_purged, and purged
  • added 'data_state' entries to the detrend tables and the detRunSummary
  • added 'cleanup' options to dettool using the detRunSummary data_state as the control
  • moved dettool supporting code to dettool_STAGE, where stage is processedimfile, processedexp, etc.
  • converted dettool to use S64 for det_id and exp_id entries
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/dettool.h

    r18561 r19092  
    4141    DETTOOL_MODE_INPUT,
    4242    DETTOOL_MODE_RAW,
     43
    4344    DETTOOL_MODE_TOPROCESSEDIMFILE,
    4445    DETTOOL_MODE_ADDPROCESSEDIMFILE,
    4546    DETTOOL_MODE_PROCESSEDIMFILE,
    4647    DETTOOL_MODE_REVERTPROCESSEDIMFILE,
     48    DETTOOL_MODE_UPDATEPROCESSEDIMFILE,
     49    DETTOOL_MODE_PENDINGCLEANUP_PROCESSEDIMFILE,
     50    DETTOOL_MODE_DONECLEANUP_PROCESSEDIMFILE,
     51
    4752    DETTOOL_MODE_TOPROCESSEDEXP,
    4853    DETTOOL_MODE_ADDPROCESSEDEXP,
    4954    DETTOOL_MODE_PROCESSEDEXP,
    5055    DETTOOL_MODE_REVERTPROCESSEDEXP,
     56    DETTOOL_MODE_UPDATEPROCESSEDEXP,
     57    DETTOOL_MODE_PENDINGCLEANUP_PROCESSEDEXP,
     58    DETTOOL_MODE_DONECLEANUP_PROCESSEDEXP,
     59
    5160    DETTOOL_MODE_TOSTACKED,
    5261    DETTOOL_MODE_ADDSTACKED,
    5362    DETTOOL_MODE_STACKED,
    5463    DETTOOL_MODE_REVERTSTACKED,
     64    DETTOOL_MODE_UPDATESTACKED,
     65    DETTOOL_MODE_PENDINGCLEANUP_STACKED,
     66    DETTOOL_MODE_DONECLEANUP_STACKED,
     67
    5568    DETTOOL_MODE_TONORMALIZEDSTAT,
    5669    DETTOOL_MODE_ADDNORMALIZEDSTAT,
    5770    DETTOOL_MODE_NORMALIZEDSTAT,
    5871    DETTOOL_MODE_REVERTNORMALIZEDSTAT,
     72    DETTOOL_MODE_UPDATENORMALIZEDSTAT,
     73    DETTOOL_MODE_PENDINGCLEANUP_NORMALIZEDSTAT,
     74    DETTOOL_MODE_DONECLEANUP_NORMALIZEDSTAT,
     75
    5976    DETTOOL_MODE_TONORMALIZE,
    6077    DETTOOL_MODE_ADDNORMALIZEDIMFILE,
    6178    DETTOOL_MODE_NORMALIZEDIMFILE,
    6279    DETTOOL_MODE_REVERTNORMALIZEDIMFILE,
     80    DETTOOL_MODE_UPDATENORMALIZEDIMFILE,
     81    DETTOOL_MODE_PENDINGCLEANUP_NORMALIZEDIMFILE,
     82    DETTOOL_MODE_DONECLEANUP_NORMALIZEDIMFILE,
     83
    6384    DETTOOL_MODE_TONORMALIZEDEXP,
    6485    DETTOOL_MODE_ADDNORMALIZEDEXP,
    6586    DETTOOL_MODE_NORMALIZEDEXP,
    6687    DETTOOL_MODE_REVERTNORMALIZEDEXP,
     88    DETTOOL_MODE_UPDATENORMALIZEDEXP,
     89    DETTOOL_MODE_PENDINGCLEANUP_NORMALIZEDEXP,
     90    DETTOOL_MODE_DONECLEANUP_NORMALIZEDEXP,
     91
    6792    DETTOOL_MODE_TORESIDIMFILE,
    6893    DETTOOL_MODE_ADDRESIDIMFILE,
    6994    DETTOOL_MODE_RESIDIMFILE,
    7095    DETTOOL_MODE_REVERTRESIDIMFILE,
     96    DETTOOL_MODE_UPDATERESIDIMFILE,
     97    DETTOOL_MODE_PENDINGCLEANUP_RESIDIMFILE,
     98    DETTOOL_MODE_DONECLEANUP_RESIDIMFILE,
     99
    71100    DETTOOL_MODE_TORESIDEXP,
    72101    DETTOOL_MODE_ADDRESIDEXP,
    73102    DETTOOL_MODE_RESIDEXP,
    74103    DETTOOL_MODE_REVERTRESIDEXP,
     104    DETTOOL_MODE_UPDATERESIDEXP,
     105    DETTOOL_MODE_PENDINGCLEANUP_RESIDEXP,
     106    DETTOOL_MODE_DONECLEANUP_RESIDEXP,
     107
    75108    DETTOOL_MODE_TODETRUNSUMMARY,
    76109    DETTOOL_MODE_ADDDETRUNSUMMARY,
    77110    DETTOOL_MODE_DETRUNSUMMARY,
    78111    DETTOOL_MODE_REVERTDETRUNSUMMARY,
    79     DETTOOL_MODE_UPDATERESIDEXP,
    80112    DETTOOL_MODE_UPDATEDETRUNSUMMARY,
    81113    DETTOOL_MODE_UPDATEDETRUN,
     
    92124bool tocorrectimfileMode(pxConfig *config);
    93125bool addcorrectimfileMode(pxConfig *config);
     126
    94127// register
    95128bool register_detrend_imfileMode(pxConfig *config);
    96129
     130// processedimfile
     131bool toprocessedimfileMode(pxConfig *config);
     132bool addprocessedimfileMode(pxConfig *config);
     133bool processedimfileMode(pxConfig *config);
     134bool revertprocessedimfileMode(pxConfig *config);
     135bool updateprocessedimfileMode(pxConfig *config);
     136bool pendingcleanup_processedimfileMode(pxConfig *config);
     137bool donecleanup_processedimfileMode(pxConfig *config);
     138
     139// processedexp
     140bool toprocessedexpMode(pxConfig *config);
     141bool addprocessedexpMode(pxConfig *config);
     142bool processedexpMode(pxConfig *config);
     143bool revertprocessedexpMode(pxConfig *config);
     144bool updateprocessedexpMode(pxConfig *config);
     145bool pendingcleanup_processedexpMode(pxConfig *config);
     146bool donecleanup_processedexpMode(pxConfig *config);
     147
     148// stackedimfile
     149bool tostackedMode(pxConfig *config);
     150bool addstackedMode(pxConfig *config);
     151bool stackedMode(pxConfig *config);
     152bool revertstackedMode(pxConfig *config);
     153bool updatestackedMode(pxConfig *config);
     154bool pendingcleanup_stackedMode(pxConfig *config);
     155bool donecleanup_stackedMode(pxConfig *config);
     156
     157// normalizedstat
     158bool tonormalizedstatMode(pxConfig *config);
     159bool addnormalizedstatMode(pxConfig *config);
     160bool normalizedstatMode(pxConfig *config);
     161bool revertnormalizedstatMode(pxConfig *config);
     162bool updatenormalizedstatMode(pxConfig *config);
     163bool pendingcleanup_normalizedstatMode(pxConfig *config);
     164bool donecleanup_normalizedstatMode(pxConfig *config);
     165
     166// normalizedimfile
     167bool tonormalizeMode(pxConfig *config);
     168bool addnormalizedimfileMode(pxConfig *config);
     169bool normalizedimfileMode(pxConfig *config);
     170bool revertnormalizedimfileMode(pxConfig *config);
     171bool updatenormalizedimfileMode(pxConfig *config);
     172bool pendingcleanup_normalizedimfileMode(pxConfig *config);
     173bool donecleanup_normalizedimfileMode(pxConfig *config);
     174
     175// normalizedexp
     176bool tonormalizedexpMode(pxConfig *config);
     177bool addnormalizedexpMode(pxConfig *config);
     178bool normalizedexpMode(pxConfig *config);
     179bool revertnormalizedexpMode(pxConfig *config);
     180bool updatenormalizedexpMode(pxConfig *config);
     181bool pendingcleanup_normalizedexpMode(pxConfig *config);
     182bool donecleanup_normalizedexpMode(pxConfig *config);
     183
     184// residimfile
     185bool toresidimfileMode(pxConfig *config);
     186bool addresidimfileMode(pxConfig *config);
     187bool residimfileMode(pxConfig *config);
     188bool revertresidimfileMode(pxConfig *config);
     189bool updateresidimfileMode(pxConfig *config);
     190bool pendingcleanup_residimfileMode(pxConfig *config);
     191bool donecleanup_residimfileMode(pxConfig *config);
     192
     193// residexp
     194bool toresidexpMode(pxConfig *config);
     195bool addresidexpMode(pxConfig *config);
     196bool residexpMode(pxConfig *config);
     197bool revertresidexpMode(pxConfig *config);
     198bool updateresidexpMode(pxConfig *config);
     199bool pendingcleanup_residexpMode(pxConfig *config);
     200bool donecleanup_residexpMode(pxConfig *config);
     201
     202// detrunsummary
     203bool todetrunsummaryMode(pxConfig *config);
     204bool adddetrunsummaryMode(pxConfig *config);
     205bool detrunsummaryMode(pxConfig *config);
     206bool revertdetrunsummaryMode(pxConfig *config);
     207bool updatedetrunsummaryMode(pxConfig *config);
     208
     209// other utilities
     210bool startNewIteration(pxConfig *config, psS64 det_id);
     211bool setDetRunState(pxConfig *config, psS64 det_id, const char *state);
     212bool isValidDataState (const char *data_state);
     213bool isValidMode(pxConfig *config, const char *mode);
     214
     215// functions to set the 'data_state' for stages
     216bool setProcessedImfileDataState(pxConfig *config, psS64 det_id, psS64 exp_id, const char *class_id, const char *data_state);
     217bool setProcessedExpDataState(pxConfig *config, psS64 det_id, psS64 exp_id, const char *data_state);
     218bool setStackedImfileDataState(pxConfig *config, psS64 det_id, psS32 iteration, const char *class_id, const char *data_state);
     219bool setNormStatImfileDataState(pxConfig *config, psS64 det_id, psS32 iteration, const char *class_id, const char *data_state);
     220bool setNormImfileDataState(pxConfig *config, psS64 det_id, psS32 iteration, const char *class_id, const char *data_state);
     221bool setNormExpDataState(pxConfig *config, psS64 det_id, psS32 iteration, const char *data_state);
     222bool setResidImfileDataState(pxConfig *config, psS64 det_id, psS32 iteration, psS64 exp_id, const char *class_id, const char *data_state);
     223bool setResidExpDataState(pxConfig *config, psS64 det_id, psS32 iteration, psS64 exp_id, const char *data_state);
     224
    97225#endif // DETTOOL_H
Note: See TracChangeset for help on using the changeset viewer.