IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 7, 2007, 6:48:50 AM (20 years ago)
Author:
eugene
Message:

functioning pswarp, needs opt code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpArguments.c

    r10832 r10954  
    5050    pmConfigFileSetsMD (config->arguments, config, "WEIGHT", "-weight", "-weightlist");
    5151   
    52     if (argc != 2) {
     52    if (argc != 3) {
    5353        psError(PSWARP_ERR_ARGUMENTS, true, "Incorrect arguments supplied");
    5454        return NULL;
    5555    }
    5656   
     57    psArray *array;
     58
    5759    // output position is fixed
    5860    psMetadataAddStr (config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "", argv[1]);
    5961
    6062    // skycell position is fixed
    61     psMetadataAddStr (config->arguments, PS_LIST_TAIL, "SKYCELL", 0, "", argv[2]);
     63    array = psArrayAlloc(1);
     64    array->data[0] = psStringCopy (argv[2]);
     65    status = psMetadataAddPtr (config->arguments, PS_LIST_TAIL, "SKYCELL", PS_DATA_ARRAY, "", array);
     66    psFree (array);
    6267
    6368    psTrace("pswarp", 1, "Done with pswarpArguments...\n");
Note: See TracChangeset for help on using the changeset viewer.