IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33028


Ignore:
Timestamp:
Dec 27, 2011, 11:43:08 AM (14 years ago)
Author:
bills
Message:

Make sure the range in RA passed to getstar is less than 180 degrees. Fixes at least some astrometry
failures on CNP exposures

File:
1 edited

Legend:

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

    r27659 r33028  
    3333
    3434    float dRA = RAmax - RAmin;
    35     RAmin -= dRA * fieldPadding;
    36     RAmax += dRA * fieldPadding;
     35    if (dRA * (1. + 2 * fieldPadding) < 180.) {
     36        RAmin -= dRA * fieldPadding;
     37        RAmax += dRA * fieldPadding;
     38    } else {
     39        // if dRA > 180 getstar has problems. Just search the entire range
     40        RAmin = 0;
     41        RAmax = 360;
     42    }
    3743
    3844    float dDEC = DECmax - DECmin;
Note: See TracChangeset for help on using the changeset viewer.