Changeset 24286 for trunk/magic/remove/src/streaksrelease.c
- Timestamp:
- Jun 1, 2009, 11:43:02 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksrelease.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksrelease.c
r23965 r24286 275 275 276 276 // set up the compression parameters 277 #ifdef STREAKS_COMPRESS_OUTPUT 278 // compression of the image pixels is disabled for now. Some consortium members 279 // have problems reading them 280 copyFitsOptions(sf->outImage, sf->recImage, sf->inImage); 281 282 // XXX: TODO: can we derive these values from the input header? 283 // psFitsCompressionGet(sf->inImage->image) gives compression none 284 // perhaps we should just use the definition of COMP_IMG in the configuration 285 psFitsSetCompression(sf->outImage->fits, PS_FITS_COMPRESS_RICE, sf->tiles, 8, 0, 0); 286 if (sf->recImage) { 287 psFitsSetCompression(sf->recImage->fits, PS_FITS_COMPRESS_RICE, sf->tiles, 8, 0, 0); 288 } 289 #endif 277 copyFitsOptions(sf->outImage, sf->recImage, sf->inImage, sf->tiles); 290 278 291 279 if (sf->inMask) { … … 306 294 } 307 295 308 #ifdef STREAKS_COMPRESS_OUTPUT 309 // XXX: see note above 310 copyFitsOptions(sf->outMask, sf->recMask, sf->inMask); 311 psFitsSetCompression(sf->outMask->fits, PS_FITS_COMPRESS_PLIO, sf->tiles, 8, 0, 0); 312 if (sf->recMask) { 313 psFitsSetCompression(sf->recMask->fits, PS_FITS_COMPRESS_PLIO, sf->tiles, 8, 0, 0); 314 } 296 copyFitsOptions(sf->outMask, sf->recMask, sf->inMask, sf->tiles); 315 297 if (sf->outChMask) { 316 copyFitsOptions(sf->outChMask, sf->recChMask, sf->inMask );298 copyFitsOptions(sf->outChMask, sf->recChMask, sf->inMask, sf->tiles); 317 299 psFitsSetCompression(sf->outChMask->fits, PS_FITS_COMPRESS_PLIO, sf->tiles, 8, 0, 0); 318 300 if (sf->recChMask) { … … 320 302 } 321 303 } 322 #endif323 304 } 324 305 } … … 332 313 setupImageRefs(sf->outWeight, sf->recWeight, sf->inWeight, sf->extnum, exciseAll); 333 314 334 #ifdef STREAKS_COMPRESS_OUTPUT 335 copyFitsOptions(sf->outWeight, sf->recWeight, sf->inWeight); 336 // XXX: see note above 337 psFitsSetCompression(sf->outWeight->fits, PS_FITS_COMPRESS_RICE, sf->tiles, 8, 0, 0); 338 if (sf->recWeight) { 339 psFitsSetCompression(sf->recWeight->fits, PS_FITS_COMPRESS_RICE, sf->tiles, 8, 0, 0); 340 } 341 #endif 315 copyFitsOptions(sf->outWeight, sf->recWeight, sf->inWeight, sf->tiles); 342 316 } 343 317 // and for raw images, create sub images that represent the actual image
Note:
See TracChangeset
for help on using the changeset viewer.
