Changeset 5270
- Timestamp:
- Oct 10, 2005, 8:52:00 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/include/addstar.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/addstar.h
r5239 r5270 1 # include <ohana.h>1 # include "base.h" 2 2 # include <dvo.h> 3 3 # include <signal.h> … … 5 5 # include <time.h> 6 6 # include <zlib.h> 7 # include <netinet/ip.h> 8 # include <netdb.h> 9 # include <arpa/inet.h> 10 11 /* this is generated locally from the entries in addstar/def */ 12 # include "commcode.h" 7 13 8 14 /* used in find_matches, find_matches_refstars */ … … 18 24 exit (0); } 19 25 20 # if (0) 21 /* this structure is used for loading the data from the FITS smp file */ 22 typedef struct { 23 float X; 24 float Y; 25 float M; 26 float dM; 27 float Mgal; 28 float Map; 29 float sky; 30 float fx; 31 float fy; 32 float df; 33 char dophot; 34 char dummy[3]; 35 } StarData; 36 # endif 37 38 typedef struct { 39 double X; 40 double Y; 41 double R; 42 double D; 43 double M, dM; 44 char dophot; 45 double sky; 46 double fx, fy, df; 47 double Mgal, Map; 48 int found; 49 short int code; 50 e_time t; 51 } Stars; 26 typedef struct sockaddr_in SockAddress; 52 27 53 28 enum {M_IMAGE, M_REFLIST, M_REFCAT}; … … 55 30 /* global variables set in parameter file */ 56 31 char ImageCat[256]; 57 char ImageTemplate[256];58 char CatTemplate[256];59 32 char GSCFILE[256]; 60 33 char CATDIR[256]; … … 65 38 char GSCDIR[256]; 66 39 char CDROM[256]; 40 char DateKeyword[64]; 41 char DateMode[64]; 42 char UTKeyword[64]; 43 char MJDKeyword[64]; 44 char JDKeyword[64]; 45 char ExptimeKeyword[64]; 46 char AirmassKeyword[64]; 47 char CCDNumKeyword[64]; 48 char STKeyword[64]; 49 char SubpixDatafile[256]; 67 50 double DEFAULT_RADIUS, NSIGMA, SNLIMIT; 68 51 double ZeroPt; 69 52 double Latitude, SiderealTime; 70 int VERBOSE;71 int FITS_INPUT;72 int SKIP_MISSED;73 53 int XOVERSCAN, YOVERSCAN; 74 54 int XMIN, XMAX, YMIN, YMAX; 75 int ACCEPT_ASTROM; 76 int TEXTMODE; 55 char PASSWORD[80]; 56 char HOSTNAME[80]; 57 int NVALID, *VALID_IP; 77 58 78 PhotCode *thiscode; 79 GSCRegion UserPatch; 80 Coords *MOSAIC; 59 /* globals set by command-line options */ 60 int CALIBRATE; 61 int DUMP_MATCHES; 62 int ONLY_IMAGES; 63 int EXISTING_REGIONS; 64 int FORCE_READ; 65 int SKYPROBE; 66 int ADDREFS; 67 int REPLACE; 68 int ONLY_MATCH; 69 int CLOSEST; 70 int VERBOSE; 71 int FITS_INPUT; 72 int SKIP_MISSED; 73 int ACCEPT_ASTROM; 74 int TEXTMODE; 75 int NOSORT; 76 int UPDATE; 77 int MODE; 81 78 82 char DateKeyword[64];83 char DateMode[64];84 char UTKeyword[64];85 char MJDKeyword[64];86 char JDKeyword[64];87 char ExptimeKeyword[64];88 char AirmassKeyword[64];89 char CCDNumKeyword[64];90 char STKeyword[64];91 char SubpixDatafile[256];92 93 int CalReference;94 int CalColor;95 int CALIBRATE;96 int DUMP_MATCHES;97 int ONLY_IMAGES;98 int EXISTING_REGIONS;99 int FORCE_READ;100 int SKYPROBE;101 int ADDREFS;102 int REPLACE;103 int ONLY_MATCH;104 int CLOSEST;105 106 int NOSORT;107 int UPDATE;108 109 int MODE;110 79 char *DUMP; 111 80 char *SELECT_2MASS_QUALITY; 112 81 113 time_t TIMEREF; 82 time_t TIMEREF; 83 PhotCode *thiscode; 84 GSCRegion UserPatch; 85 Coords *MOSAIC; 114 86 115 87 /*** addstar prototypes ***/ … … 195 167 Missing *sort_missing (Average *average, int Naverage, Missing *missing, int Nmissing, int *next_miss); 196 168 169 int InitServerSocket (char *hostname, SockAddress *Address); 170 int WaitServerSocket (int InitSocket, SockAddress *Address, int *validIP, int Nvalid); 171 int GetClientSocket (char *hostname); 172 197 173 /** 198 174 there is an inconsistency to be resolved: fixed structures (like Image) … … 204 180 **/ 205 181 182 AddstarClientOptions args_client (int argc, char **argv); 183 184 int args_server (int argc, char **argv); 185 int CheckPassword (int BindSocket); 186 int NewImage (int BindSocket);
Note:
See TracChangeset
for help on using the changeset viewer.
