IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35382


Ignore:
Timestamp:
Apr 9, 2013, 12:10:11 PM (13 years ago)
Author:
eugene
Message:

replace pswarpDefineSkycell with pmFPAfileDefineNewConfig

Location:
branches/eam_branches/ipp-20130307/pswarp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130307/pswarp/src/Makefile.am

    r35373 r35382  
    3535        pswarpDefine.c                  \
    3636        pswarpDefineBackground.c        \
    37         pswarpDefineSkycell.c           \
    3837        pswarpErrorCodes.c              \
    3938        pswarpMapGrid.c                 \
  • branches/eam_branches/ipp-20130307/pswarp/src/pswarpParseCamera.c

    r34800 r35382  
    9191   
    9292    // The input skycell is a required argument: it defines the output image
    93     // XXX we may need a different skycell structure here
    94     pmFPAfile *skycell = NULL;
     93    bool status = false;
    9594    pmConfig *skyConfig = NULL;
    96     bool status = pswarpDefineSkycell(&skycell, &skyConfig, config, "PSWARP.SKYCELL", "SKYCELL");
    97     if (!status) {
    98         psError(psErrorCodeLast(), false, "Failed to build FPA from PSWARP.SKYCELL");
    99         return false;
    100     }
     95    pmFPAfile *skycell = pmFPAfileDefineNewConfig(&status, &skyConfig, config, "PSWARP.SKYCELL", "SKYCELL");
     96    if (!status || !skycell) {
     97      psError(psErrorCodeLast(), false, "Failed to build FPA from PSWARP.SKYCELL");
     98      return false;
     99      }
     100    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "SKYCELL.CAMERA", 0, "Name of camera for skycell", skyConfig->cameraName);
    101101    psFree(skyConfig);
    102102
     
    142142    if (inBackground && psMetadataLookupBool(&mdok, recipe, "BACKGROUND.MODEL")) {
    143143      pmFPAfile *outBackground = pmFPAfileDefineSkycell(config, NULL, "PSWARP.OUTPUT.BKGMODEL");
    144 /*       pmFPAfile *outBackground = pmFPAfileDefineFromFPA(config,output->fpa, */
    145 /*                                                      psMetadataLookupS32(&mdok,recipe,"BKG.XGRID"), */
    146 /*                                                      psMetadataLookupS32(&mdok,recipe,"BKG.YGRID"), */
    147 /*                                                      "PSWARP.OUTPUT.BKGMODEL"); */
    148144      outBackground->xBin = psMetadataLookupS32(&mdok, recipe, "BKG.XGRID");
    149145      outBackground->yBin = psMetadataLookupS32(&mdok, recipe, "BKG.YGRID");
Note: See TracChangeset for help on using the changeset viewer.