home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / xfitsvew.zip / XFITSview / fitssubs / position.h < prev    next >
C/C++ Source or Header  |  1998-04-02  |  2KB  |  39 lines

  1. /*  Headers for utility routines related to celestial positions */
  2. /*-----------------------------------------------------------------------
  3. *  Copyright (C) 1996,1997
  4. *  Associated Universities, Inc. Washington DC, USA.
  5. *  This program is free software; you can redistribute it and/or
  6. *  modify it under the terms of the GNU General Public License as
  7. *  published by the Free Software Foundation; either version 2 of
  8. *  the License, or (at your option) any later version.
  9. *
  10. *  This program is distributed in the hope that it will be useful,
  11. *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. *  GNU General Public License for more details.
  14. *-----------------------------------------------------------------------*/
  15. #include "imagdesc.h"
  16.  
  17. #ifndef POSITION_H
  18. #define POSITION_H
  19.  
  20. int worldpos(float xpix, float ypix, double xref, double yref, 
  21.       float xrefpix, float yrefpix, float xinc, float yinc, float rot,
  22.       char *type, double *xpos, double *ypos);
  23. int CDpos(float xpix, float ypix, double xref, double yref,
  24.       float xrefpix, float yrefpix, float xinc, float yinc, float rot,
  25.       float cd1[2], float cd2[2], char *type, double *xpos, double *ypos);
  26. int xypix(double xpos, double ypos, double xref, double yref, 
  27.       float xrefpix, float yrefpix, float xinc, float yinc, float rot,
  28.       char *type, float *xpix, float *ypix);
  29. int CDpix(double xpos, double ypos, double xref, double yref, 
  30.       float xrefpix, float yrefpix, float xinc, float yinc, float rot,
  31.       float icd1[2], float icd2[2], char *type, float *xpix, float *ypix);
  32. int pfit (float a[9][9], float *s, float dx[2], float fblank);
  33. int worldposlm(double dx, double dy, double xref, double yref, 
  34.            float xinc, float yinc, float rot, char *type, 
  35.            double *xpos, double *ypos);
  36. int xypixlm(double xpos, double ypos, double xref, double yref, 
  37.       float xinc, float yinc, float rot, char *type, double *dx, double *dy);
  38. #endif
  39.