Changeset 3673
- Timestamp:
- Apr 5, 2005, 5:59:11 PM (21 years ago)
- Location:
- trunk/stac/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/Makefile
r3669 r3673 5 5 LDFLAGS += $(PSLIB) 6 6 7 STAC = stac.o stacConfig.o stacRead.o stacErrorImages.o stacTransform.o stacCheckMemory.o \ 8 stacCombine.o stacInvertMaps.o stacRejection.o stacAreaOfInterest.o stacSize.o stacScales.o \ 9 stacHelp.o 7 STAC = stac.o stacConfig.o stacRead.o stacErrorImages.o stacTransform.o stacCheckMemory.o stacHelp.o \ 8 stacCombine.o stacInvertMaps.o stacRejection.o stacAreaOfInterest.o stacSize.o stacScales.o time.o 10 9 11 10 SHIFT = shift.o stacRead.o stacTransform.o stacCheckMemory.o stacInvertMaps.o stacSize.o 12 11 12 COMBINE = combine.o combineConfig.o stacRead.o stacErrorImages.o stacCombine.o stacScales.o \ 13 stacCheckMemory.o time.o 14 13 15 SHIFTSIZE = shiftSize.o stacWrite.o stacConfig.o stacRead.o stacCheckMemory.o stacSize.o 14 16 15 .PHONY: tags clean empty test profile optimise 17 TARGETS = stac shift combine shiftSize 18 19 .PHONY: tags clean empty test profile optimise all 16 20 17 21 .c.o: … … 24 28 $(CC) $(CFLAGS) -o $@ $(SHIFT) $(LDFLAGS) $(OPTFLAGS) 25 29 30 combine: $(COMBINE) 31 $(CC) $(CFLAGS) -o $@ $(COMBINE) $(LDFLAGS) $(OPTFLAGS) 32 26 33 shiftSize: $(SHIFTSIZE) 27 34 $(CC) $(CFLAGS) -o $@ $(SHIFTSIZE) $(LDFLAGS) $(OPTFLAGS) 35 36 all: $(TARGETS) 28 37 29 38 clean: … … 31 40 32 41 empty: clean 33 -$(RM) $(TARGET ) TAGS42 -$(RM) $(TARGETS) TAGS 34 43 35 44 test: stac test_0.fits test_1.fits test_2.fits test_3.fits -
trunk/stac/src/shift.c
r3669 r3673 11 11 { 12 12 fprintf (stderr, "shift: shift an image, given the transformation\n" 13 "Usage: %s [-h] [-v] [-s NX NY] OUT IN\n"13 "Usage: %s [-h] [-v] [-s NX NY] IN OUT\n" 14 14 "where\n" 15 15 "\t-h Help (this info)\n" 16 16 "\t-v Increase verbosity level\n" 17 17 "\t-s NX NY Size of output image\n" 18 "\t OUT Output image\n"19 "\t IN Input image, which has associated .map file.\n",18 "\tIN Input image, which has associated .map file\n" 19 "\tOUT Output image\n", 20 20 programName 21 21 ); -
trunk/stac/src/stac.c
r3667 r3673 5 5 #include <sys/time.h> 6 6 7 double getTime(void)8 /* Gets the current time. Got this from Nick Kaiser's fetchpix.c */9 {10 struct timeval tv;11 gettimeofday(&tv, NULL);12 return(tv.tv_sec + 1.e-6 * tv.tv_usec);13 }14 15 16 7 int main(int argc, char **argv) 17 8 { 18 19 9 double startTime = getTime(); 20 10 -
trunk/stac/src/stac.h
r3667 r3673 3 3 4 4 #include "pslib.h" 5 6 5 #define abs(x) ((x) >= 0 ? (x) : (-(x))) 7 8 6 #define MAXCHAR 80 7 8 /************************************************************************************************************/ 9 10 // time.c 9 11 10 12 // Get the current time -
trunk/stac/src/stacCombine.c
r3666 r3673 67 67 ) 68 68 { 69 assert(combined); 70 assert(images); 71 assert(errors); 72 assert(images->n == errors->n); 73 assert(saturated); 74 assert(bad); 75 assert(saturated->n == images->n); 76 assert(bad->n == images->n); 77 69 78 int nImages = images->n; // Number of images 70 79 int numRows = ((psImage*)images->data[0])->numRows; // Image size -
trunk/stac/src/stacScales.c
r3666 r3673 121 121 starCoordsTransformed->data[i] = psPlaneTransformApply(NULL, starMap, starCoords->data[i]); 122 122 } 123 psFree(starMap); 123 124 124 125 psArray *stars = psArrayAlloc(images->n); // Array of stellar photometry vectors … … 175 176 masks->data[i] = mask; 176 177 } 178 psFree(starCoords); 179 psFree(starCoordsTransformed); 177 180 178 181 // Get the scales
Note:
See TracChangeset
for help on using the changeset viewer.
