- Timestamp:
- Feb 23, 2017, 4:22:35 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
ippconfig/gpc1/pswarp.config (modified) (1 diff)
-
ippconfig/recipes/pswarp.config (modified) (1 diff)
-
psModules/src/astrom/pmAstrometryWCS.c (modified) (1 diff)
-
pswarp/src/pswarpLoadAstrometry.c (modified) (1 diff)
-
pswarp/src/pswarpOptions.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippconfig/gpc1/pswarp.config
r34800 r39981 3 3 BKG.XGRID S32 50 4 4 BKG.YGRID S32 50 5 ADDITIONAL_WCS_ORDERS S32 4 # By default, use a bilevel astrometric model with 4 additional orders. -
trunk/ippconfig/recipes/pswarp.config
r35679 r39981 25 25 BKG.YGRID S32 4 26 26 27 ADDITIONAL_WCS_ORDERS S32 4 # By default, use a bilevel astrometric model with 4 additional orders. 28 27 29 # Default recipe for warping 28 30 WARP METADATA -
trunk/psModules/src/astrom/pmAstrometryWCS.c
r39979 r39981 695 695 // the region defines the FPA pixels covered by the tranformation 696 696 psFree (fpa->fromTPA); 697 psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4); 697 698 int additional_orders = 4; // This is the number of orders that should be added. 699 bool status = false; 700 int config_additional_orders = psMetadataLookupS32(&status,fpa->analysis, "ADDITIONAL_WCS_ORDERS"); 701 if (status) { // If this keyword is found, then use that number of orders instead 702 additional_orders = config_additional_orders; 703 } 704 705 psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+additional_orders, fpa->toTPA->x->nY+additional_orders); 698 706 fpa->fromTPA = psPlaneTransformInvert(myPT, fpa->toTPA, region, 50); 699 707 psFree (myPT); -
trunk/pswarp/src/pswarpLoadAstrometry.c
r35616 r39981 96 96 // apply the bilevel astrometry elements to the target 97 97 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 98 108 if (!pmAstromReadBilevelMosaic(astrom->fpa, phu->header)) { 99 109 psError(psErrorCodeLast(), false, "Unable to read bilevel mosaic astrometry for skycell."); -
trunk/pswarp/src/pswarpOptions.c
r35563 r39981 92 92 } 93 93 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 94 102 95 103 // Set recipe values in the recipe (since we've possibly altered some) … … 114 122 psMetadataAddS32(config->arguments, PS_LIST_TAIL, "BKG.XGRID", PS_META_REPLACE, "Xsize of background model", bkgXgrid); 115 123 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); 116 125 117 126 psTrace("pswarp", 1, "Done with pswarpOptions...\n");
Note:
See TracChangeset
for help on using the changeset viewer.
