IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 20, 2005, 6:48:16 PM (21 years ago)
Author:
eugene
Message:

alternative clipping for pmPSFtryMetric

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotArguments.c

    r5049 r5084  
    3838  }
    3939
     40  // optional output residual image - add to config
     41  char *photcode = NULL;
     42  if ((N = psArgumentGet (*argc, argv, "-photcode"))) {
     43    psArgumentRemove (N, argc, argv);
     44    photcode = psStringCopy (argv[N]);
     45    psArgumentRemove (N, argc, argv);
     46  }
     47
    4048  if (*argc != 4) usage ();
    4149
     
    6068    psMetadataAdd (config, PS_LIST_HEAD, "RESID_IMAGE", mode, "", resid);
    6169  }
     70  if (photcode != NULL) {
     71    psMetadataAdd (config, PS_LIST_HEAD, "PHOTCODE", mode, "", photcode);
     72  }
    6273  return (config);
    6374}
     
    7081    fprintf (stderr, "  -weight (filename)\n");
    7182    fprintf (stderr, "  -resid (filename)\n");
     83    fprintf (stderr, "  -photcode (photcode)\n");
    7284    exit (2);
    7385}
Note: See TracChangeset for help on using the changeset viewer.