IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 12, 2014, 1:05:19 PM (12 years ago)
Author:
bills
Message:

Fix bug where psphotStack used the wrong background model to comput the
sources' sky values.
Fix is to upgrade the functions that get the background model to take the
index of the input. Changed psphotMagnitudesReadout to pass in the index

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotOutput.c

    r35769 r37590  
    2929}
    3030
    31 pmReadout *psphotSelectBackground (pmConfig *config, const pmFPAview *view) {
    32 
    33     bool status;
    34    
    35 
    36     pmFPAfile *file = psMetadataLookupPtr (&status, config->files, psphotGetFilerule("PSPHOT.BACKMDL"));
     31pmReadout *psphotSelectBackground (pmConfig *config, const pmFPAview *view, int index) {
     32
     33    pmFPAfile *file = pmFPAfileSelectSingle (config->files, psphotGetFilerule("PSPHOT.BACKMDL"), index);
    3734    if (!file) return NULL;
    3835
     
    4138}
    4239
    43 pmReadout *psphotSelectBackgroundStdev (pmConfig *config, const pmFPAview *view) {
    44 
    45     bool status;
    46 
    47     pmFPAfile *file = psMetadataLookupPtr (&status, config->files, psphotGetFilerule("PSPHOT.BACKMDL.STDEV"));
     40pmReadout *psphotSelectBackgroundStdev (pmConfig *config, const pmFPAview *view, int index) {
     41
     42    pmFPAfile *file = pmFPAfileSelectSingle (config->files, psphotGetFilerule("PSPHOT.BACKMDL.STDEV"), index);
    4843    if (!file) return NULL;
    4944
Note: See TracChangeset for help on using the changeset viewer.