Changeset 41173 for trunk/ppSim/src/ppSimLoadStars.c
- Timestamp:
- Nov 27, 2019, 12:05:20 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimLoadStars.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimLoadStars.c
r26975 r41173 24 24 float pa = psMetadataLookupF32(NULL, recipe, "PA"); // Position angle (radians) 25 25 float seeing = psMetadataLookupF32(NULL, recipe, "SEEING"); // Seeing SIGMA (pixels) 26 float scale = psMetadataLookupF32(NULL, recipe, "PIXEL.SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel) 26 float scale = psMetadataLookupF32(NULL, recipe, "PIXEL.SCALE"); // Plate scale (arcsec/pixel) 27 float scaleRad = scale * M_PI / 3600.0 / 180.0; // Plate scale in radians/pixel for WCS below 27 28 float expTime = psMetadataLookupF32(NULL, recipe, "EXPTIME"); // Exposure time (sec) 28 29 29 30 // Size of FPA 30 31 psRegion *bounds = ppSimFPABounds (fpa); 31 float radius = 0.5 * PS_MAX(bounds->x1 - bounds->x0, bounds->y1 - bounds->y0) * scale ;32 float radius = 0.5 * PS_MAX(bounds->x1 - bounds->x0, bounds->y1 - bounds->y0) * scaleRad; 32 33 33 34 float x0fpa = 0.5*(bounds->x0 + bounds->x1); … … 53 54 stars = psArrayRealloc (stars, refStars->n); 54 55 55 psProjection *proj = psProjectionAlloc(ra0, dec0, scale , scale, PS_PROJ_TAN); // Projection56 psProjection *proj = psProjectionAlloc(ra0, dec0, scaleRad, scaleRad, PS_PROJ_TAN); // Projection 56 57 57 58 // Conversion loop
Note:
See TracChangeset
for help on using the changeset viewer.
