- Timestamp:
- Jul 17, 2014, 12:32:26 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-ops-20130712/ppStack/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStackPrepare.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-ops-20130712/ppStack/src
- Property svn:mergeinfo changed
/trunk/ppStack/src merged: 35931,36364-36365,36610,36710,36717,36855,36886
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-ops-20130712/ppStack/src/ppStackPrepare.c
r35941 r37067 148 148 } 149 149 150 //MEH -- bscale offset hack for warps 151 options->bscaleOffset = psVectorAlloc(options->num, PS_TYPE_F32); 152 psVectorInit(options->bscaleOffset, 0.0); 153 bool setbscaleoffset = psMetadataLookupBool(NULL,recipe, "BSCALEOFFSET"); 154 150 155 psArray *psfs = psArrayAlloc(num); // PSFs for PSF envelope 151 156 int numCols = 0, numRows = 0; // Size of image … … 162 167 } 163 168 options->sumExposure += options->exposures->data.F32[i]; 169 170 //MEH -- hdu get redefn again below if conv (lots of this happening..) 171 if (setbscaleoffset) { 172 pmHDU *hdu = pmHDUFromCell(cell); 173 assert(hdu && hdu->header); 174 float bscale = psMetadataLookupF32(NULL, hdu->header, "BSCALE"); 175 options->bscaleOffset->data.F32[i] = 0.5*bscale; 176 } 177 psLogMsg("ppStack", PS_LOG_INFO, "bscaleOffset: %d %f", i,options->bscaleOffset->data.F32[i]); 164 178 165 179 // Get list of PSFs, to determine target PSF
Note:
See TracChangeset
for help on using the changeset viewer.
