IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 23, 2007, 11:50:52 AM (19 years ago)
Author:
bills
Message:

Extract postage stamp from chip mosaic image. Changed -celcenter to -skycenter
Range in celestial coordinates not specified with -arcrange (arcseconds)
Better error handling.
Allow files without WCS if we don't need it

Location:
trunk/ppstamp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppstamp/src

    • Property svn:ignore
      •  

        old new  
        66config.h.in
        77stamp-h1
         8ppstampErrorCodes.c
         9ppstampErrorCodes.h
  • trunk/ppstamp/src/ppstamp.c

    r15280 r15363  
    77int main(int argc, char **argv)
    88{
    9     ppstampOptions *options;
     9    ppstampOptions *options = NULL;
     10    int exitCode;
    1011
    1112    psTimerStart(TIMERNAME);
    12 
    1313    psLibInit(NULL);
    14 
    15     // Parse the configuration and arguments
    16     // Open the input image(s)
    17     // note usage is called on error or request by ppstampArguments
    18     // TODO is the cleanup really necessary since we're exiting anyways?
    19     // (It's useful to know about memory leaks)
     14    ppstampErrorRegister();
    2015
    2116    pmConfig *config = ppstampArguments(argc, argv, &options);
     
    2621    }
    2722
    28     // define recipe options
    2923    // define the active I/O files
    3024    if (!ppstampParseCamera(config)) {
     
    3529
    3630    // find the pixels that we need to copy, setup the output image
    37     if (!ppstampMakeStamp(config, options)) {
    38         exit(PS_EXIT_UNKNOWN_ERROR);
     31    if (ppstampMakeStamp(config, options)) {
     32        exitCode = 0;
     33    } else {
     34        exitCode = PS_EXIT_DATA_ERROR;
    3935    }
    4036
     
    4440    ppstampCleanup(config, options);
    4541
    46     return PS_EXIT_SUCCESS;
     42    return exitCode;
    4743}
Note: See TracChangeset for help on using the changeset viewer.