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/ppSimMakeGalaxies.c

    r17557 r18011  
    99
    1010    bool galaxyFake = psMetadataLookupBool(&mdok, recipe, "GALAXY.FAKE"); // Density of fakes
    11     if (!galaxyFake) return NULL;
     11    if (!galaxyFake) return true;
    1212
    1313    float galaxyLum       = psMetadataLookupF32(&mdok, recipe, "GALAXY.LUM"); // Galaxy luminosity func slope
     
    3535    float zp              = psMetadataLookupF32(&mdok, recipe, "ZEROPOINT"); // Photometric zero point
    3636    float seeing          = psMetadataLookupF32(&mdok, recipe, "SEEING"); // Seeing sigma (pix)
    37     float scale           = psMetadataLookupF32(&mdok, recipe, "SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel)
     37    float scale           = psMetadataLookupF32(&mdok, recipe, "PIXEL.SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel)
    3838    float skyRate         = psMetadataLookupF32(&mdok, recipe, "SKY.RATE"); // Sky rate
    3939    if (isnan(skyRate)) {
     
    4242    }
    4343
    44     if (galaxyDensity <= 0) return NULL;
     44    if (galaxyDensity <= 0) return true;
    4545
    4646    // Size of FPA
     
    6666        psLogMsg("ppSim", PS_LOG_INFO,
    6767                 "Image noise is above brightest random galaxy --- no random galaxy added.");
    68         return NULL;
     68        return true;
    6969    }
    7070
     
    138138        }
    139139    }
    140     return galaxies;
     140    return true;
    141141}
Note: See TracChangeset for help on using the changeset viewer.