IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 18, 2012, 6:10:35 PM (14 years ago)
Author:
watersc1
Message:

Update to ppSkycell to add a proper header and a proper WCS. Finally.

Fix WCS bug in pswarpLoop that was revealed when working on ppSkycell. Finally.

Changed psImagePixelManip to only copy finite pixel values. This is likely "slow" relative to the old version, and it looks like I'm getting some random default values. In any case, this fixes the NAN striping that was present in the ppSkycell outputs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20120906/pswarp/src/pswarpLoop.c

    r34442 r34449  
    713713        WCS->cdelt1 *= cd1f;
    714714        WCS->cdelt2 *= cd2f;
    715         WCS->crpix1 = WCS->crpix1 / cd1f + 46.0 / 400.0;
    716         WCS->crpix2 = WCS->crpix2 / cd2f + 68.0 / 400.0;
     715        WCS->crpix1 = WCS->crpix1 / cd1f;
     716        WCS->crpix2 = WCS->crpix2 / cd2f;
    717717
    718718        // WCS->trans->x->nX/nY
    719         for (int q = 0; q < WCS->trans->x->nX; q++) {
    720           for (int r = 0; r < WCS->trans->x->nY; r++) {
     719        for (int q = 0; q <= WCS->trans->x->nX; q++) {
     720          for (int r = 0; r <= WCS->trans->x->nY; r++) {
    721721            fprintf(stderr,"%d %d %g\n",q,r,WCS->trans->x->coeff[q][r]);
    722722            WCS->trans->x->coeff[q][r] *= pow(cd1f,q) * pow(cd2f,r);
     
    724724          }
    725725        }
    726         for (int q = 0; q < WCS->trans->y->nX; q++) {
    727           for (int r = 0; r < WCS->trans->y->nY; r++) {
     726        for (int q = 0; q <= WCS->trans->y->nX; q++) {
     727          for (int r = 0; r <= WCS->trans->y->nY; r++) {
    728728            fprintf(stderr,"%d %d %g\n",q,r,WCS->trans->y->coeff[q][r]);
    729729            WCS->trans->y->coeff[q][r] *= pow(cd1f,q) * pow(cd2f,r);
Note: See TracChangeset for help on using the changeset viewer.