IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10211


Ignore:
Timestamp:
Nov 27, 2006, 6:20:39 PM (19 years ago)
Author:
Paul Price
Message:

Cleaning up code.

Location:
trunk/ppImage/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageDetrendBias.c

    r9825 r10211  
    88{
    99    psTrace("ppImage", 1, "Commencing bias processing....\n");
    10 //    psMetadataPrint(inputReadout->parent->concepts, 7);
    1110
    1211    if (!pmSubtractBias(inputReadout, options->overscan, bias, dark)) {
    13         return false;
     12        psError(PS_ERR_UNKNOWN, false, "Unable to subtract bias.\n");
     13        return false;
    1414    }
    1515
    1616    // Output overscan fit results, if required
    1717    if (! options->doOverscan || ! options->overscan) {
    18         return true;
     18        return true;                    // No overscan fit to report
    1919    }
    2020
     
    3333                psStringAppend(&coeffs, "%e ", poly->coeff[i]);
    3434            }
    35             psLogMsg("phase2", PS_LOG_INFO, "Overscan polynomial coefficients:\n%s\n", coeffs);
     35            psLogMsg("ppImage", PS_LOG_INFO, "Overscan polynomial coefficients:\n%s\n", coeffs);
    3636            psFree(coeffs);
    3737            break;
     
    4949                psStringAppend(&coeffs, "\n");
    5050            }
    51             psLogMsg("phase2", PS_LOG_INFO, "Overscan spline coefficients:\n%s\n", coeffs);
     51            psLogMsg("ppImage", PS_LOG_INFO, "Overscan spline coefficients:\n%s\n", coeffs);
    5252            psFree(coeffs);
    5353            break;
  • trunk/ppImage/src/ppImageDetrendFringe.c

    r9952 r10211  
     1#ifdef HAVE_CONFIG_H
     2#include <config.h>
     3#endif
     4
    15#include <stdio.h>
    26#include <pslib.h>
    37#include <psmodules.h>
    48
     9#include "ppImageOptions.h"
    510#include "ppImageDetrendFringe.h"
    611
    7 bool ppImageDetrendFringeMeasure(pmReadout *readout, // Readout to measure
    8                                  pmCell *fringe, // Fringe cell (each readout is a different component)
    9                                  const ppImageOptions *options // Options
    10                                  )
     12bool ppImageDetrendFringeMeasure(pmReadout *readout, pmCell *fringe, const ppImageOptions *options)
    1113{
    1214    PS_ASSERT_PTR_NON_NULL(readout, false);
     
    98100// Solve the fringe system: we have science fringe measurements for each cell, and an array of reference
    99101// fringe measurements for each cell.  Need to concatenate these together first, and then solve.
    100 bool ppImageDetrendFringeSolve(pmChip *scienceChip, // Chip with science
    101                                const pmChip *refChip, // Chip with reference fringes
    102                                const ppImageOptions *options // Options
    103     )
     102bool ppImageDetrendFringeSolve(pmChip *scienceChip, const pmChip *refChip, const ppImageOptions *options)
    104103{
    105104    PS_ASSERT_PTR_NON_NULL(scienceChip, NULL);
     
    142141
    143142
    144 psImage *ppImageDetrendFringeGenerate(pmCell *science, // Science cell
    145                                       pmCell *fringes // Fringe cell, one readout per fringe component
    146     )
     143psImage *ppImageDetrendFringeGenerate(pmCell *science, pmCell *fringes)
    147144{
    148145    PS_ASSERT_PTR_NON_NULL(science, false);
Note: See TracChangeset for help on using the changeset viewer.