IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2005, 4:57:00 PM (21 years ago)
Author:
eugene
Message:

moving to autocode on imregister

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/include/dvo.h

    r3536 r3609  
     1# include <autocode.h>
    12
    23# ifndef DVO_H
    34# define DVO_H
    45
    5 # define ELIXIR    1
    6 # define LONEOS    0
    7 # define PANSTARRS 0
     6/*** FITS DB structure  ***/
     7typedef struct {
     8  FILE  *f;
     9  char  *filename;
     10  int    dbstate;
     11  int    lockstate;
     12  double timeout;
     13  Header header;
     14  Matrix matrix;
     15  Header theader;
     16  FTable ftable;
     17} FITS_DB;
     18
     19/* the standard astrometric coordinates structure */
     20typedef struct {
     21  double   crval1, crval2;
     22  float    crpix1, crpix2;
     23  float    cdelt1, cdelt2;
     24  float    pc1_1, pc1_2;
     25  float    pc2_1, pc2_2;
     26  float    polyterms[7][2];
     27  char     ctype[15];
     28  char     Npolyterms;
     29} Coords;  /* 120 bytes / Coords */
     30
     31/* in fits_db.c */
     32int   fits_db_init                PROTO((FITS_DB *db));
     33int   fits_db_create              PROTO((FITS_DB *db));
     34int   fits_db_lock                PROTO((FITS_DB *db, char *filename));
     35int   fits_db_load                PROTO((FITS_DB *db));
     36int   fits_db_close               PROTO((FITS_DB *db));
     37int   fits_db_free                PROTO((FITS_DB *db));
     38int   fits_db_save                PROTO((FITS_DB *db));
     39int   fits_db_update              PROTO((FITS_DB *db, VTable *vtable));
     40
     41/* in coords.c */
     42int  XY_to_RD (double *ra, double *dec, double x,  double y,   Coords *coords);
     43int  RD_to_XY (double *x,  double *y,   double ra, double dec, Coords *coords);
     44int  fXY_to_RD (float *ra, float *dec, double x,  double y,   Coords *coords);
     45int  fRD_to_XY (float *x,  float *y,   double ra, double dec, Coords *coords);
     46int  GetCoords (Coords *coords, Header *header);
     47int  PutCoords (Coords *coords, Header *header);
     48void RegisterMosaic (Coords *coords);
     49void coords_precess (double *ra, double *dec, double in_epoch, double out_epoch);
    850
    951/* image data modes in RegImage */
     
    75117*/
    76118
    77 /*** FITS DB structure  ***/
    78 typedef struct {
    79   FILE  *f;
    80   char  *filename;
    81   int    dbstate;
    82   int    lockstate;
    83   double timeout;
    84   Header header;
    85   Matrix matrix;
    86   Header theader;
    87   FTable ftable;
    88 } FITS_DB;
     119/** we are going to replace these with autocode and appropriate conversions
     120    for now, choose the appropriate table version **/
    89121
    90 /* the standard astrometric coordinates structure */
    91 typedef struct {
    92   double   crval1, crval2;
    93   float    crpix1, crpix2;
    94   float    cdelt1, cdelt2;
    95   float    pc1_1, pc1_2;
    96   float    pc2_1, pc2_2;
    97   float    polyterms[7][2];
    98   char     ctype[15];
    99   char     Npolyterms;
    100 } Coords;  /* 120 bytes / Coords */
    101 
    102 /*** FITS_DB functions ***/
    103 
    104 /* in fits_db.c */
    105 int   fits_db_init                PROTO((FITS_DB *db));
    106 int   fits_db_lock                PROTO((FITS_DB *db, char *filename));
    107 int   fits_db_load                PROTO((FITS_DB *db));
    108 int   fits_db_close               PROTO((FITS_DB *db));
    109 int   fits_db_free                PROTO((FITS_DB *db));
    110 int   fits_db_save                PROTO((FITS_DB *db));
    111 int   fits_db_update              PROTO((FITS_DB *db, VTable *vtable));
    112 
    113 /* in coords.c */
    114 int  XY_to_RD (double *ra, double *dec, double x,  double y,   Coords *coords);
    115 int  RD_to_XY (double *x,  double *y,   double ra, double dec, Coords *coords);
    116 int  fXY_to_RD (float *ra, float *dec, double x,  double y,   Coords *coords);
    117 int  fRD_to_XY (float *x,  float *y,   double ra, double dec, Coords *coords);
    118 int  GetCoords (Coords *coords, Header *header);
    119 int  PutCoords (Coords *coords, Header *header);
    120 void RegisterMosaic (Coords *coords);
    121 void coords_precess (double *ra, double *dec, double in_epoch, double out_epoch);
    122 
    123 # include <autocode.h>
     122# define ELIXIR    1
     123# define LONEOS    0
     124# define PANSTARRS 0
    124125
    125126# if (LONEOS)
     
    135136# endif
    136137
    137 /* these functions refer to the DVO structures define in the includes above */
     138/* these functions refer to the DVO structures defined in the includes above
     139 *  they are being replaced with autocode entries
     140 */
     141
    138142int   Fread (void *ptr, int size, int nitems, FILE *f, char *type);
    139143int   Fwrite (void *ptr, int size, int nitems, FILE *f, char *type);
Note: See TracChangeset for help on using the changeset viewer.