IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2006, 5:14:23 PM (20 years ago)
Author:
magnier
Message:

major rework of objects code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/objects/pmSourceIO.c

    r6545 r6556  
     1/** @file  pmSourceIO.c
     2 *
     3 *  @author EAM, IfA
     4 *
     5 *  @version $Revision: 1.1.2.2 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-03-09 03:14:23 $
     7 *
     8 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     9 *
     10 */
     11
     12#include <stdio.h>
     13#include <math.h>
     14#include <string.h>
     15#include "pslib.h"
     16#include "pmHDU.h"
     17#include "pmFPA.h"
     18#include "pmPeaks.h"
     19#include "pmMoments.h"
     20#include "pmGrowthCurve.h"
     21#include "pmModel.h"
     22#include "pmPSF.h"
     23#include "pmSource.h"
     24#include "pmModelGroup.h"
     25#include "pmSourceIO.h"
    126
    227// translations between psphot object types and dophot object types
     
    631    switch (source->type) {
    732
    8     case PM_SOURCE_DEFECT:
    9     case PM_SOURCE_SATURATED:
     33    case PM_SOURCE_TYPE_DEFECT:
     34    case PM_SOURCE_TYPE_SATURATED:
    1035        return (8);
    1136
    12     case PM_SOURCE_STAR:
    13         if (source->mode & PM_SOURCE_SATSTAR)
     37    case PM_SOURCE_TYPE_STAR:
     38        if (source->mode & PM_SOURCE_MODE_SATSTAR)
    1439            return (10);
    15         if (source->mode & PM_SOURCE_POOR)
     40        if (source->mode & PM_SOURCE_MODE_POOR)
    1641            return (7);
    17         if (source->mode & PM_SOURCE_FAIL)
     42        if (source->mode & PM_SOURCE_MODE_FAIL)
    1843            return (4);
    1944        return (1);
    2045
    21     case PM_SOURCE_EXTENDED:
     46    case PM_SOURCE_TYPE_EXTENDED:
    2247        return (2);
    2348
     
    2954
    3055/***** Text Output Methods *****/
    31 
    32 bool pmSourcesWriteText (psArray *sources, char *filename)
     56# if (0)
     57    bool pmSourcesWriteText (psArray *sources, char *filename)
    3358{
    3459
     
    5075    return true;
    5176}
    52 
     77# endif
Note: See TracChangeset for help on using the changeset viewer.