IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 31, 2007, 3:02:19 PM (19 years ago)
Author:
eugene
Message:

work on absphot to layout basic code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20071015/Ohana/src/absphot/include/absphot.h

    r15354 r15426  
    33# include <kapa.h>
    44# include <signal.h>
    5 
    6 /* # define GRID_V1 */
    7 # define GRID_V2
    8 # define NO_IMAGE -100
    9 
    10 # if (0)
    11 typedef struct {
    12   double xmin, xmax, ymin, ymax;
    13   int style, ptype, ltype, etype, color;
    14   double lweight, size;
    15 } Graphdata;
    16 # endif
    17 
    18 typedef struct {
    19   unsigned int start;
    20   unsigned int stop;
    21   float Mcal;
    22   float dMcal;
    23   short Xm;
    24   float secz;
    25   char code;
    26   Coords coords;
    27 } Mosaic;
    285
    296typedef struct {
     
    4118/* global variables set in parameter file */
    4219char   ImageCat[256];
    43 char   ImageTemplate[256];
    44 char   CatTemplate[256];
    4520char   GSCFILE[256];
    4621char   CATDIR[256];
    4722char   CATMODE[16];    /* raw, mef, split, mysql */
    4823char   CATFORMAT[16];  /* internal, elixir, loneos, panstarrs */
    49 char   CameraConfig[256];
     24
    5025char   SKY_TABLE[256];
    5126int    SKY_DEPTH;  /** XXX EAM : depth of catalog tables, fix usage */
    5227
    53 double MAG_LIM;
    54 double SIGMA_LIM;
    55 double IMAGE_SCATTER;
    56 double IMAGE_OFFSET;
    57 double STAR_SCATTER;
    58 double STAR_CHISQ;
    59 double MIN_ERROR;
    60 
    6128int    VERBOSE;
    6229
    63 int    NLOOP;
    64 int    RESET;
    6530int    UPDATE;
    6631int    PLOTSTUFF;
    6732int    SAVEPLOT;
    68 int    SHOW_PARAMS;
    69 char   MOSAICNAME[256];
    70 char   STATMODE[32];
    71 int    STAR_BAD;
    72 int    MEAS_BAD;
    73 int    STAR_TOOFEW;
    74 int    IMAGE_TOOFEW;
    75 double IMAGE_GOOD_FRACTION;
    76 int    IMAGE_BAD;
    77 int    FREEZE_IMAGES;
    78 int    USE_GRID;
    7933int    PLOTDELAY;
    8034
    81 int    RELPHOT_GRID_X;
    82 int    RELPHOT_GRID_Y;
    83 int    RELPHOT_GRID_BINNING;
     35int    SHOW_PARAMS;
     36char   STATMODE[32];
    8437
    8538PhotCode      *photcode;
     
    8740int            PhotSec;
    8841
    89 int AreaSelect;
    90 double AreaXmin, AreaXmax, AreaYmin, AreaYmax;
    91 
    92 int ImagSelect, ImagMin, ImagMax;
    93 
    94 int DophotSelect, DophotValue;
    95 
    9642double  PlotMmin, PlotMmax, PlotdMmin, PlotdMmax;
    97 enum {black, white, red, orange, yellow, green, blue, indigo, violet};
    98 
    99 int TimeSelect;
    100 time_t TSTART, TSTOP;
    10143
    10244SkyRegion UserPatch;
    103 int UserPatchSelect;
    10445
    105 # ifdef GRID_V1
    106 int setGridMeasure (int meas, int cat, double X, double Y);
    107 # endif
    108 
    109 # ifdef GRID_V2
    110 int setGridMeasure (int meas, int cat, double X, double Y, int ccdnum);
    111 # endif
    112 
    113 /*** relphot prototypes ***/
     46/*** absphot prototypes ***/
     47int           main                PROTO((int argc, char **argv));
     48void          initialize          PROTO((int argc, char **argv));
     49int           args                PROTO((int argc, char **argv));
    11450void          ConfigInit          PROTO((int *argc, char **argv));
    11551void          GetConfig           PROTO((char *config, char *field, char *format, int N, void *ptr));
    116 char         *GetPhotnamebyCode   PROTO((PhotCodeData *photcodes, int code));
    117 void          InterpolateGrid     PROTO((float *buffer, int Nx, int Ny, Coords *ccd, Coords *gcoords));
    118 int          *SelectRefMosaic     PROTO((Mosaic **refmosaic, int *Nimage));
    119 int           args                PROTO((int argc, char **argv));
    120 int           bcatalog            PROTO((Catalog *subcatalog, Catalog *catalog));
    121 void          clean_images        PROTO(());
    122 void          clean_measures      PROTO((Catalog *catalog, int Ncatalog, int final));
    123 void          clean_mosaics       PROTO(());
    124 void          clean_stars         PROTO((Catalog *catalog, int Ncatalog));
    125 int           corner_check        PROTO((double *x1, double *y1, double *x2, double *y2));
    126 void          dumpGrid            PROTO(());
    127 void          dump_grid           PROTO(());
    128 int           edge_check          PROTO((double *x1, double *y1, double *x2, double *y2));
    129 void          findImages          PROTO((Catalog *catalog, int Ncatalog));
    130 int           findMosaics         PROTO((Catalog *catalog, int Ncatalog));
     52Catalog      *load_catalogs       PROTO((SkyList *skylist));
     53int           subset_catalog      PROTO((Catalog *subcatalog, Catalog *catalog));
     54void          free_catalogs       PROTO((Catalog *catalog, int Ncatalog));
    13155
    132 void set_db (FITS_DB *in);
    133 int Shutdown (char *format, ...);
    134 void TrapSignal (int sig);
    135 void SetProtect (int mode);
    136 int SetSignals ();
    137 
    138 void          freeGridBins        PROTO((int Ncatalog));
    139 void          freeImageBins       PROTO((int Ncatalog));
    140 void          freeMosaicBins      PROTO((int Ncatalog));
    141 void          free_catalogs       PROTO((Catalog *catalog, int Ncatalog));
    142 int           gcatalog            PROTO((Catalog *catalog, int FINAL));
    143 Coords       *getCoords           PROTO((int meas, int cat));
    144 float         getMcal             PROTO((int meas, int cat));
    145 float         getMgrid            PROTO((int meas, int cat));
    146 float         getMmos             PROTO((int meas, int cat));
    147 float         getMrel             PROTO((Catalog *catalog, int meas, int cat));
    148 Image        *getimage            PROTO((int N));
    149 Image        *getimages           PROTO((int *N));
    150 void          global_stats        PROTO((Catalog *catalog, int Ncatalog));
    151 void          initGrid            PROTO((int dX, int dY));
    152 void          initGridBins        PROTO((Catalog *catalog, int Ncatalog));
    153 void          initImageBins       PROTO((Catalog *catalog, int Ncatalog));
    154 void          initImages          PROTO((Image *input, int N));
    155 void          initMosaicBins      PROTO((Catalog *catalog, int Ncatalog));
    156 void          initMosaicGrid      PROTO((Image *image, int Nimage));
    157 void          initMosaics         PROTO((Image *image, int Nimage));
    158 void          initMrel            PROTO((Catalog *catalog, int Ncatalog));
    159 void          initialize          PROTO((int argc, char **argv));
    16056void          initstats           PROTO((char *mode));
    16157int           liststats           PROTO((double *value, double *dvalue, int N, StatType *stats));
    162 Catalog       *load_catalogs      PROTO((SkyList *skylist, int *Ncatalog));
    163 SkyList      *load_images         PROTO((FITS_DB *db, char *regionName, SkyRegion *region, int RegionSelect));
    164 Image         *select_images      PROTO((SkyList *skylist, Image *timage, int Ntimage, int **LineNumber, int *Nimage));
    16558
    166 int           main                PROTO((int argc, char **argv));
    167 void          mark_images         PROTO((Image *image, int Nimage, Image *timage, int Ntimage));
    168 void          matchImage          PROTO((Catalog *catalog, int meas, int cat));
    169 void          matchMosaics        PROTO((Catalog *catalog, int meas, int cat));
    170 double        opening_angle       PROTO((double x1, double y1, double x2, double y2, double x3, double y3));
    171 void          plot_chisq          PROTO((Catalog *catalog, int Ncatalog));
    172 void          plot_defaults       PROTO((Graphdata *graphdata));
    173 void          plot_grid           PROTO((Catalog *catalog));
    174 void          plot_images         PROTO(());
    175 void          plot_list           PROTO((Graphdata *graphdata, double *xlist, double *ylist, int N, char *label, char *file));
    176 void          plot_mosaic_fields  PROTO((Catalog *catalog));
    177 void          plot_mosaics        PROTO(());
    178 void          plot_scatter        PROTO((Catalog *catalog, int Ncatalog));
    179 void          plot_star_coords    PROTO((Catalog *catalog, int Ncatalog));
    180 void          plot_stars          PROTO((Catalog *catalog, int Ncatalog));
    181 void          reload_catalogs     PROTO((SkyList *skylist));
    182 int           reload_images       PROTO((FITS_DB *db));
    183 int           setExclusions       PROTO((Catalog *catalog, int Ncatalog));
    184 void          setMcal             PROTO((Catalog *catalog, int Poor));
    185 void          setMcalFinal        PROTO(());
    186 int           setMcalOutput       PROTO((Catalog *catalog, int Ncatalog));
    187 void          setMgrid            PROTO((Catalog *catalog));
    188 int           setMmos             PROTO((Catalog *catalog, int Poor));
    189 int           setMrel             PROTO((Catalog *catalog, int Ncatalog));
    190 void          setMrelFinal        PROTO((Catalog *catalog));
    191 int           setMrelOutput       PROTO((Catalog *catalog, int Ncatalog, int mark));
    192 void          set_ZP              PROTO((double ZERO));
    193 int           setrefcode          PROTO((Image *image, int Nimage));
    194 void          skip_measurements   PROTO((Catalog *catalog, int pass));
    195 void          sortA               PROTO((double *X, int N));
    196 void          sortB               PROTO((double *X, double *Y, int N));
    197 void          sortC               PROTO((double *X, double *Y, double *F1, double *F2, int N));
    198 void          sortD               PROTO((double *X, double *Y, double *Z, int N));
    199 StatType      statsImageM         PROTO((Catalog *catalog));
    200 StatType      statsImageN         PROTO((Catalog *catalog));
    201 StatType      statsImageX         PROTO((Catalog *catalog));
    202 StatType      statsImagedM        PROTO((Catalog *catalog));
    203 StatType      statsMosaicM        PROTO((Catalog *catalog));
    204 StatType      statsMosaicN        PROTO((Catalog *catalog));
    205 StatType      statsMosaicX        PROTO((Catalog *catalog));
    206 StatType      statsMosaicdM       PROTO((Catalog *catalog));
    207 StatType      statsStarN          PROTO((Catalog *catalog, int Ncatalog));
    208 StatType      statsStarS          PROTO((Catalog *catalog, int Ncatalog));
    209 StatType      statsStarX          PROTO((Catalog *catalog, int Ncatalog));
    210 void          wcatalog            PROTO((Catalog *catalog));
    211 void          wimages             PROTO(());
    212 void          write_coords        PROTO((Header *header, Coords *coords));
     59SkyList      *find_regions        PROTO((FITS_DB *db, SkyRegion *region));
Note: See TracChangeset for help on using the changeset viewer.