- Timestamp:
- May 9, 2013, 10:00:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130419/pswarp/src/pswarpDefineLayout.c
r35535 r35539 95 95 bool bilevelAstrometry = psMetadataLookupBool (NULL, skycell->fpa->analysis, "ASTROMETRY.BILEVEL"); 96 96 97 // generate the output hdu and contents bits98 pmFPAAddSourceFromFormat(output->fpa, output->format);99 100 97 // XXX this is a bit muddled : we are setting up the astrometry elements for the output 101 98 // background model here instead of in pswarpLoadAstrometry, where it would be more natural … … 106 103 107 104 // if we have an output background model, generate hdu, etc and supply astrometry 108 if (bkgModel) { 109 pmFPAAddSourceFromFormat(bkgModel->fpa, bkgModel->format); 110 111 if (bilevelAstrometry) { 112 // top-level elements of the bkgModel astrometry 113 bkgModel->fpa->toTPA = psMemIncrRefCounter (skycell->fpa->toTPA); 114 bkgModel->fpa->fromTPA = psMemIncrRefCounter (skycell->fpa->fromTPA); 115 bkgModel->fpa->toSky = psMemIncrRefCounter (skycell->fpa->toSky); 116 } 105 if (bkgModel && bilevelAstrometry) { 106 // top-level elements of the bkgModel astrometry 107 bkgModel->fpa->toTPA = psMemIncrRefCounter (skycell->fpa->toTPA); 108 bkgModel->fpa->fromTPA = psMemIncrRefCounter (skycell->fpa->fromTPA); 109 bkgModel->fpa->toSky = psMemIncrRefCounter (skycell->fpa->toSky); 117 110 } 118 111
Note:
See TracChangeset
for help on using the changeset viewer.
