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