IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 12, 2015, 8:38:47 PM (11 years ago)
Author:
eugene
Message:

updates for Mflat

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

Legend:

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

    r37037 r39262  
    6767    GET_COLUMN(M,         "MAG_SYS",    float);
    6868    GET_COLUMN(Mcal,      "MAG_CAL",    float);
     69    GET_COLUMN(Mflat,     "MAG_FLAT",   float);
    6970    GET_COLUMN(dM,        "MAG_ERR",    float);
    7071    GET_COLUMN(airmass,   "AIRMASS",    float);
     
    8990      measure[i].M         = M[i];
    9091      measure[i].Mcal      = Mcal[i];
     92      measure[i].Mflat     = Mflat[i];
    9193      measure[i].dM        = dM[i];
    9294      measure[i].airmass   = airmass[i];
     
    109111    free (M       );
    110112    free (Mcal    );
     113    free (Mflat   );
    111114    free (dM      );
    112115    free (airmass );
     
    269272    gfits_define_bintable_column (&theader, "E", "MAG_SYS",  "magnitude (sys)",             NULL,    1.0, 0.0);
    270273    gfits_define_bintable_column (&theader, "E", "MAG_CAL",  "magnitude (cal)",             NULL,    1.0, 0.0);
     274    gfits_define_bintable_column (&theader, "E", "MAG_FLAT", "magnitude (flat)",            NULL,    1.0, 0.0);
    271275    gfits_define_bintable_column (&theader, "E", "MAG_ERR",  "magnitude (err)",             NULL,    1.0, 0.0);
    272276    gfits_define_bintable_column (&theader, "E", "AIRMASS",  "airmass",                     NULL,    1.0, 0.0);
     
    290294    float  *M         ; ALLOCATE (M        ,  float,  catalog->Nmeasure);
    291295    float  *Mcal      ; ALLOCATE (Mcal     ,  float,  catalog->Nmeasure);
     296    float  *Mflat     ; ALLOCATE (Mflat    ,  float,  catalog->Nmeasure);
    292297    float  *dM        ; ALLOCATE (dM       ,  float,  catalog->Nmeasure);
    293298    float  *airmass   ; ALLOCATE (airmass  ,  float,  catalog->Nmeasure);
     
    310315      M[i]        = measure[i].M        ;
    311316      Mcal[i]     = measure[i].Mcal     ;
     317      Mflat[i]    = measure[i].Mflat    ;
    312318      dM[i]       = measure[i].dM       ;
    313319      airmass[i]  = measure[i].airmass  ;
     
    329335    gfits_set_bintable_column (&theader, &ftable, "MAG_SYS",    M,         catalog->Nmeasure);
    330336    gfits_set_bintable_column (&theader, &ftable, "MAG_CAL",    Mcal,      catalog->Nmeasure);
     337    gfits_set_bintable_column (&theader, &ftable, "MAG_FLAT",   Mflat,     catalog->Nmeasure);
    331338    gfits_set_bintable_column (&theader, &ftable, "MAG_ERR",    dM,        catalog->Nmeasure);
    332339    gfits_set_bintable_column (&theader, &ftable, "AIRMASS",    airmass,   catalog->Nmeasure);
     
    346353    free (M       );
    347354    free (Mcal    );
     355    free (Mflat   );
    348356    free (dM      );
    349357    free (airmass );
  • trunk/Ohana/src/relphot/src/setMrelCatalog.c

    r39107 r39262  
    11# include "relphot.h"
     2
     3/*
     4# define TEST_OBJ_ID 0x3ae2
     5# define TEST_CAT_ID 0x16c5f
     6*/
     7# define TEST_OBJ_ID 0
     8# define TEST_CAT_ID 0
     9
    210int markMeasureByRanking (StatDataSet *dataset, Measure *measure, int minrank, DVOMeasureFlags flags);
    311
     
    113121
    114122  // option for a test print
    115   if (FALSE && (averageT[0].objID == 0x7146) && (averageT[0].catID == 0x49d8)) {
     123  if ((averageT[0].objID == TEST_OBJ_ID) && (averageT[0].catID == TEST_CAT_ID)) {
    116124    fprintf (stderr, "test obj\n");
    117125    print_measure_set_alt (average, secfilt, measure);
     
    353361
    354362    if (isSetMrelFinal) {
    355       if (FALSE && (average->objID == 0x1) && (average->catID)) {
     363      if ((average[0].objID == TEST_OBJ_ID) && (average[0].catID == TEST_CAT_ID)) {
    356364        fprintf (stderr, "test obj\n");
    357365      }
     
    723731
    724732  // option for a test print
    725   if (FALSE && (average[0].objID == 0x0000049c) && (average[0].catID == 0x00016c5e)) {
     733  if ((average[0].objID == TEST_OBJ_ID) && (average[0].catID == TEST_CAT_ID)) {
    726734    fprintf (stderr, "test obj\n");
    727735    print_measure_set_alt (average, secfilt, measure);
Note: See TracChangeset for help on using the changeset viewer.