IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 11, 2009, 2:36:22 PM (17 years ago)
Author:
watersc1
Message:

Fixed typos in cleanup sql and created the correct filelist to delete.

Made changes to psastro and pmAstrometryWCS to allow the choice between PC and CD header keywords.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/cleanup/psModules/src/astrom/pmAstrometryWCS.c

    r24951 r25050  
    289289    // test the CDELTi varient
    290290    if (pcKeys) {
    291         wcs->useCDkeys = 0;
     291        wcs->wcsCDkeys = 0;
    292292        wcs->cdelt1 = psMetadataLookupF64 (&status, header, "CDELT1");
    293293        wcs->cdelt2 = psMetadataLookupF64 (&status, header, "CDELT2");
     
    335335    // test the CDi_j varient
    336336    if (cdKeys) {
    337         wcs->useCDkeys = 1;
     337        wcs->wcsCDkeys = 1;
    338338        wcs->trans->x->coeff[1][0] = psMetadataLookupF64 (&status, header, "CD1_1"); // == PC1_1
    339339        wcs->trans->x->coeff[0][1] = psMetadataLookupF64 (&status, header, "CD1_2"); // == PC1_2
     
    377377    // XXX make it optional to write out CDi_j terms, or other versions
    378378    // apply CDELT1,2 (degrees / pixel) to yield PCi,j terms of order unity
    379     if (!(wcs->useCDkeys)) {
     379    if (!(wcs->wcsCDkeys)) {
    380380
    381381      double cdelt1 = wcs->cdelt1;
     
    419419      }
    420420    }
    421     if (wcs->useCDkeys) {
     421    if (wcs->wcsCDkeys) {
    422422     
    423423      psMetadataAddF64 (header, PS_LIST_TAIL, "CD1_1", PS_META_REPLACE, "", wcs->trans->x->coeff[1][0]);
     
    555555        fpa->toSky->R -= 2.0*M_PI;
    556556
     557    fpa->wcsCDkeys = wcs->wcsCDkeys;
     558
    557559    psTrace ("psastro", 5, "toFPA: %f %f  (%f,%f),(%f,%f)\n",
    558560             chip->toFPA->x->coeff[0][0], chip->toFPA->y->coeff[0][0],
     
    702704    wcs->cdelt2 = hypot (wcs->trans->y->coeff[1][0], wcs->trans->y->coeff[0][1]);
    703705
     706    wcs->wcsCDkeys = fpa->wcsCDkeys;
    704707    psFree (toTPA);
    705708
     
    942945    wcs->trans = psPlaneTransformAlloc (nXorder, nYorder);
    943946    wcs->toSky = NULL;
    944     wcs->useCDkeys = 0;
     947    wcs->wcsCDkeys = 0;
    945948
    946949    memset (wcs->ctype1, 0, PM_ASTROM_WCS_TYPE_SIZE);
Note: See TracChangeset for help on using the changeset viewer.