IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2012, 8:50:56 AM (14 years ago)
Author:
bills
Message:

Initialize components of pmMoments strutcure to NAN instead of 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmMoments.c

    r32347 r34541  
    3030    pmMoments *tmp = (pmMoments *) psAlloc(sizeof(pmMoments));
    3131
    32     tmp->Mrf = 0.0;
    33     tmp->Mrh = 0.0;
     32    tmp->Mrf = NAN;
     33    tmp->Mrh = NAN;
    3434
    35     tmp->KronCore = 0.0;
    36     tmp->KronCoreErr = 0.0;
     35    tmp->KronCore = NAN;
     36    tmp->KronCoreErr = NAN;
    3737
    38     tmp->KronFlux = 0.0;
    39     tmp->KronFluxErr = 0.0;
     38    tmp->KronFlux = NAN;
     39    tmp->KronFluxErr = NAN;
    4040
    41     tmp->KronFinner = 0.0;
    42     tmp->KronFouter = 0.0;
     41    tmp->KronFinner = NAN;
     42    tmp->KronFouter = NAN;
    4343
    44     tmp->KronFluxPSF = 0.0;
    45     tmp->KronFluxPSFErr = 0.0;
    46     tmp->KronRadiusPSF = 0.0;
     44    tmp->KronFluxPSF = NAN;
     45    tmp->KronFluxPSFErr = NAN;
     46    tmp->KronRadiusPSF = NAN;
    4747
    48     tmp->Mx = 0.0;
    49     tmp->My = 0.0;
     48    tmp->Mx = NAN;
     49    tmp->My = NAN;
    5050
    51     tmp->Mxx = 0.0;
    52     tmp->Mxy = 0.0;
    53     tmp->Myy = 0.0;
     51    tmp->Mxx = NAN;
     52    tmp->Mxy = NAN;
     53    tmp->Myy = NAN;
    5454
    55     tmp->Mxxx = 0.0;
    56     tmp->Mxxy = 0.0;
    57     tmp->Mxyy = 0.0;
    58     tmp->Myyy = 0.0;
     55    tmp->Mxxx = NAN;
     56    tmp->Mxxy = NAN;
     57    tmp->Mxyy = NAN;
     58    tmp->Myyy = NAN;
    5959
    60     tmp->Mxxxx = 0.0;
    61     tmp->Mxxxy = 0.0;
    62     tmp->Mxxyy = 0.0;
    63     tmp->Mxyyy = 0.0;
    64     tmp->Myyyy = 0.0;
     60    tmp->Mxxxx = NAN;
     61    tmp->Mxxxy = NAN;
     62    tmp->Mxxyy = NAN;
     63    tmp->Mxyyy = NAN;
     64    tmp->Myyyy = NAN;
    6565
    66     tmp->Sum = 0.0;
    67     tmp->Peak = 0.0;
    68     tmp->Sky = 0.0;
     66    tmp->Sum = NAN;
     67    tmp->Peak = NAN;
     68    tmp->Sky = NAN;
    6969    tmp->nPixels = 0;
    7070    tmp->SN = 0;
Note: See TracChangeset for help on using the changeset viewer.