Changeset 18924 for trunk/pswarp/src/pswarp.c
- Timestamp:
- Aug 5, 2008, 2:39:59 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarp.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarp.c
r17781 r18924 2 2 3 3 static void usage (void) { 4 fprintf (stderr, "USAGE: pswarp [-file image(s)] [-list imagelist] [options] (output) (skycell)\n");5 fprintf (stderr, " options:\n");6 fprintf (stderr, " [-astrom astrom.cmp] : provide an alternative astrometry calibration\n");7 fprintf (stderr, " [-mask mask.fits] : provide a corresponding mask image\n");8 fprintf (stderr, " [-weight weight.fits] : provide a corresponding weight image (pixel varience)\n");4 fprintf(stderr, "USAGE: pswarp [-file image(s)] [-list imagelist] [options] (output) (skycell)\n"); 5 fprintf(stderr, " options:\n"); 6 fprintf(stderr, " [-astrom astrom.cmp] : provide an alternative astrometry calibration\n"); 7 fprintf(stderr, " [-mask mask.fits] : provide a corresponding mask image\n"); 8 fprintf(stderr, " [-weight weight.fits] : provide a corresponding weight image (pixel varience)\n"); 9 9 psErrorStackPrint(stderr, "\n"); 10 10 exit (2); … … 24 24 if (!config) usage(); 25 25 26 if (!pswarpOptions(config)) {27 psErrorStackPrint(stderr, "error parsing options\n");28 exit(1);29 }30 31 26 // load identify the data sources 32 27 if (!pswarpParseCamera(config)) { 33 28 psErrorStackPrint(stderr, "error setting up the camera\n"); 34 exit (1); 29 exit(PS_EXIT_CONFIG_ERROR); 30 } 31 32 if (!pswarpOptions(config)) { 33 psErrorStackPrint(stderr, "error parsing options\n"); 34 exit(PS_EXIT_SYS_ERROR); 35 35 } 36 36 … … 38 38 if (!pswarpDefine(config)) { 39 39 psErrorStackPrint(stderr, "error loading output definition\n"); 40 exit (1);40 exit(PS_EXIT_CONFIG_ERROR); 41 41 } 42 42 … … 44 44 if (!pswarpLoop(config)) { 45 45 psErrorStackPrint(stderr, "error warping data\n"); 46 exit (1);46 exit(PS_EXIT_DATA_ERROR); 47 47 } 48 48 … … 50 50 pswarpCleanup(config); 51 51 psLibFinalize(); 52 exit( EXIT_SUCCESS);52 exit(PS_EXIT_SUCCESS); 53 53 }
Note:
See TracChangeset
for help on using the changeset viewer.
