IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2007, 9:27:04 AM (19 years ago)
Author:
eugene
Message:

changed mask to coeffMask, define PS_POLY_MASK_FIT,SET; distinguish between coeffs masked for fitting (FIT) and masked for evaluation (SET)

Location:
trunk/psModules/src/objects
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmPSF_IO.c

    r15230 r15254  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-10-06 01:02:49 $
     8 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-10-09 19:26:25 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    358358                        psMetadataAddF32 (row, PS_LIST_TAIL, "VALUE",      0, "", poly->coeff[ix][iy]);
    359359                        psMetadataAddF32 (row, PS_LIST_TAIL, "ERROR",      0, "", poly->coeffErr[ix][iy]);
    360                         psMetadataAddU8  (row, PS_LIST_TAIL, "MASK",       0, "", poly->mask[ix][iy]);
     360                        psMetadataAddU8  (row, PS_LIST_TAIL, "MASK",       0, "", poly->coeffMask[ix][iy]);
    361361
    362362                        psArrayAdd (psfTable, 100, row);
     
    710710            assert (xPow <= poly->nX);
    711711            assert (yPow <= poly->nY);
    712             poly->coeff[xPow][yPow]    = psMetadataLookupF32 (&status, row, "VALUE");
    713             poly->coeffErr[xPow][yPow] = psMetadataLookupF32 (&status, row, "ERROR");
    714             poly->mask[xPow][yPow]    = psMetadataLookupU8  (&status, row, "MASK");
     712            poly->coeff[xPow][yPow]     = psMetadataLookupF32 (&status, row, "VALUE");
     713            poly->coeffErr[xPow][yPow]  = psMetadataLookupF32 (&status, row, "ERROR");
     714            poly->coeffMask[xPow][yPow] = psMetadataLookupU8  (&status, row, "MASK");
    715715        }
    716716    }
  • trunk/psModules/src/objects/pmPSFtry.c

    r15016 r15254  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-09-25 22:05:05 $
     7 *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-10-09 19:26:25 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    280280    // linear clipped fit of ApResid to r2rflux
    281281    psPolynomial1D *poly = psPolynomial1DAlloc (PS_POLYNOMIAL_ORD, 1);
    282     poly->mask[1] = 1; // fit only a constant offset (no SKYBIAS)
     282    poly->coeffMask[1] = PS_POLY_MASK_SET; // fit only a constant offset (no SKYBIAS)
    283283
    284284    // XXX replace this with a psVectorStats call?  since we are not fitting the trend
  • trunk/psModules/src/objects/pmTrend2D.c

    r15000 r15254  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-09-24 21:27:58 $
     5 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-10-09 19:26:25 $
    77 *
    88 *  Copyright 2004 Institute for Astronomy, University of Hawaii
     
    4848            for (int ny = 0; ny < trend->poly->nY + 1; ny++) {
    4949                if (nx + ny >= PS_MAX (trend->poly->nX, trend->poly->nY) + 1) {
    50                     trend->poly->mask[nx][ny] = 1;
     50                    trend->poly->coeffMask[nx][ny] = PS_POLY_MASK_SET;
    5151                } else {
    52                     trend->poly->mask[nx][ny] = 0;
     52                    trend->poly->coeffMask[nx][ny] = PS_POLY_MASK_NONE;
    5353                }
    5454            }
     
    9696            for (int ny = 0; ny < trend->poly->nY + 1; ny++) {
    9797                if (nx + ny >= PS_MAX (trend->poly->nX, trend->poly->nY) + 1) {
    98                     trend->poly->mask[nx][ny] = 1;
     98                    trend->poly->coeffMask[nx][ny] = PS_POLY_MASK_SET;
    9999                } else {
    100                     trend->poly->mask[nx][ny] = 0;
     100                    trend->poly->coeffMask[nx][ny] = PS_POLY_MASK_NONE;
    101101                }
    102102            }
     
    137137            for (int ny = 0; ny < trend->poly->nY + 1; ny++) {
    138138                if (nx + ny >= PS_MAX (trend->poly->nX, trend->poly->nY) + 1) {
    139                     trend->poly->mask[nx][ny] = 1;
     139                    trend->poly->coeffMask[nx][ny] = PS_POLY_MASK_SET;
    140140                } else {
    141                     trend->poly->mask[nx][ny] = 0;
     141                    trend->poly->coeffMask[nx][ny] = PS_POLY_MASK_NONE;
    142142                }
    143143            }
Note: See TracChangeset for help on using the changeset viewer.