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

File:
1 edited

Legend:

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

    r39225 r39262  
    6767    GET_COLUMN(R,         "RA",         double);
    6868    GET_COLUMN(D,         "DEC",        double);
    69     GET_COLUMN(RoffGAL,   "ROFF_GAL",   float);
    70     GET_COLUMN(DoffGAL,   "DOFF_GAL",   float);
    7169    GET_COLUMN(M,         "MAG_SYS",    float);
    7270    GET_COLUMN(Mcal,      "MAG_CAL",    float);
     
    9492      measure[i].R         = R[i];
    9593      measure[i].D         = D[i];
    96       measure[i].RoffGAL   = RoffGAL[i];
    97       measure[i].DoffGAL   = DoffGAL[i];
    9894      measure[i].M         = M[i];
    9995      measure[i].Mcal      = Mcal[i];
     
    121117    free (R       );
    122118    free (D       );
    123     free (RoffGAL );
    124     free (DoffGAL );
    125119    free (M       );
    126120    free (Mcal    );
     
    362356    gfits_define_bintable_column (&theader, "D", "RA",       "ra",                         "degrees", 1.0, 0.0);
    363357    gfits_define_bintable_column (&theader, "D", "DEC",      "dec",                        "degrees", 1.0, 0.0);
    364     gfits_define_bintable_column (&theader, "E", "ROFF_GAL", "ra offset",                  "arcsec", 1.0, 0.0);
    365     gfits_define_bintable_column (&theader, "E", "DOFF_GAL", "dec offset",                 "arcsec", 1.0, 0.0);
    366358    gfits_define_bintable_column (&theader, "E", "MAG_SYS",  "magnitude (sys)",             NULL,    1.0, 0.0);
    367359    gfits_define_bintable_column (&theader, "E", "MAG_CAL",  "magnitude (cal)",             NULL,    1.0, 0.0);
     
    382374
    383375    // generate the output array that carries the data
    384     ohana_memcheck (1);
    385376    gfits_create_table (&theader, &ftable);
    386     ohana_memcheck (1);
    387377
    388378    // create intermediate storage arrays
    389379    double *R         ; ALLOCATE (R        ,  double, catalog->Nmeasure);
    390380    double *D         ; ALLOCATE (D        ,  double, catalog->Nmeasure);
    391     float  *RoffGAL   ; ALLOCATE (RoffGAL  ,  float,  catalog->Nmeasure);
    392     float  *DoffGAL   ; ALLOCATE (DoffGAL  ,  float,  catalog->Nmeasure);
    393381    float  *M         ; ALLOCATE (M        ,  float,  catalog->Nmeasure);
    394382    float  *Mcal      ; ALLOCATE (Mcal     ,  float,  catalog->Nmeasure);
     
    407395    int    *catID     ; ALLOCATE (catID    ,  int  ,  catalog->Nmeasure);
    408396    short  *photcode  ; ALLOCATE (photcode ,  short,  catalog->Nmeasure);
    409     ohana_memcheck (1);
    410397
    411398    // assign the storage arrays
     
    414401      R[i]        = measure[i].R        ;
    415402      D[i]        = measure[i].D        ;
    416       RoffGAL[i]  = measure[i].RoffGAL  ;
    417       DoffGAL[i]  = measure[i].DoffGAL  ;
    418403      M[i]        = measure[i].M        ;
    419404      Mcal[i]     = measure[i].Mcal     ;
     
    433418      photcode[i] = measure[i].photcode ;
    434419    }
    435     ohana_memcheck (1);
    436420
    437421    // add the columns to the output array
    438422    gfits_set_bintable_column (&theader, &ftable, "RA",         R,         catalog->Nmeasure);
    439     ohana_memcheck (1);
    440423    gfits_set_bintable_column (&theader, &ftable, "DEC",        D,         catalog->Nmeasure);
    441     ohana_memcheck (1);
    442     gfits_set_bintable_column (&theader, &ftable, "ROFF_GAL",   RoffGAL,   catalog->Nmeasure);
    443     gfits_set_bintable_column (&theader, &ftable, "DOFF_GAL",   DoffGAL,   catalog->Nmeasure);
    444424    gfits_set_bintable_column (&theader, &ftable, "MAG_SYS",    M,         catalog->Nmeasure);
    445425    gfits_set_bintable_column (&theader, &ftable, "MAG_CAL",    Mcal,      catalog->Nmeasure);
     
    461441    free (R       );
    462442    free (D       );
    463     free (RoffGAL );
    464     free (DoffGAL );
    465443    free (M       );
    466444    free (Mcal    );
Note: See TracChangeset for help on using the changeset viewer.