IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3660


Ignore:
Timestamp:
Apr 4, 2005, 6:15:21 PM (21 years ago)
Author:
Paul Price
Message:

Adding shiftSize to calculate (without doing the whole stac procedure) the size of the output image. Moving the help stuff out to separate files

Location:
trunk/stac/src
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/Makefile

    r3610 r3660  
    66
    77STAC = 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
    910
    10 SHIFT = shift.o stacConfig.o stacRead.o stacErrorImages.o stacTransform.o stacCheckMemory.o \
     11SHIFT = shift.o stacRead.o stacErrorImages.o stacTransform.o stacCheckMemory.o \
    1112        stacCombine.o stacInvertMaps.o stacSize.o
    1213
    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
     14SHIFTSIZE = shiftSize.o shiftSizeHelp.o stacWrite.o stacConfig.o stacRead.o stacCheckMemory.o stacSize.o
    1915
    2016.PHONY: tags clean empty test profile optimise
     
    2925                $(CC) $(CFLAGS) -o $@ $(SHIFT) $(LDFLAGS) $(OPTFLAGS)
    3026
    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)
     27shiftSize:      $(SHIFTSIZE)
     28                $(CC) $(CFLAGS) -o $@ $(SHIFTSIZE) $(LDFLAGS) $(OPTFLAGS)
    4829
    4930clean:
     
    6647                -$(RM) test_[0-3].fits.rejmap
    6748                -$(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.fits
    6949                ./stac -v testout.fits test_0.fits test_1.fits test_2.fits test_3.fits
    7050
  • trunk/stac/src/stac.c

    r3610 r3660  
    2727    // Set trace levels
    2828    psTraceSetLevel(".",0);
    29     psTraceSetLevel(".psLib", 0);
    3029    psTraceSetLevel("stac.checkMemory",10);
    3130    psTraceSetLevel("stac.config",10);
     
    5554    psTrace("stac.time", 1, "I/O completed at %f seconds\n", getTime() - startTime);
    5655
    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    }
    5960
    6061    // Invert maps
  • trunk/stac/src/stac.h

    r3610 r3660  
    217217    );
    218218
     219
     220
     221/************************************************************************************************************/
     222
     223// stacWrite.c
     224
     225// Write maps out
     226bool stacWriteMaps(const psArray *maps, // Maps to write
     227                   const stacConfig *config // Configuration
     228    );
     229
     230/************************************************************************************************************/
     231
    219232#endif
  • trunk/stac/src/stacConfig.c

    r3610 r3660  
    44#include <getopt.h>
    55#include <string.h>
     6#include "pslib.h"
    67#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              name
    30         );
    31 }
    32 
    338
    349stacConfig *stacConfigAlloc(void)
Note: See TracChangeset for help on using the changeset viewer.