IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 19, 2013, 3:42:02 PM (13 years ago)
Author:
eugene
Message:

merged from trunk

Location:
branches/eam_branches/ipp-20130307
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130307

  • branches/eam_branches/ipp-20130307/psModules

  • branches/eam_branches/ipp-20130307/psModules/src/objects/pmSourceIO.c

    r34720 r35413  
    980980            return false;
    981981        }
     982
    982983        // if this is not TRUE, the output files only contain the psf measurements.
    983984        bool XSRC_OUTPUT = psMetadataLookupBool(&status, recipe, "EXTENDED_SOURCE_ANALYSIS");
     
    10051006            hdu->header = psFitsReadHeader (NULL, file->fits);
    10061007        }
     1008
     1009        // "WCS" is CMF without detected objects
     1010        if (file->type == PM_FPA_FILE_WCS) {
     1011          psTrace("psModules.objects", 6, "read CMF table from %s : %s : %s", file->filename, headname, dataname);
     1012          psFree (headname);
     1013          psFree (dataname);
     1014          psFree (deteffname);
     1015          break;
     1016        }
     1017
     1018        // EXTDATA is the PSF data associated with this image header
    10071019
    10081020        // we need to find the corresponding table EXTNAME.
  • branches/eam_branches/ipp-20130307/psModules/src/objects/pmSourceMatch.c

    r35240 r35413  
    630630
    631631psVector *pmSourceMatchRelphot(const psArray *matches, // Array of matches
     632                               psArray *matchedSources, // Array of averaged sources
    632633                               const psVector *zp, // Zero points for each image (including airmass term)
    633634                               float tol, // Relative tolerance for convergence
     
    648649    PS_ASSERT_VECTOR_TYPE(zp, PS_TYPE_F32, NULL);
    649650    PS_ASSERT_FLOAT_LARGER_THAN(transClip, 0.0, NULL);
    650 
     651    PS_ASSERT_ARRAY_NON_NULL(matchedSources, NULL);
     652   
    651653    sys1 *= sys1;
    652654    sys2 *= sys2;
     
    742744    }
    743745
     746    for (int i = 0; i < matches->n; i++) {
     747      pmSource *source = pmSourceAlloc();
     748      source->psfMag = stars->data.F32[i];
     749      psArrayAdd(matchedSources,matchedSources->n,source);
     750    }
     751   
    744752    psFree(photo);
    745753    psFree(badImage);
  • branches/eam_branches/ipp-20130307/psModules/src/objects/pmSourceMatch.h

    r35240 r35413  
    7474/// Perform relative photometry to calibrate images
    7575psVector *pmSourceMatchRelphot(const psArray *matches, // Array of matches
     76                               psArray *matchedSources, // Array of average sources
    7677                               const psVector *zp, // Zero points for each image (including airmass term)
    7778                               float tol, // Relative tolerance for convergence
Note: See TracChangeset for help on using the changeset viewer.