IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 10, 2013, 2:09:59 PM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/ppSkycell/src/ppSkycellCamera.c

    r35852 r36368  
    5656    data->numInputs = images->n;
    5757
    58     psArray *masks = NULL;              // Mask names
    59     if (data->masksName) {
    60         masks = fileList(data->masksName);
    61         if (!masks) {
    62             psError(psErrorCodeLast(), false, "No masks provided.");
    63             psFree(images);
    64             return false;
    65         }
    66         if (masks->n != data->numInputs) {
    67             psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Number of images (%ld) and masks (%ld) do not match",
    68                     images->n, masks->n);
    69             psFree(images);
    70             psFree(masks);
    71             return false;
    72         }
    73     }
    74 
    7558    psArray *wcsref = NULL;             // Names of WCS reference images
    7659    if (data->wcsrefName) {
     
    7962        psError(psErrorCodeLast(), false, "No WCSrefs provided.");
    8063        psFree(images);
    81         psFree(masks);
    8264        return(false);
    8365      }
     
    8668                images->n, wcsref->n);
    8769        psFree(images);
    88         psFree(masks);
    8970        psFree(wcsref);
    9071        return(false);
     
    10485        }
    10586
    106         if (data->masksName) {
    107             fileArguments("MASK", masks->data[i], "Name of the mask", data->config);
    108             if (!pmFPAfileBindFromArgs(&status, image, data->config, "PPSKYCELL.MASK", "MASK") || !status) {
    109                 psError(PS_ERR_IO, false, "Failed to build file from PPSKYCELL.MASK");
    110                 // XXX Cleanup
    111                 return false;
    112             }
    113         }
    114 
    11587        if (data->wcsrefName) {
    11688          fileArguments("WCSREF", wcsref->data[i], "Name of the WCS reference", data->config);
     
    12092            return(false);
    12193          }
    122 /*        if (!pmFPAfileBindFromArgs(&status, image, data->config, "PPSKYCELL.WCSREF", "WCSREF") || !status) { */
    123 /*          psError(PS_ERR_IO, false, "Failed to build file from PPSKYCELL.WCSREF"); */
    124 /*          return false; */
    125 /*        } */
    12694        }
    127        
    12895    }
    12996
     
    145112        psError(psErrorCodeLast(), false, "Unable to define output.");
    146113        return false;
    147     }
    148     if (data->masksName) {
    149       pmFPAfile *mask1 = pmFPAfileDefineOutput(data->config, bin1->fpa , "PPSKYCELL.BIN1.MASK");
    150       if (!mask1) {
    151         psError(psErrorCodeLast(), false, "Unable to define output.");
    152         return false;
    153       }
    154       mask1->save = true;
    155       pmFPAfile *mask2 = pmFPAfileDefineOutput(data->config, bin2->fpa , "PPSKYCELL.BIN2.MASK");
    156       if (!mask2) {
    157         psError(psErrorCodeLast(), false, "Unable to define output.");
    158         return false;
    159       }
    160       mask2->save = true;
    161114    }
    162115
Note: See TracChangeset for help on using the changeset viewer.