IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15963


Ignore:
Timestamp:
Dec 30, 2007, 5:04:48 PM (18 years ago)
Author:
eugene
Message:

used PSASTRO.FIELD.PADDING to extend field range

Location:
trunk/psastro/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroChooseRefstars.c

    r15666 r15963  
    2222    }
    2323
    24     float fieldExtra = psMetadataLookupS32 (&status, recipe, "PSASTRO.FIELD.EXTRA");
    25     if (!status) fieldExtra = 0.0;
     24    // extra field fraction to add
     25    double fieldPadding = psMetadataLookupF32 (&status, recipe, "PSASTRO.FIELD.PADDING");
     26    if (!status) fieldPadding = 0.0;
    2627
    2728    bool matchLumFunc = psMetadataLookupBool (&status, recipe, "PSASTRO.MATCH.LUMFUNC");
     
    5556                int Ny = psMetadataLookupS32 (&status, hdu->header, "NAXIS2");
    5657
    57                 float minX = -fieldExtra*Nx;
    58                 float maxX = (1+fieldExtra)*Nx;
    59                 float minY = -fieldExtra*Ny;
    60                 float maxY = (1+fieldExtra)*Ny;
     58                float minX = -fieldPadding*Nx;
     59                float maxX = (1+fieldPadding)*Nx;
     60                float minY = -fieldPadding*Ny;
     61                float maxY = (1+fieldPadding)*Ny;
    6162
    6263                // the refstars is a subset within range of this chip
  • trunk/psastro/src/psastroLoadRefstars.c

    r15637 r15963  
    1515    float DECmin = DEG_RAD*psMetadataLookupF32(NULL, recipe, "DEC_MIN");
    1616    float DECmax = DEG_RAD*psMetadataLookupF32(NULL, recipe, "DEC_MAX");
     17
     18    // extra field fraction to add
     19    double fieldPadding = psMetadataLookupF32 (&status, recipe, "PSASTRO.FIELD.PADDING");
     20    PS_ASSERT (status, NULL);
     21
     22    float dRA = RAmax - RAmin;
     23    RAmin -= dRA * fieldPadding;
     24    RAmax += dRA * fieldPadding;
     25
     26    float dDEC = DECmax - DECmin;
     27    DECmin -= dDEC * fieldPadding;
     28    DECmax += dDEC * fieldPadding;
    1729
    1830    // XXX CATDIR needs to look up abstracted name from psastro.config
Note: See TracChangeset for help on using the changeset viewer.