IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2013, 4:44:14 PM (13 years ago)
Author:
bills
Message:

Implement "Update" for camera stage.
This mode uses the existing smf file and updates the dynamic masks.
Will be used to create new masks from LAP which have correct
dynamic masking. Also builds (rebuilds) the background model files

File:
1 edited

Legend:

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

    r26259 r35715  
    7474
    7575    // apply mosastro mode?
     76    bool mosastro = false;
    7677    if ((N = psArgumentGet (argc, argv, "-mosastro"))) {
    7778        psArgumentRemove (N, &argc, argv);
     
    8182        psArgumentRemove (N, &argc, argv);
    8283        psMetadataAddBool (config->arguments, PS_LIST_TAIL, "PSASTRO.MOSAIC.MODE", PS_META_REPLACE, "", true);
     84        mosastro = true;
    8385    }
    8486
    8587    // apply chipastro mode?
     88    bool chipastro = false;
    8689    if ((N = psArgumentGet (argc, argv, "-chipastro"))) {
    8790        psArgumentRemove (N, &argc, argv);
     
    9194        psArgumentRemove (N, &argc, argv);
    9295        psMetadataAddBool (config->arguments, PS_LIST_TAIL, "PSASTRO.CHIP.MODE", PS_META_REPLACE, "", true);
     96        chipastro = true;
     97    }
     98    if ((N = psArgumentGet (argc, argv, "-skipastro"))) {
     99        psArgumentRemove (N, &argc, argv);
     100        if (mosastro) {
     101            psError(PSASTRO_ERR_ARGUMENTS, true, "cannot specify +mosastro with -skipastro");
     102            psErrorStackPrint(stderr, "exit");
     103            return false;
     104        }
     105        if (chipastro) {
     106            psError(PSASTRO_ERR_ARGUMENTS, true, "cannot specify +chipastro with -skipastro");
     107            return false;
     108        }
     109        psMetadataAddBool (config->arguments, PS_LIST_TAIL, "PSASTRO.SKIP.ASTRO", PS_META_REPLACE, "", true);
    93110    }
    94111
Note: See TracChangeset for help on using the changeset viewer.