IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15103


Ignore:
Timestamp:
Sep 28, 2007, 4:28:14 PM (19 years ago)
Author:
eugene
Message:

fixed demo plot to degrees

File:
1 edited

Legend:

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

    r15081 r15103  
    9999        pmAstromObj *raw = rawstars->data[i];
    100100        if (!isfinite(raw->Mag)) continue;
    101         xVec->data.F32[n] = raw->sky->r;
    102         yVec->data.F32[n] = raw->sky->d;
     101        xVec->data.F32[n] = DEG_RAD*raw->sky->r;
     102        yVec->data.F32[n] = DEG_RAD*raw->sky->d;
    103103        zVec->data.F32[n] = raw->Mag;
    104104        n++;
     
    153153        pmAstromObj *ref = refstars->data[i];
    154154        if (!isfinite(ref->Mag)) continue;
    155         xVec->data.F32[n] = ref->sky->r;
    156         yVec->data.F32[n] = ref->sky->d;
     155        xVec->data.F32[n] = DEG_RAD*ref->sky->r;
     156        yVec->data.F32[n] = DEG_RAD*ref->sky->d;
    157157        zVec->data.F32[n] = ref->Mag;
    158158        n++;
Note: See TracChangeset for help on using the changeset viewer.