IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32600


Ignore:
Timestamp:
Nov 1, 2011, 11:31:23 AM (15 years ago)
Author:
watersc1
Message:

ppCoord pixel coordinates -> sky coordinates was improperly converting from radians to double radians instead of converting to degrees. I've fixed this and left in the trace information I was using to debug this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppViz/src/ppCoord/ppCoordLoop.c

    r27986 r32600  
    3131
    3232    psProject(&tp, &sky, astromFPA->toSky);
     33    psTrace("ppCoord",2,"sky2pix tr1: %f %f\n",tp.x,tp.y);
    3334    psPlaneTransformApply(&fp, astromFPA->fromTPA, &tp);
     35    psTrace("ppCoord",2,"sky2pix tr2: %f %f\n",fp.x,fp.y);
    3436    psPlaneTransformApply(&pix, astromChip->fromFPA, &fp);
     37    psTrace("ppCoord",2,"sky2pix tr3: %f %f\n",pix.x,pix.y);
    3538
    3639    *x = pix.x;
     
    261264
    262265                psPlaneTransformApply(fp, chip->toFPA, pix);
     266                psTrace("ppCoord",2,"pix2sky tr1: %f %f\n",fp->x,fp->y);
    263267                psPlaneTransformApply(tp, astromFile->fpa->toTPA, fp);
     268                psTrace("ppCoord",2,"pix2sky tr2: %f %f\n",tp->x,tp->y);
    264269                psDeproject(sky, tp, astromFile->fpa->toSky);
    265 
     270                psTrace("ppCoord",2,"pix2sky tr3: %f %f\n",sky->r,sky->d);
    266271                if (!data->radians) {
    267                     sky->r *= M_PI / 180.0;
    268                     sky->d *= M_PI / 180.0;
     272                  sky->r *= 180.0 / M_PI;
     273                  sky->d *= 180.0 / M_PI;
    269274                }
    270275
Note: See TracChangeset for help on using the changeset viewer.