IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 7, 2007, 10:30:37 AM (19 years ago)
Author:
magnier
Message:

convert to pmTrend2D for ApTrend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20070830/psModules/src/objects/pmPSF_IO.c

    r14652 r14782  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-08-24 00:11:02 $
     8 *  @version $Revision: 1.21.2.1 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-09-07 20:30:37 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4040#include "pmGrowthCurve.h"
    4141#include "pmResiduals.h"
     42#include "pmTrend2D.h"
    4243#include "pmPSF.h"
    4344#include "pmModel.h"
     
    354355
    355356    // XXX save the growth curve
    356     // XXX save the ApResid fit
     357    // XXX save ApTrend (as image?)
    357358
    358359# if (0)
     
    636637        psPolynomial2DtoMetadata (metadata, poly, "PSF_PAR%02d", i);
    637638    }
    638     psPolynomial4DtoMetadata (metadata, psf->ApTrend, "APTREND");
     639
     640    // XXX fix this
     641    psWarning ("APTREND is currently missing");
     642    // psPolynomial4DtoMetadata (metadata, psf->ApTrend, "APTREND");
    639643
    640644    psMetadataAdd (metadata, PS_LIST_TAIL, "PSF_AP_RESID", PS_DATA_F32, "aperture residual", psf->ApResid);
     
    681685        psf->params->data[i] = poly;
    682686    }
     687
     688    // load the APTREND data
     689    // XXX fix this to work with pmTrend2D
     690    psWarning ("APTREND is not being read");
     691    # if (0)
    683692    sprintf (keyword, "APTREND");
    684693    psMetadata *folder = psMetadataLookupPtr (&status, metadata, keyword);
     
    686695    psFree (psf->ApTrend);
    687696    psf->ApTrend = poly;
     697    # endif
    688698
    689699    psf->ApResid = psMetadataLookupF32 (&status, metadata, "PSF_AP_RESID");
Note: See TracChangeset for help on using the changeset viewer.