IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9643


Ignore:
Timestamp:
Oct 18, 2006, 5:02:20 PM (20 years ago)
Author:
eugene
Message:

added log messages, fixed ra range issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroWCS.c

    r9574 r9643  
    178178        chip->fromFPA = p_psPlaneTransformLinearInvert(toFPA);
    179179
     180        while (fpa->toSky->R <        0) fpa->toSky->R += 2.0*M_PI;
     181        while (fpa->toSky->R > 2.0*M_PI) fpa->toSky->R -= 2.0*M_PI;
     182
    180183        // remove the correction to the common plate scale
    181184        if (isMosaic) {
     
    186189        }
    187190
    188         fprintf (stderr, "toFPA: %f %f  (%f,%f),(%f,%f)\n",
     191        psTrace ("psastro", 5, "toFPA: %f %f  (%f,%f),(%f,%f)\n",
    189192                 chip->toFPA->x->coeff[0][0], chip->toFPA->y->coeff[0][0],
    190193                 chip->toFPA->x->coeff[1][0], chip->toFPA->x->coeff[0][1],
    191194                 chip->toFPA->y->coeff[1][0], chip->toFPA->y->coeff[0][1]);
    192195
    193         fprintf (stderr, "frFPA: %f %f  (%f,%f),(%f,%f)\n",
     196        psTrace ("psastro", 5, "frFPA: %f %f  (%f,%f),(%f,%f)\n",
    194197                 chip->fromFPA->x->coeff[0][0], chip->fromFPA->y->coeff[0][0],
    195198                 chip->fromFPA->x->coeff[1][0], chip->fromFPA->x->coeff[0][1],
    196199                 chip->fromFPA->y->coeff[1][0], chip->fromFPA->y->coeff[0][1]);
    197200
    198         fprintf (stderr, "field: %f,%f  %f,%f\n",
    199                  DEG_RAD*fpa->toSky->R, DEG_RAD*fpa->toSky->D,
    200                  3600*DEG_RAD*fpa->toSky->Xs, 3600*DEG_RAD*fpa->toSky->Ys);
    201 
     201        psLogMsg ("psastro", 3, "field center: %f,%f, plate scale: %f,%f (arcsec/pixel)\n",
     202                  DEG_RAD*fpa->toSky->R, DEG_RAD*fpa->toSky->D,
     203                  3600*DEG_RAD*fpa->toSky->Xs, 3600*DEG_RAD*fpa->toSky->Ys);
    202204    }
    203205    return true;
Note: See TracChangeset for help on using the changeset viewer.