- Timestamp:
- Nov 4, 2021, 6:11:39 PM (5 years ago)
- Location:
- trunk/pswarp/src
- Files:
-
- 4 edited
-
pswarpLoadAstrometry.c (modified) (1 diff)
-
pswarpLoop.c (modified) (1 diff)
-
pswarpMapGrid.c (modified) (4 diffs)
-
pswarpOptions.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpLoadAstrometry.c
r41526 r41897 94 94 } 95 95 } 96 96 97 // apply the bilevel astrometry elements to the target 97 98 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 108 99 if (!pmAstromReadBilevelMosaic(astrom->fpa, phu->header)) { 109 100 psError(psErrorCodeLast(), false, "Unable to read bilevel mosaic astrometry for skycell."); -
trunk/pswarp/src/pswarpLoop.c
r41526 r41897 240 240 241 241 // use a map with only linear terms in x,y 242 psPlaneTransform *map = psPlaneTransformAlloc(1, 1);242 psPlaneTransform *map = psPlaneTransformAlloc(1, 1, PS_POLYNOMIAL_ORD); 243 243 map->x->coeffMask[1][1] = PS_POLY_MASK_BOTH; 244 244 map->y->coeffMask[1][1] = PS_POLY_MASK_BOTH; -
trunk/pswarp/src/pswarpMapGrid.c
r41538 r41897 44 44 for (ni = 0, i = xMin; ni < nXpts; i += nXpix, ni++) { 45 45 for (nj = 0, j = yMin; nj < nYpts; j += nYpix, nj++) { 46 // pswarpMapSetLocalModel (grid->maps[ni][nj], dest, src, i, j, nXpix, nYpix); 46 47 pswarpMapSetLocalModel (grid->maps[ni][nj], dest, src, i, j); 47 48 } … … 196 197 * astrometric transformations are supplied for the parent image coordinate frame. 197 198 */ 199 // bool pswarpMapSetLocalModel (pswarpMap *map, pmReadout *dest, pmReadout *src, int ix, int iy, int dX, int dY) { 198 200 bool pswarpMapSetLocalModel (pswarpMap *map, pmReadout *dest, pmReadout *src, int ix, int iy) { 199 201 … … 234 236 235 237 /** V(1,0) position */ 238 // offset->x = ix + dX; 236 239 offset->x = ix + 1; 237 240 offset->y = iy; … … 246 249 offset->x = ix; 247 250 offset->y = iy + 1; 251 // offset->y = iy + dY; 248 252 psPlaneTransformApply(FP, chipSrc->toFPA, offset); 249 253 psPlaneTransformApply (TP, fpaSrc->toTPA, FP); -
trunk/pswarp/src/pswarpOptions.c
r41526 r41897 104 104 config_additional_orders = 0; 105 105 } 106 107 106 pmAstrometrySetExtraOrders(config_additional_orders); 107 // This is the number of orders that should be added to all non-linear inverse transformations 108 108 109 109 // Set recipe values in the recipe (since we've possibly altered some)
Note:
See TracChangeset
for help on using the changeset viewer.
