IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7583 for trunk/psastro


Ignore:
Timestamp:
Jun 15, 2006, 3:05:44 PM (20 years ago)
Author:
eugene
Message:

adding support for new pmFPAfile APIs

Location:
trunk/psastro/src
Files:
3 edited

Legend:

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

    r7014 r7583  
    3434
    3535    // files associated with the science image
    36     pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
     36    pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    3737
    3838    while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) {
    3939        psTrace (__func__, 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
    4040        if (!chip->process || !chip->file_exists) { continue; }
    41         pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
     41        pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    4242
    4343        while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {
    4444            psTrace (__func__, 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
    4545            if (!cell->process || !cell->file_exists) { continue; }
    46             pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
     46            pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    4747
    4848            // process each of the readouts
    4949            while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
    50                 pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
     50                pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    5151                if (! readout->data_exists) { continue; }
    5252
    5353                psastroConvert (readout, recipe);
    5454
    55                 pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
     55                pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
    5656            }
    57             pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
     57            pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
    5858        }
    59         pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
     59        pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
    6060    }
    61     pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
     61    pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
    6262    psFree (view);
    6363    return true;
  • trunk/psastro/src/psastroDataSave.c

    r7014 r7583  
    3030
    3131    // open/load files as needed
    32     pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
     32    pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    3333
    3434    while ((chip = pmFPAviewNextChip (view, output->fpa, 1)) != NULL) {
    3535        psTrace (__func__, 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
    3636        if (!chip->process || !chip->file_exists) { continue; }
    37         pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
     37        pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    3838
    3939        while ((cell = pmFPAviewNextCell (view, output->fpa, 1)) != NULL) {
    4040            psTrace (__func__, 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
    4141            if (!cell->process || !cell->file_exists) { continue; }
    42             pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
     42            pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    4343
    4444            // process each of the readouts
    4545            while ((readout = pmFPAviewNextReadout (view, output->fpa, 1)) != NULL) {
    46                 pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
     46                pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    4747                if (! readout->data_exists) { continue; }
    4848
    49                 pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
     49                pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
    5050            }
    51             pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
     51            pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
    5252        }
    53         pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
     53        pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
    5454    }
    55     pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
     55    pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
    5656
    5757    psFree (view);
  • trunk/psastro/src/psastroParseCamera.c

    r7573 r7583  
    77
    88    // the input image(s) are required arguments; they define the camera
    9     pmFPAfile *input = pmFPAfileFromArgs (&status, config, "PSASTRO.INPUT", "INPUT");
     9    pmFPAfile *input = pmFPAfileDefineFromArgs (&status, config, "PSASTRO.INPUT", "INPUT");
    1010    if (!status) { psAbort (__func__, "missing INPUT entry"); }
    1111
     
    2020
    2121    // these calls bind the I/O handle to the specified fpa
    22     pmFPAfileDefine (config->files, config->camera, input->fpa, "PSASTRO.OUTPUT");
     22    pmFPAfileDefineOutput (config->files, config->camera, input->fpa, "PSASTRO.OUTPUT");
    2323
    2424    // supply the output name (from cmd-line) to all output (WRITE) files
Note: See TracChangeset for help on using the changeset viewer.