IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39383


Ignore:
Timestamp:
Feb 24, 2016, 10:19:40 AM (10 years ago)
Author:
eugene
Message:

pass psfQF to MeasureTiny from remote machine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relastro/src/BrightCatalog.c

    r39262 r39383  
    7676    GET_COLUMN(Yfix,      "Y_FIX",      float);
    7777    GET_COLUMN(dt,        "EXPTIME",    float);
     78    GET_COLUMN(psfQF,     "PSF_QF",     float);
    7879    GET_COLUMN(t,         "TIME",       int);
    7980    GET_COLUMN(averef,    "AVE_REF",    int); // XXX signed vs unsigned?
     
    101102      measure[i].Yfix      = Yfix[i];
    102103      measure[i].dt        = dt[i];
     104      measure[i].psfQF     = psfQF[i];
    103105      measure[i].t         = t[i];
    104106      measure[i].averef    = averef[i];
     
    126128    free (Yfix    );
    127129    free (dt      );
     130    free (psfQF   );
    128131    free (t       );
    129132    free (averef  );
     
    365368    gfits_define_bintable_column (&theader, "E", "Y_FIX",    "ccd y fiex coord",           "pix",    1.0, 0.0);
    366369    gfits_define_bintable_column (&theader, "E", "EXPTIME",  "-2.5 * log (exposure time)", "sec",    1.0, 0.0);
     370    gfits_define_bintable_column (&theader, "E", "PSF_QF",   "psf quality factor",          NULL,    1.0, 0.0);
    367371    gfits_define_bintable_column (&theader, "J", "TIME",     "time of exp",                "sec",    1.0, 0.0);
    368372    gfits_define_bintable_column (&theader, "J", "AVE_REF",  "pointer to average table",    NULL,    1.0, 0.0);
     
    388392    float  *Yfix      ; ALLOCATE (Yfix     ,  float,  catalog->Nmeasure);
    389393    float  *dt        ; ALLOCATE (dt       ,  float,  catalog->Nmeasure);
     394    float  *psfQF     ; ALLOCATE (psfQF    ,  float,  catalog->Nmeasure);
    390395    int    *t         ; ALLOCATE (t        ,  int  ,  catalog->Nmeasure);
    391396    int    *averef    ; ALLOCATE (averef   ,  int  ,  catalog->Nmeasure);
     
    410415      Yfix[i]     = measure[i].Yfix     ;
    411416      dt[i]       = measure[i].dt       ;
     417      psfQF[i]    = measure[i].psfQF    ;
    412418      t[i]        = measure[i].t        ;
    413419      averef[i]   = measure[i].averef   ;
     
    431437    gfits_set_bintable_column (&theader, &ftable, "Y_FIX",      Yfix,      catalog->Nmeasure);
    432438    gfits_set_bintable_column (&theader, &ftable, "EXPTIME",    dt,        catalog->Nmeasure);
     439    gfits_set_bintable_column (&theader, &ftable, "PSF_QF",     psfQF,     catalog->Nmeasure);
    433440    gfits_set_bintable_column (&theader, &ftable, "TIME",       t,         catalog->Nmeasure);
    434441    gfits_set_bintable_column (&theader, &ftable, "AVE_REF",    averef,    catalog->Nmeasure);
     
    450457    free (Yfix    );
    451458    free (dt      );
     459    free (psfQF   );
    452460    free (t       );
    453461    free (averef  );
Note: See TracChangeset for help on using the changeset viewer.