IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 28, 2015, 5:35:05 AM (11 years ago)
Author:
eugene
Message:

pmDetrendDB should not fail if the classID is not present in the list of locations (eg, not one of the listed cameras); add galaxy shape error analysis failure flags to pmModelStatus; correctly load SKY_EXT from cmf file; for psastro, we need to get FWHM_MAJ,MIN from the header not the readout analysis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150326/psModules/src/objects/pmSourceOutputs.c

    r36860 r38031  
    6060    // we need a measure of the image quality (FWHM) for this image, in order to get the positional errors
    6161    *fwhmMajor = psMetadataLookupF32(&status1, readout->analysis, "FWHM_MAJ");
    62     if (!status1) {
    63         *fwhmMajor = psMetadataLookupF32(&status1, readout->analysis, "IQ_FW1");
    64         if (!status1) {
    65             *fwhmMajor = 5.0; // XXX just a guess!
    66         }
    67     }
     62    if (status1) goto got_major;
     63
     64    *fwhmMajor = psMetadataLookupF32(&status1, header, "FWHM_MAJ");
     65    if (status1) goto got_major;
     66
     67    *fwhmMajor = psMetadataLookupF32(&status1, readout->analysis, "IQ_FW1");
     68    if (status1) goto got_major;
     69
     70    *fwhmMajor = psMetadataLookupF32(&status1, header, "IQ_FW1");
     71    if (status1) goto got_major;
     72
     73    *fwhmMajor = 5.0; // XXX just a guess!
     74
     75    got_major:
     76
    6877    *fwhmMinor = psMetadataLookupF32(&status1, readout->analysis, "FWHM_MIN");
    69     if (!status1) {
    70         *fwhmMinor = psMetadataLookupF32(&status1, readout->analysis, "IQ_FW2");
    71         if (!status1) {
    72             *fwhmMinor = 5.0; // XXX just a guess!
    73         }
    74     }
    75 
     78    if (status1) goto got_minor;
     79    *fwhmMinor = psMetadataLookupF32(&status1, header, "FWHM_MIN");
     80    if (status1) goto got_minor;
     81
     82    *fwhmMinor = psMetadataLookupF32(&status1, readout->analysis, "IQ_FW2");
     83    if (status1) goto got_minor;
     84    *fwhmMinor = psMetadataLookupF32(&status1, header, "IQ_FW2");
     85    if (status1) goto got_minor;
     86
     87    *fwhmMinor = 5.0; // XXX just a guess!
     88
     89    got_minor:
    7690    return true;
    7791
Note: See TracChangeset for help on using the changeset viewer.