IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 13, 2005, 4:06:55 PM (21 years ago)
Author:
eugene
Message:

changed noise to weight, psImageData to eamReadout

File:
1 edited

Legend:

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

    r4977 r5049  
    2222  }
    2323
    24   // optional noise image - add to config
    25   char *noise = NULL;
    26   if ((N = psArgumentGet (*argc, argv, "-noise"))) {
     24  // optional weight image - add to config
     25  char *weight = NULL;
     26  if ((N = psArgumentGet (*argc, argv, "-weight"))) {
    2727    psArgumentRemove (N, argc, argv);
    28     noise = psStringCopy (argv[N]);
     28    weight = psStringCopy (argv[N]);
    2929    psArgumentRemove (N, argc, argv);
    3030  }
     
    4646  fprintf (stderr, "loaded config...\n");
    4747
    48   // identify input image & optional noise & mask images
     48  // identify input image & optional weight & mask images
    4949  // command-line entries override config-file entries
    5050  psMetadataAdd (config, PS_LIST_HEAD, "IMAGE",       mode, "", argv[1]);
     
    5454    psMetadataAdd (config, PS_LIST_HEAD, "MASK_IMAGE", mode, "", mask);
    5555  }
    56   if (noise != NULL) {
    57     psMetadataAdd (config, PS_LIST_HEAD, "NOISE_IMAGE", mode, "", noise);
     56  if (weight != NULL) {
     57    psMetadataAdd (config, PS_LIST_HEAD, "WEIGHT_IMAGE", mode, "", weight);
    5858  }
    5959  if (resid != NULL) {
     
    6868    fprintf (stderr, "options: \n");
    6969    fprintf (stderr, "  -mask  (filename)\n");
    70     fprintf (stderr, "  -noise (filename)\n");
     70    fprintf (stderr, "  -weight (filename)\n");
    7171    fprintf (stderr, "  -resid (filename)\n");
    7272    exit (2);
Note: See TracChangeset for help on using the changeset viewer.