IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 20, 2012, 1:34:19 PM (14 years ago)
Author:
watersc1
Message:

ppSkycell now largely works. I'm going to attempt to fix the missing NAN issue next.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20120906/ppSkycell/src/ppSkycellLoop.c

    r34449 r34450  
    198198        psImage *image1 = psImageAlloc(numCols1, numRows1, PS_TYPE_F32); // Binned image
    199199        psImage *image2 = psImageAlloc(numCols2, numRows2, PS_TYPE_F32); // Binned image
    200         psImageInit(image1, 0);
    201         psImageInit(image2, 0);
    202 
     200        psImageInit(image1,NAN);
     201        psImageInit(image2,NAN);
     202        for (int y = 0; y < numRows1; y++) {
     203          for (int x = 0; x < numCols1; x++) {
     204            image1->data.F32[y][x] = NAN;
     205          }
     206        }
     207       
    203208        psImage *mask1 = NULL, *mask2 = NULL; // Binned masks
    204209        if (data->masksName) {
     
    215220                continue;
    216221            }
    217 
     222            fprintf(stderr,"ISITNAN? %g\n",image1->data.F32[0][0]);
    218223            pmFPAfileActivateSingle(data->config->files, true, "PPSKYCELL.IMAGE", j);
    219224            if (data->masksName) {
     
    267272            // XXX Completely neglecting rotations
    268273            // The skycells are divided up neatly with them all having the same orientation
    269             psImageOverlaySection(image1, bin1RO->image, xOffset1, yOffset1, "=");
    270             psImageOverlaySection(image2, bin2RO->image, xOffset2, yOffset2, "=");
     274            psImageOverlaySection(image1, bin1RO->image, xOffset1, yOffset1, "=");
     275            psImageOverlaySection(image2, bin2RO->image, xOffset2, yOffset2, "=");
    271276            if (data->masksName) {
    272277                psImageOverlaySection(mask1, bin1RO->mask, xOffset1, yOffset1, "=");
Note: See TracChangeset for help on using the changeset viewer.