IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15001


Ignore:
Timestamp:
Sep 24, 2007, 11:29:10 AM (19 years ago)
Author:
eugene
Message:

add asserts for finite input values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageMapFit.c

    r14983 r15001  
    77 *  @author Eugene Magnier, IfA
    88 *
    9  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-09-22 03:05:50 $
     9 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-09-24 21:29:10 $
    1111 *
    1212 *  Copyright 2007 Institute for Astronomy, University of Hawaii
     
    1818
    1919#include <stdio.h>
    20 #include "psMemory.h"
    2120#include "psError.h"
    2221#include "psAbort.h"
    2322#include "psTrace.h"
    2423
    25 // XXX for testing
    2624// #include "psFits.h"
    27 // #include "psFitsImage.h"
    28 
    2925#include "psAssert.h"
    3026#include "psRegion.h"
    31 
     27// #include "psFitsImage.h"
     28
     29#include "psMemory.h"
    3230#include "psVector.h"
    3331#include "psImage.h"
     
    182180                if (m == Ny - 1) Qy = 0;
    183181
     182                assert (isfinite(fi));
     183                assert (isfinite(wt));
     184                assert (isfinite(rx));
     185                assert (isfinite(ry));
     186
    184187                // points at offset 1,1
    185188                if ((Qx == 1) && (Qy == 1)) {
Note: See TracChangeset for help on using the changeset viewer.