IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20778


Ignore:
Timestamp:
Nov 17, 2008, 2:40:35 PM (17 years ago)
Author:
bills
Message:

be ready for skycells not being available and completely exicse file
in that case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/warpedpixels.c

    r20729 r20778  
    99static int xRight(psPlane *pt, int y);
    1010
    11 void
     11bool
    1212computeWarpedPixels(streakFiles *sf)
    1313{
     14    bool status;
    1415    pmConfig    *config = sf->config;
     16
     17    psArray *skycells = psMetadataLookupPtr(&status, config->arguments, "SKYCELLS");
     18    if (skycells == NULL) {
     19        return false;
     20    }
     21
     22    int n = psArrayLength(skycells);
     23
    1524    psRegion     bounds = *pmChipPixels(sf->chip);
    1625   
     
    2029    sf->warpedPixels = psImageAlloc(width, height, PS_TYPE_U8);
    2130    psImageInit(sf->warpedPixels, 0);
    22 
    23     bool status;
    24     psArray *skycells = psMetadataLookupPtr(&status, config->arguments, "SKYCELLS");
    25 
    26     int n = psArrayLength(skycells);
    2731
    2832    for (int i=0; i<n; i++) {
     
    4347        psFitsClose(fits);
    4448    }
     49    return true;
    4550}
    4651
Note: See TracChangeset for help on using the changeset viewer.