IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

used PSASTRO.FIELD.PADDING to extend field range

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.