IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39981 for trunk/pswarp/src


Ignore:
Timestamp:
Feb 23, 2017, 4:22:35 PM (9 years ago)
Author:
watersc1
Message:

Add code to allow the number of additional polynomial terms in the WCS solution to be modified. This should allow updates to look like the original run.

Location:
trunk/pswarp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpLoadAstrometry.c

    r35616 r39981  
    9696    // apply the bilevel astrometry elements to the target
    9797    if (bilevelAstrometry) {
     98      int additional_orders = 4;
     99      bool status = false;
     100      int config_additional_orders = psMetadataLookupS32(&status,config->arguments,"ADDITIONAL_WCS_ORDERS");
     101      if (status) {
     102        additional_orders = config_additional_orders;
     103      }
     104      psMetadataAddS32(astrom->fpa->analysis,PS_LIST_TAIL, "ADDITIONAL_WCS_ORDERS", PS_META_REPLACE,
     105                       "Additional orders for bilevel fit.", additional_orders);
     106     
     107       
    98108        if (!pmAstromReadBilevelMosaic(astrom->fpa, phu->header)) {
    99109            psError(psErrorCodeLast(), false, "Unable to read bilevel mosaic astrometry for skycell.");
  • trunk/pswarp/src/pswarpOptions.c

    r35563 r39981  
    9292    }
    9393
     94    // See if we should use a more accurate WCS model.
     95    int config_additional_orders = psMetadataLookupS32(&status,recipe, "ADDITIONAL_WCS_ORDERS");
     96    if (!status) {
     97      // We did not find this recipe option.  We are likely updating an old config.
     98      config_additional_orders = 0;
     99    }
     100   
     101
    94102   
    95103    // Set recipe values in the recipe (since we've possibly altered some)
     
    114122    psMetadataAddS32(config->arguments, PS_LIST_TAIL, "BKG.XGRID", PS_META_REPLACE, "Xsize of background model", bkgXgrid);
    115123    psMetadataAddS32(config->arguments, PS_LIST_TAIL, "BKG.YGRID", PS_META_REPLACE, "Ysize of background model", bkgYgrid);
     124    psMetadataAddS32(config->arguments, PS_LIST_TAIL, "ADDITIONAL_WCS_ORDERS", PS_META_REPLACE, "Additional orders for bilevel fit.", config_additional_orders);
    116125
    117126    psTrace("pswarp", 1, "Done with pswarpOptions...\n");
Note: See TracChangeset for help on using the changeset viewer.