IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24974


Ignore:
Timestamp:
Aug 2, 2009, 4:27:43 PM (17 years ago)
Author:
eugene
Message:

provide hook to M_ap

Location:
trunk/Ohana/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/include/dvo.h

    r24748 r24974  
    311311float PhotInst (Measure *measure);
    312312float PhotCat (Measure *measure);
     313float PhotAper (Measure *measure);
    313314float PhotSys (Measure *measure, Average *average, SecFilt *secfilt);
    314315float PhotRel (Measure *measure, Average *average, SecFilt *secfilt);
  • trunk/Ohana/src/libdvo/src/dvo_photcode_ops.c

    r17253 r24974  
    249249  code = &photcodes[0].code[Np];
    250250  Mcat = measure[0].M - ZERO_POINT + code[0].K*(measure[0].airmass - 1.000) + SCALE*code[0].C;
     251 
     252  return (Mcat);
     253}
     254
     255float PhotAper (Measure *measure) {
     256
     257  int Np;
     258  float Mcat;
     259  PhotCode *code;
     260
     261  Np = photcodes[0].hashcode[measure[0].photcode];
     262  if (Np == -1) return (NAN);
     263
     264  if (photcodes[0].code[Np].type == PHOT_REF) {
     265    Mcat = measure[0].Map;
     266    return (Mcat);
     267  }
     268  code = &photcodes[0].code[Np];
     269  Mcat = measure[0].Map - ZERO_POINT + code[0].K*(measure[0].airmass - 1.000) + SCALE*code[0].C;
    251270 
    252271  return (Mcat);
  • trunk/Ohana/src/opihi/dvo/dbExtractMeasures.c

    r21508 r24974  
    117117        case MAG_REF:
    118118          value.Flt = PhotRef  (equiv, average, secfilt, measure);
     119          break;
     120        case MAG_APER:
     121          value.Flt = PhotAper  (measure);
    119122          break;
    120123        case MAG_ERR:
  • trunk/Ohana/src/opihi/dvo/dbFields.c

    r21508 r24974  
    3737  if (!strcasecmp (string, "ave"))       return (MAG_AVE);
    3838  if (!strcasecmp (string, "ref"))       return (MAG_REF);
     39  if (!strcasecmp (string, "ap"))        return (MAG_APER);
     40  if (!strcasecmp (string, "aper"))      return (MAG_APER);
    3941  if (!strcasecmp (string, "err"))       return (MAG_ERR);
    4042  if (!strcasecmp (string, "photflags")) return (MAG_PHOT_FLAGS);
  • trunk/Ohana/src/opihi/include/dvoshell.h

    r21508 r24974  
    2727      MAG_INST,
    2828      MAG_CAT,
     29      MAG_APER,
    2930      MAG_SYS,
    3031      MAG_REL,
Note: See TracChangeset for help on using the changeset viewer.