IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2007, 5:52:32 PM (19 years ago)
Author:
jhoblitt
Message:

update psAbort() API

File:
1 edited

Legend:

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

    r10613 r11702  
    142142            fpa->toSky = toSky;
    143143        } else {
    144             if (fpa->toTPA == NULL) psAbort ("wcs", "projection defined, tangent-plane not defined");
    145             if (fpa->fromTPA == NULL) psAbort ("wcs", "projection defined, tangent-plane not defined");
     144            if (fpa->toTPA == NULL) psAbort("projection defined, tangent-plane not defined");
     145            if (fpa->fromTPA == NULL) psAbort("projection defined, tangent-plane not defined");
    146146
    147147            // adjust for common toSky for mosaic:
     
    212212
    213213    // techinically, we can have a plate scale here (toTPA:dx,dy != 1)
    214     if (!psPlaneDistortIsIdentity (toTPA)) psAbort ("psastro", "invalid TPA transformation");
     214    if (!psPlaneDistortIsIdentity (toTPA)) psAbort("invalid TPA transformation");
    215215   
    216216    // XXX require toFPA->x->nX == toFPA->x->nY
     
    395395    psMetadataAddF32 (header, PS_LIST_TAIL, "CDELT2",   PS_META_REPLACE, "", 1.0);
    396396
    397     if (toFPA->x->nX != toFPA->x->nY) psAbort ("psastro", "mis-matched tangent plane orders (1)");
    398     if (toFPA->x->nX != toFPA->y->nX) psAbort ("psastro", "mis-matched tangent plane orders (2)");
    399     if (toFPA->x->nX != toFPA->y->nY) psAbort ("psastro", "mis-matched tangent plane orders (3)");
     397    if (toFPA->x->nX != toFPA->x->nY) psAbort("mis-matched tangent plane orders (1)");
     398    if (toFPA->x->nX != toFPA->y->nX) psAbort("mis-matched tangent plane orders (2)");
     399    if (toFPA->x->nX != toFPA->y->nY) psAbort("mis-matched tangent plane orders (3)");
    400400
    401401    switch (toFPA->x->nX) {
     
    428428
    429429      case 0:
    430         psAbort ("psastro", "invalid tangent plane order");
     430        psAbort("invalid tangent plane order");
    431431    }
    432432    return true;
     
    450450    psMetadataAddF32 (header, PS_LIST_TAIL, "CDELT2",   PS_META_REPLACE, "", toSky->Ys*DEG_RAD*plateScale);
    451451
    452     if (toTP->x->nX != toTP->x->nY) psAbort ("psastro", "mis-matched tangent plane orders (1)");
    453     if (toTP->x->nX != toTP->y->nX) psAbort ("psastro", "mis-matched tangent plane orders (2)");
    454     if (toTP->x->nX != toTP->y->nY) psAbort ("psastro", "mis-matched tangent plane orders (3)");
     452    if (toTP->x->nX != toTP->x->nY) psAbort("mis-matched tangent plane orders (1)");
     453    if (toTP->x->nX != toTP->y->nX) psAbort("mis-matched tangent plane orders (2)");
     454    if (toTP->x->nX != toTP->y->nY) psAbort("mis-matched tangent plane orders (3)");
    455455
    456456    switch (toTP->x->nX) {
     
    483483
    484484      case 0:
    485         psAbort ("psastro", "invalid tangent plane order");
     485        psAbort("invalid tangent plane order");
    486486    }
    487487    return header;
     
    493493    psPlaneDistort *distort;
    494494
    495     if (order < 1) psAbort ("psastro", "invalid order");
    496     if (order > 3) psAbort ("psastro", "invalid order");
     495    if (order < 1) psAbort("invalid order");
     496    if (order > 3) psAbort("invalid order");
    497497   
    498498    // all coeffs and masks initially set to 0
Note: See TracChangeset for help on using the changeset viewer.