- Timestamp:
- Aug 17, 2007, 11:01:59 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070817/psModules/src/objects/pmPSF_IO.c
r14207 r14544 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $9 * @date $Date: 2007-0 7-14 03:20:22$8 * @version $Revision: 1.20.4.1 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-08-17 21:01:59 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 44 44 #include "pmPSF_IO.h" 45 45 #include "pmSource.h" 46 #include "pmModel Group.h"46 #include "pmModelClass.h" 47 47 #include "pmSourceIO.h" 48 48 … … 313 313 psMetadata *header = psMetadataAlloc(); 314 314 315 char *modelName = pmModel GetType (psf->type);315 char *modelName = pmModelClassGetName (psf->type); 316 316 psMetadataAddStr (header, PS_LIST_TAIL, "PSF_NAME", 0, "PSF model name", modelName); 317 317 318 318 psMetadataAddBool (header, PS_LIST_TAIL, "POISSON", 0, "Use Poisson errors in fits?", psf->poissonErrors); 319 319 320 int nPar = pmModel ParameterCount (psf->type) ;320 int nPar = pmModelClassParameterCount (psf->type) ; 321 321 psMetadataAdd (header, PS_LIST_TAIL, "PSF_NPAR", PS_DATA_S32, "PSF model parameter count", nPar); 322 322 … … 599 599 // load the PSF model parameters from the FITS table 600 600 char *modelName = psMetadataLookupStr (&status, header, "PSF_NAME"); 601 pmModelType type = pmModel SetType (modelName);601 pmModelType type = pmModelClassGetType (modelName); 602 602 if (type == -1) { 603 603 psError(PS_ERR_UNKNOWN, true, "invalid model name %s in psf file %s", modelName, file->filename); … … 612 612 // check the number of expected parameters 613 613 int nPar = psMetadataLookupS32 (&status, header, "PSF_NPAR"); 614 if (nPar != pmModel ParameterCount (psf->type))614 if (nPar != pmModelClassParameterCount (psf->type)) 615 615 psAbort("mismatch model par count"); 616 616 … … 717 717 } 718 718 719 char *modelName = pmModel GetType (psf->type);719 char *modelName = pmModelClassGetName (psf->type); 720 720 psMetadataAdd (metadata, PS_LIST_TAIL, "PSF_MODEL_NAME", PS_DATA_STRING, "PSF model name", modelName); 721 721 722 int nPar = pmModel ParameterCount (psf->type) ;722 int nPar = pmModelClassParameterCount (psf->type) ; 723 723 psMetadataAdd (metadata, PS_LIST_TAIL, "PSF_MODEL_NPAR", PS_DATA_S32, "PSF model parameter count", nPar); 724 724 … … 749 749 750 750 char *modelName = psMetadataLookupPtr (&status, metadata, "PSF_MODEL_NAME"); 751 pmModelType type = pmModel SetType (modelName);751 pmModelType type = pmModelClassGetType (modelName); 752 752 753 753 bool poissonErrors = psMetadataLookupPtr (&status, metadata, "PSF_POISSON_ERRORS"); … … 759 759 760 760 int nPar = psMetadataLookupS32 (&status, metadata, "PSF_MODEL_NPAR"); 761 if (nPar != pmModel ParameterCount (psf->type))761 if (nPar != pmModelClassParameterCount (psf->type)) 762 762 psAbort("mismatch model par count"); 763 763
Note:
See TracChangeset
for help on using the changeset viewer.
