IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 10, 2010, 4:13:14 PM (16 years ago)
Author:
eugene
Message:

updates from trunk

Location:
branches/eam_branches/20091201/magic/remove
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/magic/remove

    • Property svn:ignore set to
      configure
      Makefile.in
      Doxyfile
      config.log
      depcomp
      config.status
      config.guess
      ltmain.sh
      config.sub
      autom4te.cache
      libtool
      missing
      Makefile
      aclocal.m4
      install-sh

  • branches/eam_branches/20091201/magic/remove/src

    • Property svn:ignore
      •  

        old new  
        44streakscompare
        55streaksrelease
        6 makefile
         6Makefile
         7Makefile.in
         8config.h
         9.deps
         10streaksVersionDefinitions.h
         11config.h.in
         12stamp-h1
         13
  • branches/eam_branches/20091201/magic/remove/src/streaksio.c

    r26041 r26870  
    121121    sf->transparentStreaks = psMetadataLookupF64(&status, config->arguments, "TRANSPARENT_STREAKS");
    122122
     123    sf->stats = psMetadataAlloc();
     124    psString statsFileName= psMetadataLookupStr(&status, config->arguments, "STATS");
     125    if (statsFileName) {
     126        sf->statsFile = fopen(statsFileName, "w");
     127        if (!sf->statsFile) {
     128            psError(PS_ERR_IO, true, "failed to open stats file %s", statsFileName);
     129            streaksExit("", PS_EXIT_CONFIG_ERROR);
     130        }
     131    }
     132
    123133    return sf;
    124134}
     
    128138{
    129139    freeImages(sf);
    130     psFree(sf->warpedPixels);
     140    psFree(sf->diffedPixels);
    131141    psFree(sf->tiles);
    132142    psFree(sf->view);
     
    800810        return;
    801811    }
     812    streaksVersionHeaderFull(sfile->header);
    802813    if (!psFitsWriteImage(sfile->fits, sfile->header, sfile->image, 0, extname)) {
    803814        psError(PS_ERR_IO, false, "failed to write image to %s extnum: %d",
     
    817828        return;
    818829    }
     830    streaksVersionHeaderFull(sfile->header);
    819831    if (!psFitsWriteImageCube(sfile->fits, sfile->header, imagecube, extname)) {
    820832        psError(PS_ERR_IO, false, "failed to write image to %s extnum: %d",
     
    851863    sfile->header = NULL;
    852864    psFree(sfile->image);
    853     sfile->header = NULL;
     865    sfile->image = NULL;
    854866    psFree(sfile->imagecube);
    855     sfile->header = NULL;
     867    sfile->imagecube = NULL;
    856868}
    857869
     
    11811193}
    11821194
    1183 void
    1184 strkGetMaskValues(streakFiles *sfiles, psU32 *maskStreak, psU32 *maskMask)
    1185 {
     1195// Get the mask values that we need.
     1196// If an input mask file is provided get them from there.
     1197// Otherwise get them from the recipe MASKS
     1198void
     1199strkGetMaskValues(streakFiles *sfiles)
     1200{
     1201    if (sfiles->maskStreak) {
     1202        // already done
     1203        return;
     1204    }
    11861205    if (sfiles->inMask && sfiles->inMask->header) {
    11871206        if (!pmConfigMaskReadHeader(sfiles->config, sfiles->inMask->header)) {
     
    11961215        streaksExit("", PS_EXIT_CONFIG_ERROR);
    11971216    }
    1198     *maskStreak = psMetadataLookupU32(&status, masks, "STREAK");
     1217    sfiles->maskStreak = psMetadataLookupU32(&status, masks, "STREAK");
    11991218    if (!status) {
    12001219        psError(PM_ERR_CONFIG, false, "failed to lookup mask value for STREAK in recipes\n");
     
    12121231        }
    12131232    }
    1214     *maskMask = ~convPoor;
     1233    sfiles->maskMask = ~convPoor;
    12151234}
    12161235
Note: See TracChangeset for help on using the changeset viewer.