Changeset 3609 for trunk/Ohana/src/libohana/include/dvo.h
- Timestamp:
- Mar 31, 2005, 4:57:00 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/include/dvo.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/include/dvo.h
r3536 r3609 1 # include <autocode.h> 1 2 2 3 # ifndef DVO_H 3 4 # define DVO_H 4 5 5 # define ELIXIR 1 6 # define LONEOS 0 7 # define PANSTARRS 0 6 /*** FITS DB structure ***/ 7 typedef 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 */ 20 typedef 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 */ 32 int fits_db_init PROTO((FITS_DB *db)); 33 int fits_db_create PROTO((FITS_DB *db)); 34 int fits_db_lock PROTO((FITS_DB *db, char *filename)); 35 int fits_db_load PROTO((FITS_DB *db)); 36 int fits_db_close PROTO((FITS_DB *db)); 37 int fits_db_free PROTO((FITS_DB *db)); 38 int fits_db_save PROTO((FITS_DB *db)); 39 int fits_db_update PROTO((FITS_DB *db, VTable *vtable)); 40 41 /* in coords.c */ 42 int XY_to_RD (double *ra, double *dec, double x, double y, Coords *coords); 43 int RD_to_XY (double *x, double *y, double ra, double dec, Coords *coords); 44 int fXY_to_RD (float *ra, float *dec, double x, double y, Coords *coords); 45 int fRD_to_XY (float *x, float *y, double ra, double dec, Coords *coords); 46 int GetCoords (Coords *coords, Header *header); 47 int PutCoords (Coords *coords, Header *header); 48 void RegisterMosaic (Coords *coords); 49 void coords_precess (double *ra, double *dec, double in_epoch, double out_epoch); 8 50 9 51 /* image data modes in RegImage */ … … 75 117 */ 76 118 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 **/ 89 121 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 124 125 125 126 # if (LONEOS) … … 135 136 # endif 136 137 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 138 142 int Fread (void *ptr, int size, int nitems, FILE *f, char *type); 139 143 int Fwrite (void *ptr, int size, int nitems, FILE *f, char *type);
Note:
See TracChangeset
for help on using the changeset viewer.
