Changeset 3660
- Timestamp:
- Apr 4, 2005, 6:15:21 PM (21 years ago)
- Location:
- trunk/stac/src
- Files:
-
- 3 added
- 4 edited
-
Makefile (modified) (3 diffs)
-
shiftSize.c (added)
-
shiftSizeHelp.c (added)
-
stac.c (modified) (2 diffs)
-
stac.h (modified) (1 diff)
-
stacConfig.c (modified) (1 diff)
-
stacHelp.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/Makefile
r3610 r3660 6 6 7 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 8 stacCombine.o stacInvertMaps.o stacRejection.o stacAreaOfInterest.o stacSize.o stacScales.o \ 9 stacHelp.o 9 10 10 SHIFT = shift.o stac Config.o stacRead.o stacErrorImages.o stacTransform.o stacCheckMemory.o \11 SHIFT = shift.o stacRead.o stacErrorImages.o stacTransform.o stacCheckMemory.o \ 11 12 stacCombine.o stacInvertMaps.o stacSize.o 12 13 13 FITTRANS = fitTrans.o fitTransConfig.o fitTransRead.o stacCheckMemory.o fitTransSolve.o 14 15 TEST_SHIFT = testShift.o stacConfig.o stacRead.o stacErrorImages.o stacTransform.o stacCheckMemory.o \ 16 stacInvertMaps.o 17 18 PHOTSCALE = photScale.o 14 SHIFTSIZE = shiftSize.o shiftSizeHelp.o stacWrite.o stacConfig.o stacRead.o stacCheckMemory.o stacSize.o 19 15 20 16 .PHONY: tags clean empty test profile optimise … … 29 25 $(CC) $(CFLAGS) -o $@ $(SHIFT) $(LDFLAGS) $(OPTFLAGS) 30 26 31 photScale: $(PHOTSCALE) 32 $(CC) $(CFLAGS) -o $@ $(PHOTSCALE) $(LDFLAGS) $(OPTFLAGS) 33 34 calcGrad: calcGrad.o 35 $(CC) $(CFLAGS) -o $@ calcGrad.o $(LDFLAGS) $(OPTFLAGS) 36 37 median: median.o 38 $(CC) $(CFLAGS) -o $@ median.o $(LDFLAGS) $(OPTFLAGS) 39 40 getPixels: getPixels.o 41 $(CC) $(CFLAGS) -o $@ getPixels.o $(LDFLAGS) $(OPTFLAGS) 42 43 fitTrans: $(FITTRANS) 44 $(CC) $(CFLAGS) -o $@ $(FITTRANS) $(LDFLAGS) $(OPTFLAGS) 45 46 testShift: $(TEST_SHIFT) 47 $(CC) $(CFLAGS) -o $@ $(TEST_SHIFT) $(LDFLAGS) $(OPTFLAGS) 27 shiftSize: $(SHIFTSIZE) 28 $(CC) $(CFLAGS) -o $@ $(SHIFTSIZE) $(LDFLAGS) $(OPTFLAGS) 48 29 49 30 clean: … … 66 47 -$(RM) test_[0-3].fits.rejmap 67 48 -$(RM) leaks.dat 68 # ./stac -v -k 2.5 -f 0.5 -G 0.96 testout.fits test_0.fits test_1.fits test_2.fits test_3.fits69 49 ./stac -v testout.fits test_0.fits test_1.fits test_2.fits test_3.fits 70 50 -
trunk/stac/src/stac.c
r3610 r3660 27 27 // Set trace levels 28 28 psTraceSetLevel(".",0); 29 psTraceSetLevel(".psLib", 0);30 29 psTraceSetLevel("stac.checkMemory",10); 31 30 psTraceSetLevel("stac.config",10); … … 55 54 psTrace("stac.time", 1, "I/O completed at %f seconds\n", getTime() - startTime); 56 55 57 // Get size 58 stacSize(config, inputs, maps); 56 // Get size, if not input 57 if (config->outnx == 0 || config->outny == 0) { 58 stacSize(config, inputs, maps); 59 } 59 60 60 61 // Invert maps -
trunk/stac/src/stac.h
r3610 r3660 217 217 ); 218 218 219 220 221 /************************************************************************************************************/ 222 223 // stacWrite.c 224 225 // Write maps out 226 bool stacWriteMaps(const psArray *maps, // Maps to write 227 const stacConfig *config // Configuration 228 ); 229 230 /************************************************************************************************************/ 231 219 232 #endif -
trunk/stac/src/stacConfig.c
r3610 r3660 4 4 #include <getopt.h> 5 5 #include <string.h> 6 #include "pslib.h" 6 7 #include "stac.h" 7 8 void help(const char *name)9 {10 fprintf (stderr, "STAC: Simultaneous Telescope Array Combination\n"11 "Usage: %s [-h] [-v] [-g GAIN] [-r RN] [-o NX NY] [-S] [-s SAT] [-b BAD] [-p FILE MAP] [-a APER] [-k REJ] [-n NREJECT] [-k FRAC] [-G GRAD] OUT IN1 IN2...\n"12 "where\n"13 "\t-h Help (this info)\n"14 "\t-v Increase verbosity level\n"15 "\t-g Gain (e/ADU) for detectors\n"16 "\t-r Read noise (e) for detectors\n"17 "\t-o NX NY Size of output image (512, 512)\n"18 "\t-S Save shifted images (false)\n"19 "\t-s SAT Saturation level (65535)\n"20 "\t-b BAD Bad level (0)\n"21 "\t-p FILE MAP Specify file containing star coordinates, with map\n"22 "\t-a APER Aperture size to use for photometry (3 pix)\n"23 "\t-k REJ Rejection level (k-sigma; 3.5)\n"24 "\t-n NREJECT Number of rejection iterations (2)\n"25 "\t-f FRAC Fraction of pixel to be marked before considered bad (0.5)\n"26 "\t-d GRAD Gradient threshold for pixel to be marked (0.0)\n"27 "\tOUT Output image\n"28 "\tIN1, IN2... Input images, which have associated .map files.\n",29 name30 );31 }32 33 8 34 9 stacConfig *stacConfigAlloc(void)
Note:
See TracChangeset
for help on using the changeset viewer.
