IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26843


Ignore:
Timestamp:
Feb 9, 2010, 9:14:57 PM (16 years ago)
Author:
Paul Price
Message:

Set data_exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/detrend/pmPatternIO.c

    r26836 r26843  
    1414#include "pmPatternIO.h"
    1515
    16 #define ARRAY_BUFFER 16                 // Number to add to array at a time
    17 
    18 // Names of FITS table columns
    19 #define NAME_XMIN "XMIN"                // Region of applicability: minimum x value
    20 #define NAME_XMAX "XMAX"                // Region of applicability: maximum x value
    21 #define NAME_YMIN "YMIN"                // Region of applicability: minimum y value
    22 #define NAME_YMAX "YMAX"                // Region of applicability: maximum y value
    23 #define NAME_KERNEL "KERNEL"            // Kernel description
    24 #define NAME_TYPE "TYPE"                // Kernel type
    25 #define NAME_SIZE "SIZE"                // Kernel half-size
    26 #define NAME_INNER "INNER"              // Size of inner region (only applicable for some kernel types)
    27 #define NAME_SPATIAL "SPATIAL_ORDER"    // Order of spatial polynomial
    28 #define NAME_BG "BG_ORDER"              // Order of background polynomial
    29 #define NAME_MODE "MODE"                // Matching mode
    30 #define NAME_COLS "COLUMNS"             // Number of columns
    31 #define NAME_ROWS "ROWS"                // Number of rows
    32 #define NAME_SOL1 "SOLUTION_1"          // Solution for convolving image 1
    33 #define NAME_SOL2 "SOLUTION_2"          // Solution for convolving image 2
    34 #define NAME_MEAN "MEAN"                // Mean of chi^2 from stamps
    35 #define NAME_RMS  "RMS"                 // RMS of chi^2 from stamps
    36 #define NAME_NUMSTAMPS "NUMSTAMPS"      // Number of good stamps
    37 
    38 #define EXTNAME_KERNEL "SUBTRACTION_KERNEL"    // Extension name for kernel
    39 #define EXTNAME_IMAGE  "SUBTRACTION_KERNEL_IMAGE"    // Extension name for image
    40 
    4116//////////////////////////////////////////////////////////////////////////////////////////////////////////////
    4217
     
    193168    }
    194169
     170    bool data = false;                  // Did we find any data?
     171
    195172    psMetadataItem *cellCorr = psMetadataLookup(header, PM_PATTERN_CELL_CORRECTION); // Cell pattern correction
    196173    if (cellCorr) {
    197174        psMetadataAddItem(ro->analysis, cellCorr, PS_LIST_TAIL, PS_META_REPLACE);
     175        data = true;
    198176    }
    199177
     
    204182                           "Pattern row correction", rowCorr);
    205183        psFree(rowCorr);
     184        data = true;
     185    }
     186
     187    if (data) {
     188        ro->data_exists = true;
     189        ro->parent->data_exists = true;
     190        ro->parent->parent->data_exists = true;
    206191    }
    207192
Note: See TracChangeset for help on using the changeset viewer.