IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19557


Ignore:
Timestamp:
Sep 15, 2008, 2:04:28 PM (18 years ago)
Author:
bills
Message:

optionally save configuration to a file

Location:
trunk/psastro/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroArguments.c

    r18007 r19557  
    8181    }
    8282
     83    // dump the configuration to a file?
     84    if ((N = psArgumentGet (argc, argv, "-dumpconfig"))) {
     85        psArgumentRemove (N, &argc, argv);
     86        psMetadataAddStr (config->arguments, PS_LIST_TAIL, "DUMP_CONFIG", PS_META_REPLACE, "", argv[N]);
     87        psArgumentRemove (N, &argc, argv);
     88    }
     89
    8390    status = pmConfigFileSetsMD (config->arguments, &argc, argv, "INPUT", "-file", "-list");
    8491    if (!status) {
  • trunk/psastro/src/psastroParseCamera.c

    r15121 r19557  
    3333    psFree (chips);
    3434
     35    psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
     36    if (dump_file) {
     37        pmConfigCamerasCull(config, NULL);
     38        pmConfigRecipesCull(config, "PPIMAGE,PPSTATS,PSPHOT,MASKS,PSASTRO");
     39
     40        pmConfigDump(config, input->fpa, dump_file);
     41    }
     42
     43
    3544    psTrace("psastro", 1, "Done with psastroParseCamera...\n");
    3645    return true;
Note: See TracChangeset for help on using the changeset viewer.