IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2006, 1:24:21 PM (20 years ago)
Author:
drobbin
Message:

Fixed Time conversions and ToMJD & ToJD fxns to use TAI type. Updated transforms tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astro/tst_psCoord02.c

    r6253 r6268  
    66*  @author GLG, MHPCC
    77*
    8 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2006-01-30 22:56:01 $
     8*  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2006-01-31 23:24:21 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    514514
    515515    //Set fxn values for evaluation
    516     coord->x = 1.0;
     516    coord->x = 3.0;
    517517    coord->y = 1.0;
    518518
     
    526526    }
    527527
    528     trans = psPlaneTransformAlloc(1, 2);
     528    trans = psPlaneTransformAlloc(1, 3);
    529529
    530530    //Set Polynomials.  f(x) = x, f(y) = 0.5*y^2  -->  f'(x) = 1, f'(y) = y
    531531    //So for 1,1  -> f'(1) = 1, f'(1) = 1
    532     trans->x->nX = 1;
    533     trans->x->nY = 0;
    534     trans->y->nX = 0;
    535     trans->y->nY = 2;
    536 
    537532    trans->x->coeff[0][0] = 0.0;
    538533    trans->x->coeff[1][0] = 1.0;
    539 
    540534    trans->y->coeff[0][0] = 0.0;
    541535    trans->y->coeff[0][1] = 0.0;
     
    557551                "psPlaneTransformDeriv failed to return the correct values.\n");
    558552        printf("\n f' values are = %lf, %lf \n", deriv->x, deriv->y);
    559         //        return 3;
     553        return 3;
    560554    }
    561555
Note: See TracChangeset for help on using the changeset viewer.