IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 30, 2009, 5:20:29 PM (17 years ago)
Author:
watersc1
Message:

Finished up my edits to the detrend cleanup, and some changes to my
copy of burntool and the pslib astrometry. Detrend cleanup has not
been tested yet. That's up next.

Location:
branches/czw_branch/cleanup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/cleanup

  • branches/czw_branch/cleanup/ippTools/src/pxtools.h

    r23918 r24951  
    231231}
    232232
     233// convert the supplied value from degrees (external) to radians (internal)
     234#define PXOPT_COPY_RADEC(from, to, oldname, newname, comment) \
     235{ \
     236    bool status = false; \
     237    psF64 var = psMetadataLookupF64(&status, from, oldname); \
     238    if (!status) { \
     239        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for " oldname); \
     240        return false; \
     241    } \
     242    if (!isnan(var)) { \
     243        if (!psMetadataAddF64(to, PS_LIST_TAIL, newname, PS_META_DUPLICATE_OK, comment, PS_RAD_DEG*var)) { \
     244            psError(PS_ERR_UNKNOWN, false, "failed to add item " newname); \
     245            psFree(to); \
     246            return false; \
     247        } \
     248    } \
     249}
     250
    233251#define PXOPT_COPY_F32(from, to, oldname, newname, comment) \
    234252  PXOPT_COPY_F(from, to, F32, oldname, newname, comment)
Note: See TracChangeset for help on using the changeset viewer.