IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2006, 11:00:41 AM (20 years ago)
Author:
Paul Price
Message:

Instead of doing open/close each time we want to read (which is really expensive), we hold an array of file pointers. This should make for a significant boost in speed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeCombine.c

    r7744 r7759  
    6868                        continue;
    6969                    }
    70                     psFits *fits = psFitsOpen(filenames->data[k], "r"); // FITS file handle
     70                    psFits *fits = data->files->data[k]; // FITS file handle
    7171                    if (!fits) {
    7272                        psError(PS_ERR_IO, false, "Unable to open input file %s --- ignored.\n",
     
    9191                        numRead++;
    9292                    }
    93                     psFitsClose(fits);
    9493                }
    9594
Note: See TracChangeset for help on using the changeset viewer.