IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 12, 2006, 4:22:29 PM (20 years ago)
Author:
Paul Price
Message:

Getting rid of template file --- we use the output file for that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppFringe/src/ppFringeSetup.c

    r7837 r7888  
    2424{
    2525    // Setup and parse command-line arguments
    26     psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-template", 0, "Template output", NULL);
    2726    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-detid", 0, "Detrend identifier", NULL);
    2827    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-classid", 0, "Class identifier", NULL);
     
    4039    data->inName = config->argv[1];
    4140    data->outName = config->argv[2];
    42     data->templateName = psMetadataLookupStr(NULL, config->arguments, "-template");
    4341
    4442    // Open the input file, determine the camera
     
    6967        goto die;
    7068    }
     69    psFree(view);
    7170
    7271    // Now we have a camera format, we can read the recipe
     
    9695    READ_RECIPE_ITEM("MASKVAL", recipe, data->maskVal, U8);
    9796
    98     // Open the output and template file
    99     data->outFile = psFitsOpen(data->outName, "w");
     97    // Open the output file
     98    data->outFile = psFitsOpen(data->outName, "a+");
    10099    if (!data->outFile) {
    101100        psError(PS_ERR_IO, false, "Unable to open output file %s\n", data->outName);
    102101        goto die;
    103     }
    104 
    105     if (data->templateName && strlen(data->templateName) > 0) {
    106         data->templateFile = psFitsOpen(data->templateName, "r");
    107         if (!data->templateFile) {
    108             psError(PS_ERR_IO, false, "Unable to open template file %s\n", data->templateName);
    109             goto die;
    110         }
    111102    }
    112103
Note: See TracChangeset for help on using the changeset viewer.