Changeset 40453 for trunk/ppImage/src
- Timestamp:
- Jun 12, 2018, 10:12:18 AM (8 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 6 edited
-
. (modified) (1 prop)
-
Makefile.am (modified) (5 diffs)
-
ppImage.h (modified) (1 diff)
-
ppImageErrorCodes.c.in (modified) (1 diff)
-
ppImageErrorCodes.dat (modified) (1 diff)
-
ppImageMaskStats.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src
- Property svn:ignore
-
old new 11 11 ppImageVersionDefinitions.h 12 12 ppImageVersionDefinitions.h.tmp 13 ppImageErrorCodes.c 14 ppImageErrorCodes.h
-
- Property svn:ignore
-
trunk/ppImage/src/Makefile.am
r38233 r40453 1 1 bin_PROGRAMS = ppImage 2 2 3 noinst_HEADERS = \ 4 ppImage.h 3 noinst_HEADERS = ppImage.h ppImageErrorCodes.h 5 4 6 5 # Force recompilation of ppImageVersion.c, since it gets the version information … … 10 9 FORCE: ; 11 10 12 BUILT_SOURCES = ppImage VersionDefinitions.h11 BUILT_SOURCES = ppImageErrorCodes.h ppImageErrorCodes.c ppImageVersionDefinitions.h 13 12 14 13 ppImage_CFLAGS = $(PPIMAGE_CFLAGS) $(PPSTATS_CFLAGS) $(PSASTRO_CFLAGS) $(PSPHOT_CFLAGS) $(PSMODULE_CFLAGS) $(PSLIB_CFLAGS) … … 27 26 ppImageDetrendFree.c \ 28 27 ppImageDetrendPattern.c \ 28 ppImageErrorCodes.c \ 29 29 ppImageRebinReadout.c \ 30 30 ppImageMosaic.c \ … … 55 55 ppImageBurntoolApply.c 56 56 57 CLEANFILES = *~ 57 CLEANFILES = *~ ppImageErrorCodes.h ppImageErrorCodes.c 58 59 EXTRA_DIST = ppImageErrorCodes.dat ppImageErrorCodes.c.in ppImageErrorCodes.h.in 60 58 61 59 62 clean-local: … … 62 65 tags: 63 66 etags `find . -name \*.[ch] -print` 67 68 ppImageErrorCodes.h : ppImageErrorCodes.dat ppImageErrorCodes.h.in 69 $(ERRORCODES) --data=ppImageErrorCodes.dat --outdir=. ppImageErrorCodes.h 70 71 ppImageErrorCodes.c : ppImageErrorCodes.dat ppImageErrorCodes.c.in ppImageErrorCodes.h 72 $(ERRORCODES) --data=ppImageErrorCodes.dat --outdir=. ppImageErrorCodes.c -
trunk/ppImage/src/ppImage.h
r38233 r40453 15 15 #include "psastro.h" 16 16 #include "ppStats.h" 17 #include "ppImageErrorCodes.h" 17 18 18 19 #define RECIPE_NAME "PPIMAGE" // Name of the recipe to use -
trunk/ppImage/src/ppImageErrorCodes.c.in
r11259 r40453 18 18 for (int i = 0; i < nerror; i++) { 19 19 psErrorDescription *tmp = psAlloc(sizeof(psErrorDescription)); 20 p _psMemSetPersistent(tmp, true);20 psMemSetPersistent(tmp, true); 21 21 *tmp = errors[i]; 22 22 psErrorRegister(tmp, 1); -
trunk/ppImage/src/ppImageErrorCodes.dat
r23695 r40453 9 9 PROG Programming error 10 10 DATA invalid data 11 UNKNOWN unspecified error, not defined 12 NO_PIXELS No good pixels in image -
trunk/ppImage/src/ppImageMaskStats.c
r28132 r40453 89 89 (float) Npix_dynamic / Npix_valid, (float) Npix_magic / Npix_valid, 90 90 (float) Npix_advisory / Npix_valid); 91 92 if ((Npix_valid == 0)||(Npix_static + Npix_dynamic >= Npix_valid)) { 93 if (psMetadataLookupS32(NULL, stats, "QUALITY") == 0) { 94 psMetadataAddS32(stats, PS_LIST_TAIL, "QUALITY", PS_META_REPLACE, "No good pixels in image.", PPIMAGE_ERR_NO_PIXELS); 95 } 96 } 97 91 98 return(true); 92 99 }
Note:
See TracChangeset
for help on using the changeset viewer.
