IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 43080


Ignore:
Timestamp:
Sep 7, 2026, 4:49:29 PM (2 weeks ago)
Author:
eugene
Message:

add notes and fix array extension (worked because incoming array was always zero length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/ppSim/src/ppSimLoadStars.c

    r43068 r43080  
    4949    psLogMsg("ppSim", PS_LOG_INFO, "Adding %ld reference stars", refStars->n);
    5050
     51    // extend the array to accomodate the new stars:
    5152    long oldSize = stars->n;
    52     stars = psArrayRealloc (stars, refStars->n);
     53    stars = psArrayRealloc (stars, stars->n + refStars->n);
    5354
     55    // center of projection is the center of the boresite:
    5456    psProjection *proj = psProjectionAlloc(ra0, dec0, scaleRad, scaleRad, PS_PROJ_TAN); // Projection
    5557
Note: See TracChangeset for help on using the changeset viewer.