- Timestamp:
- Feb 10, 2010, 4:13:14 PM (16 years ago)
- Location:
- branches/eam_branches/20091201/magic/remove
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/magic/remove
-
Property svn:ignore
set to
configure
Makefile.in
Doxyfile
config.log
depcomp
config.status
config.guess
ltmain.sh
config.sub
autom4te.cache
libtool
missing
Makefile
aclocal.m4
install-sh
-
Property svn:ignore
set to
-
branches/eam_branches/20091201/magic/remove/src
- Property svn:ignore
-
old new 4 4 streakscompare 5 5 streaksrelease 6 makefile 6 Makefile 7 Makefile.in 8 config.h 9 .deps 10 streaksVersionDefinitions.h 11 config.h.in 12 stamp-h1 13
-
- Property svn:ignore
-
branches/eam_branches/20091201/magic/remove/src/streaksio.c
r26041 r26870 121 121 sf->transparentStreaks = psMetadataLookupF64(&status, config->arguments, "TRANSPARENT_STREAKS"); 122 122 123 sf->stats = psMetadataAlloc(); 124 psString statsFileName= psMetadataLookupStr(&status, config->arguments, "STATS"); 125 if (statsFileName) { 126 sf->statsFile = fopen(statsFileName, "w"); 127 if (!sf->statsFile) { 128 psError(PS_ERR_IO, true, "failed to open stats file %s", statsFileName); 129 streaksExit("", PS_EXIT_CONFIG_ERROR); 130 } 131 } 132 123 133 return sf; 124 134 } … … 128 138 { 129 139 freeImages(sf); 130 psFree(sf-> warpedPixels);140 psFree(sf->diffedPixels); 131 141 psFree(sf->tiles); 132 142 psFree(sf->view); … … 800 810 return; 801 811 } 812 streaksVersionHeaderFull(sfile->header); 802 813 if (!psFitsWriteImage(sfile->fits, sfile->header, sfile->image, 0, extname)) { 803 814 psError(PS_ERR_IO, false, "failed to write image to %s extnum: %d", … … 817 828 return; 818 829 } 830 streaksVersionHeaderFull(sfile->header); 819 831 if (!psFitsWriteImageCube(sfile->fits, sfile->header, imagecube, extname)) { 820 832 psError(PS_ERR_IO, false, "failed to write image to %s extnum: %d", … … 851 863 sfile->header = NULL; 852 864 psFree(sfile->image); 853 sfile-> header= NULL;865 sfile->image = NULL; 854 866 psFree(sfile->imagecube); 855 sfile-> header= NULL;867 sfile->imagecube = NULL; 856 868 } 857 869 … … 1181 1193 } 1182 1194 1183 void 1184 strkGetMaskValues(streakFiles *sfiles, psU32 *maskStreak, psU32 *maskMask) 1185 { 1195 // Get the mask values that we need. 1196 // If an input mask file is provided get them from there. 1197 // Otherwise get them from the recipe MASKS 1198 void 1199 strkGetMaskValues(streakFiles *sfiles) 1200 { 1201 if (sfiles->maskStreak) { 1202 // already done 1203 return; 1204 } 1186 1205 if (sfiles->inMask && sfiles->inMask->header) { 1187 1206 if (!pmConfigMaskReadHeader(sfiles->config, sfiles->inMask->header)) { … … 1196 1215 streaksExit("", PS_EXIT_CONFIG_ERROR); 1197 1216 } 1198 *maskStreak = psMetadataLookupU32(&status, masks, "STREAK");1217 sfiles->maskStreak = psMetadataLookupU32(&status, masks, "STREAK"); 1199 1218 if (!status) { 1200 1219 psError(PM_ERR_CONFIG, false, "failed to lookup mask value for STREAK in recipes\n"); … … 1212 1231 } 1213 1232 } 1214 *maskMask = ~convPoor;1233 sfiles->maskMask = ~convPoor; 1215 1234 } 1216 1235
Note:
See TracChangeset
for help on using the changeset viewer.
