IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 8, 2008, 4:03:31 PM (18 years ago)
Author:
eugene
Message:

update from changes on eam_branch_20080511 : adding photometry of fake sources, force photometry; major cleanups

File:
1 edited

Legend:

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

    r17557 r18011  
    1 #include "ppSim.h"
     1# include "ppSim.h"
    22
    33bool ppSimLoadStars (psArray *stars, pmFPA *fpa, pmConfig *config) {
     
    1818    }
    1919
    20     // XXX push these into the recipe in ppSimArguments()
     20    // relevant metadata
    2121    float zp      = psMetadataLookupF32(NULL, recipe, "ZEROPOINT"); // Photometric zero point
    2222    float ra0     = psMetadataLookupF32(NULL, recipe, "RA");        // Boresight RA (radians)
     
    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.