IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 27, 2019, 12:05:20 PM (6 years ago)
Author:
eugene
Message:

merge fixes from EAM dev branch ipp-20191011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimUtils.c

    r40738 r41173  
    1616    float pa    = psMetadataLookupF32(NULL, recipe, "PA");  // Position angle (radians)
    1717    float scale = psMetadataLookupF32(NULL, recipe, "PIXEL.SCALE"); // plate scale in arcsec / pixel
    18     scale *= M_PI / 3600.0 / 180.0; // convert plate scale to radians/pixel
     18    float scaleRad = scale * M_PI / 3600.0 / 180.0; // convert plate scale to radians/pixel
    1919
    2020    int binning = psMetadataLookupS32(NULL, recipe, "BINNING"); // Binning in x and y
     
    6161    psMetadata *header = psMetadataAlloc(); // Header, to return
    6262    pmAstromWCS *wcs = pmAstromWCSAlloc(1, 1); // WCS structure
    63     wcs->toSky = psProjectionAlloc(ra0, dec0, scale * xParity, scale * yParity, PS_PROJ_TAN);
    64     wcs->cdelt1 = scale * PM_DEG_RAD * xParity;
    65     wcs->cdelt2 = scale * PM_DEG_RAD * yParity;
     63    wcs->toSky = psProjectionAlloc(ra0, dec0, scaleRad * xParity, scaleRad * yParity, PS_PROJ_TAN);
     64    wcs->cdelt1 = scaleRad * PM_DEG_RAD * xParity;
     65    wcs->cdelt2 = scaleRad * PM_DEG_RAD * yParity;
    6666    wcs->crpix1 = x0;
    6767    wcs->crpix2 = y0;
Note: See TracChangeset for help on using the changeset viewer.