IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6621


Ignore:
Timestamp:
Mar 16, 2006, 4:15:36 PM (20 years ago)
Author:
Paul Price
Message:

Moving psRegionIsBad out into psLib.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/astrom/pmFPARead.c

    r6618 r6621  
    77#include "pmFPARead.h"
    88#include "pmConcepts.h"
     9#include "psRegionIsBad.h"
    910
    1011//////////////////////////////////////////////////////////////////////////////////////////////////////////////
     
    137138#endif
    138139
    139 static bool badRegion(const psRegion *region)
    140 {
    141     return isnan(region->x0) || isnan(region->x1) || isnan(region->y0) || isnan(region->y1);
    142 }
    143 
    144140// Carve a readout from the image pixels
    145141static pmReadout *readoutCarve(pmCell *cell, // Cell into which the new readout will be placed
     
    152148
    153149    // The image corresponding to the trim region
    154     if (badRegion(trimsec)) {
     150    if (psRegionIsBad(*trimsec)) {
    155151        psString regionString = psRegionToString(*trimsec);
    156152        psError(PS_ERR_IO, true, "Invalid trim section: %s\n", regionString);
     
    165161    psRegion *biassec = NULL;       // A BIASSEC region from the list
    166162    while ((biassec = psListGetAndIncrement(iter))) {
    167         if (badRegion(trimsec)) {
     163        if (psRegionIsBad(*biassec)) {
    168164            psString regionString = psRegionToString(*biassec);
    169165            psError(PS_ERR_IO, true, "Invalid bias section: %s\n", regionString);
     
    268264}
    269265
     266
     267#if 0
     268// Don't know that we need these
     269
    270270// Read the PHU into the nominated HDU
    271271static bool readPHU(pmHDU *hdu,         // HDU to read into
     
    310310    return readPHU(fpa->hdu, fits);
    311311}
    312 
     312#endif
    313313
    314314
Note: See TracChangeset for help on using the changeset viewer.