IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2009, 3:17:11 PM (17 years ago)
Author:
eugene
Message:

ppSim was unable to load refstars, now fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimLoop.c

    r24486 r25760  
    3030    ppSimType type = ppSimTypeFromString (typeStr); // Type of image to simulate
    3131    int binning = psMetadataLookupS32(NULL, recipe, "BINNING"); // Binning in x and y
     32
     33    ppSimUpdateConceptsFPA (fpa, config);
     34    if (fpa->hdu) { // XXX only do this if there is no INPUT image
     35        if (!ppSimInitHeader(config, fpa, NULL, NULL)) ESCAPE (PS_ERR_UNKNOWN, "problem setting output header");
     36    }
    3237
    3338    psArray *stars = psArrayAllocEmpty (1);
     
    5762        psFree(view);
    5863        return false;
    59     }
    60 
    61     ppSimUpdateConceptsFPA (fpa, config);
    62     if (fpa->hdu) { // XXX only do this if there is no INPUT image
    63         if (!ppSimInitHeader(config, fpa, NULL, NULL)) ESCAPE (PS_ERR_UNKNOWN, "problem setting output header");
    6464    }
    6565
Note: See TracChangeset for help on using the changeset viewer.