IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2008, 4:56:38 PM (18 years ago)
Author:
eugene
Message:

substantial work on argument handling to support externally supplied images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080511/ppSim/src/ppSimLoadStars.c

    r17557 r17672  
    1 #include "ppSim.h"
     1# include "ppSim.h"
    22
    33bool ppSimLoadStars (psArray *stars, pmFPA *fpa, pmConfig *config) {
     
    2424    float pa      = psMetadataLookupF32(NULL, recipe, "PA");        // Position angle (radians)
    2525    float seeing  = psMetadataLookupF32(NULL, recipe, "SEEING");    // Seeing SIGMA (pixels)
    26     float scale   = psMetadataLookupF32(NULL, recipe, "SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel)
     26    float scale   = psMetadataLookupF32(NULL, recipe, "PIXEL.SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel)
    2727    float expTime = psMetadataLookupF32(NULL, recipe, "EXPTIME");   // Exposure time (sec)
    2828
     
    4040    psMetadataAdd(astroRecipe, PS_LIST_TAIL, "DEC_MAX", PS_DATA_F32 | PS_META_REPLACE, "", dec0 + radius);
    4141    psArray *refStars = psastroLoadRefstars(config);
    42     if (!refStars || refStars->n == 0) {
     42    if (!refStars) {
    4343        psError(PS_ERR_UNKNOWN, false, "Unable to find reference stars.");
    4444        psFree(refStars);
Note: See TracChangeset for help on using the changeset viewer.