IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5285


Ignore:
Timestamp:
Oct 12, 2005, 8:15:45 AM (21 years ago)
Author:
eugene
Message:

working on cleanup up excessive global usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/include/addstar.h

    r5273 r5285  
    99# include <arpa/inet.h>
    1010
    11 /* this is generated locally from the entries in addstar/def
    12 # include "commcode.h" */
    13 
    1411/* used in find_matches, find_matches_refstars */
    1512# define IN_CATALOG(R,D) ( \
     
    2825enum {M_IMAGE, M_REFLIST, M_REFCAT};
    2926
    30 /* global variables set in parameter file */
     27/* global which define database info / data sources (KEEP) */
    3128char   ImageCat[256];
    3229char   GSCFILE[256];
     
    3835char   GSCDIR[256];
    3936char   CDROM[256];
     37char   SubpixDatafile[256];
     38char   PASSWORD[80];
     39char   HOSTNAME[80];
     40int    NVALID, *VALID_IP;
     41
     42/* used to select entries from header (gstars or parse_time) (KEEP) */
    4043char   DateKeyword[64];
    4144char   DateMode[64];
     
    4750char   CCDNumKeyword[64];
    4851char   STKeyword[64];
    49 char   SubpixDatafile[256];
    50 double DEFAULT_RADIUS, NSIGMA, SNLIMIT;
    51 double ZeroPt;
    52 double Latitude, SiderealTime;
    53 int    XOVERSCAN, YOVERSCAN;
    54 int    XMIN, XMAX, YMIN, YMAX;
    55 char   PASSWORD[80];
    56 char   HOSTNAME[80];
    57 int    NVALID, *VALID_IP;
    58 
    59 /* globals set by command-line options */
    60 int   CALIBRATE;
    61 int   DUMP_MATCHES;
    62 int   ONLY_IMAGES;
     52
     53/* add to options as an int / keep the global? */
     54PhotCode *thiscode;
     55
     56/* how to carry this around? */
     57Coords   *MOSAIC;
     58
     59/* globals set by command-line options (AddstarClientOptions) */
     60/* move into AddstarClientOptions completely */
     61# if (1)
     62int   MODE;
    6363int   EXISTING_REGIONS;
    64 int   FORCE_READ;
    65 int   SKYPROBE;
    66 int   ADDREFS;
     64int   ONLY_MATCH;
     65int   SKIP_MISSED;
    6766int   REPLACE;
    68 int   ONLY_MATCH;
    6967int   CLOSEST;
    70 int   VERBOSE;
    71 int   FITS_INPUT;
    72 int   SKIP_MISSED;
    73 int   ACCEPT_ASTROM;
    74 int   TEXTMODE;
    7568int   NOSORT;
    7669int   UPDATE;
    77 int   MODE;
    78 
    79 char *DUMP;
    80 char *SELECT_2MASS_QUALITY;
    81 
    82 time_t    TIMEREF;
    83 PhotCode *thiscode;
    84 GSCRegion UserPatch;
    85 Coords   *MOSAIC;
     70int   ONLY_IMAGES;
     71int   CALIBRATE;
     72double DEFAULT_RADIUS;   // XXX add to AddstarClientOptions
     73double NSIGMA;           // XXX add to AddstarClientOptions
     74# endif
     75
     76/* these globals modify the behavior of gstars (KEEP) */
     77double SNLIMIT;
     78int    ACCEPT_ASTROM;  // accept even bad astrometry solutions (NASTRO == 0)
     79int    TEXTMODE;
     80int    VERBOSE;
     81char  *DUMP;
     82int    XOVERSCAN;  // used to modify stored image dimensions
     83int    YOVERSCAN; 
     84int    XMIN;       // used to filter loaded star list
     85int    XMAX;
     86int    YMIN;
     87int    YMAX;
     88double Latitude;   // carried into image structure from config
     89
     90/* modify server behavoir (make this an addstar cleanup mode?) */
     91int    FORCE_READ;
     92
     93int   SKYPROBE; 
     94// XXX this should be replaced with
     95// 1) an airmass accuracy option
     96// 2) an alternative CATFORMAT with the sky element correctly defined.
     97
     98/* these depend on HOW we implement the client/server interaction for CAT/REF modes */
     99time_t    TIMEREF;    // used by MODE REF
     100GSCRegion UserPatch;  // used by MODE CAT
     101char *SELECT_2MASS_QUALITY;  // used only by get2mass_as
     102
     103double ZeroPt;  // double check for consistency (image header / config file): KEEP global
     104
     105int   FITS_INPUT;     // unused???
     106int   ADDREFS;        // unused???
     107int   DUMP_MATCHES;   // un-set???
    86108
    87109/*** addstar prototypes ***/
Note: See TracChangeset for help on using the changeset viewer.