IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 22, 2009, 10:43:26 AM (18 years ago)
Author:
eugene
Message:

lots of very minor API mods to satisfy some pickier compilers (supply void to prototypes for argument-less functions)

Location:
trunk/Ohana/src/relphot
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/include/relphot.h

    r20323 r21153  
    125125int           args                PROTO((int argc, char **argv));
    126126int           bcatalog            PROTO((Catalog *subcatalog, Catalog *catalog));
    127 void          clean_images        PROTO(());
     127void          clean_images        PROTO((void));
    128128void          clean_measures      PROTO((Catalog *catalog, int Ncatalog, int final));
    129 void          clean_mosaics       PROTO(());
     129void          clean_mosaics       PROTO((void));
    130130void          clean_stars         PROTO((Catalog *catalog, int Ncatalog));
    131131int           corner_check        PROTO((double *x1, double *y1, double *x2, double *y2));
    132 void          dumpGrid            PROTO(());
    133 void          dump_grid           PROTO(());
     132void          dumpGrid            PROTO((void));
     133void          dump_grid           PROTO((void));
    134134int           edge_check          PROTO((double *x1, double *y1, double *x2, double *y2));
    135135void          findImages          PROTO((Catalog *catalog, int Ncatalog));
     
    140140void TrapSignal (int sig);
    141141void SetProtect (int mode);
    142 int SetSignals ();
     142int SetSignals (void);
    143143
    144144void          freeGridBins        PROTO((int Ncatalog));
     
    179179void          plot_defaults       PROTO((Graphdata *graphdata));
    180180void          plot_grid           PROTO((Catalog *catalog));
    181 void          plot_images         PROTO(());
     181void          plot_images         PROTO((void));
    182182void          plot_list           PROTO((Graphdata *graphdata, double *xlist, double *ylist, int N, char *label, char *format, ...));
    183183void          plot_mosaic_fields  PROTO((Catalog *catalog));
    184 void          plot_mosaics        PROTO(());
     184void          plot_mosaics        PROTO((void));
    185185void          plot_scatter        PROTO((Catalog *catalog, int Ncatalog));
    186186void          plot_star_coords    PROTO((Catalog *catalog, int Ncatalog));
     
    190190int           setExclusions       PROTO((Catalog *catalog, int Ncatalog));
    191191void          setMcal             PROTO((Catalog *catalog, int Poor));
    192 void          setMcalFinal        PROTO(());
     192void          setMcalFinal        PROTO((void));
    193193int           setMcalOutput       PROTO((Catalog *catalog, int Ncatalog));
    194194void          setMgrid            PROTO((Catalog *catalog));
     
    217217StatType      statsStarX          PROTO((Catalog *catalog, int Ncatalog));
    218218void          wcatalog            PROTO((Catalog *catalog));
    219 void          wimages             PROTO(());
     219void          wimages             PROTO((void));
    220220void          write_coords        PROTO((Header *header, Coords *coords));
    221 int relphot_objects ();
     221int relphot_objects (void);
  • trunk/Ohana/src/relphot/src/StarOps.c

    r20936 r21153  
    207207          if (isnan(Msys)) continue;
    208208
     209          // XXX this is a hack for the 2MASS search; better to save an average value?
     210          if (catalog[i].measure[m].qPSF < 0.85) continue;
     211
    209212          list[N] = Msys - catalog[i].measure[m].Mcal;
    210213          dlist[N] = MAX (catalog[i].measure[m].dM, MIN_ERROR);
  • trunk/Ohana/src/relphot/src/relphot.c

    r20537 r21153  
    125125    if ((i == 1) || (i == 5) || (i ==  9) || (i == 13)) clean_measures (catalog, Ncatalog, FALSE);
    126126    if ((i == 2) || (i == 6) || (i == 10) || (i == 14)) clean_stars (catalog, Ncatalog);
    127     if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_mosaics (catalog, Ncatalog);
     127    if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_mosaics ();
    128128    if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_images ();
    129129    global_stats (catalog, Ncatalog);
  • trunk/Ohana/src/relphot/src/relphot_objects.c

    r17242 r21153  
    44
    55  int i, j, k, m;
     6  int Nsecfilt;
    67
    78  SkyTable *sky = NULL;
     
    3940    // XXX consider what gets reset (only PHOTOM flags)
    4041    if (RESET) {
     42      Nsecfilt = catalog.Nsecfilt;
    4143      for (j = 0; j < catalog.Naverage; j++) {
    4244        catalog.average[j].code = 0;
     45        for (k = 0; k < Nsecfilt; k++) {
     46          catalog.secfilt[j*Nsecfilt + k].M  = NAN;
     47          catalog.secfilt[j*Nsecfilt + k].dM = NAN;
     48          catalog.secfilt[j*Nsecfilt + k].Xm = NAN_S_SHORT;
     49          catalog.secfilt[j*Nsecfilt + k].Ncode = 0;
     50          catalog.secfilt[j*Nsecfilt + k].Nused = 0;
     51          catalog.secfilt[j*Nsecfilt + k].dummy = 0;
     52        }
    4353        m = catalog.average[j].measureOffset;
    4454        for (k = 0; k < catalog.average[j].Nmeasure; k++) {
Note: See TracChangeset for help on using the changeset viewer.