IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2005, 3:00:56 PM (21 years ago)
Author:
eugene
Message:

moving to internal vs external measure/average: R,D + dR,dD.
NOTE * dR,dD now represent 1.0 arcsec, not 0.01 arcsec.

* all use has been updated to match

also, cleanups to pass Wall,Werror

File:
1 edited

Legend:

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

    r3466 r4796  
    44/* # define GRID_V1 */
    55# define GRID_V2
    6 
    7 static union { unsigned char c[4]; float f; } f_undef = { 0xff, 0xff, 0xff, 0xfe };
    8 # define fUNDEF (f_undef.f)
    9 
    10 static union { unsigned char c[8]; float d; } d_undef = { 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00 };
    11 # define dUNDEF (d_undef.d)
    126
    137typedef struct {
     
    9589int TimeSelect;
    9690unsigned int TSTART, TSTOP;
     91
     92# ifdef GRID_V1
     93int setGridMeasure (int meas, int cat, double X, double Y);
     94# endif
     95
     96# ifdef GRID_V2
     97int setGridMeasure (int meas, int cat, double X, double Y, int ccdnum);
     98# endif
    9799
    98100/***** prototypes ****/
     
    139141void reload_catalogs (GSCRegion *region, int Nregion, GSCRegion *fullregion);
    140142void free_catalogs (Catalog *catalog, int Ncatalog);
    141 
    142 # ifdef GRID_V1
    143 int setGridMeasure (int meas, int cat, double X, double Y);
    144 # endif
    145 
    146 # ifdef GRID_V2
    147 int setGridMeasure (int meas, int cat, double X, double Y, int ccdnum);
    148 # endif
    149 
    150143void set_ZP (double ZERO);
    151 
    152144char *GetPhotnamebyCode (PhotCodeData *photcodes, int code);
    153145StatType statsStarS (Catalog *catalog, int Ncatalog);
     
    157149StatType statsImageX (Catalog *catalog);
    158150StatType statsImageM (Catalog *catalog);
     151void plot_scatter (Catalog *catalog, int Ncatalog);
     152void plot_defaults (Graphdata *graphdata);
     153void plot_list (Graphdata *graphdata, double *xlist, double *ylist, int N, char *label, char *file);
     154void plot_stars (Catalog *catalog, int Ncatalog);
     155void plot_chisq (Catalog *catalog, int Ncatalog);
     156void plot_star_coords (Catalog *catalog, int Ncatalog);
     157void plot_grid (Catalog *catalog);
     158void dump_grid ();
     159int *SelectRefMosaic (Mosaic **refmosaic, int *Nimage);
     160Image *getimage (int N);
     161void InterpolateGrid (float *buffer, int Nx, int Ny, Coords *ccd, Coords *gcoords);
     162void plot_mosaic_fields (Catalog *catalog);
     163void plot_mosaics ();
     164void plot_images ();
     165void wimages ();
     166void clean_mosaics ();
     167void freeMosaicBins (int Ncatalog);
     168void freeGridBins (int Ncatalog);
     169void clean_measures (Catalog *catalog, int Ncatalog, int final);
     170void global_stats (Catalog *catalog, int Ncatalog);
     171StatType statsImagedM (Catalog *catalog);
     172StatType statsMosaicdM (Catalog *catalog);
     173StatType statsMosaicM (Catalog *catalog);
     174StatType statsMosaicN (Catalog *catalog);
     175StatType statsMosaicX (Catalog *catalog);
     176Coords *getCoords (int meas, int cat);
     177int setExclusions (Catalog *catalog, int Ncatalog);
     178void freeImageBins (int Ncatalog);
     179void sortA (double *X, int N);
     180void sortB (double *X, double *Y, int N);
     181void sortC (double *X, double *Y, double *F1, double *F2, int N);
     182void sortD (double *X, double *Y, double *Z, int N);
     183void initstats (char *mode);
     184int liststats (double *value, double *dvalue, int N, StatType *stats);
     185
     186int dms_to_ddd (double *Value, char *string);
     187int str_to_radec (double *ra, double *dec, char *str1, char *str2);
     188int chk_time (char *line);
     189double sec_to_jd (unsigned long second);
     190unsigned long int jd_to_sec (double jd);
     191char *sec_to_date (unsigned long second);
     192unsigned long date_to_sec (char *date);
     193 
     194int str_to_time (char *line, unsigned int *second);
     195int str_to_dtime (char *line, double *second);
     196int Fseek (FILE *f, long offset, int whence);
     197void GetConfig (char *config, char *field, char *format, int N, void *ptr);
     198void skip_measurements (Catalog *catalog, int pass);
     199Image *getimages (int *N);
     200
     201void setMrelFinal (Catalog *catalog);
     202void skip_measurements (Catalog *catalog, int pass);
     203GSCRegion *get_regions (double minRa, double maxRa, double minDec, double maxDec, int *Nregions);
     204int hms_to_deg (double *h0, double *h1, double *d0, double *d1, char *string);
     205GSCRegion *find_regions (Image *image, int Nimage, int *Nregions, GSCRegion *fullregion);
     206void getfullregion (Image *image, int Nimage, GSCRegion *fullregion);
     207void setMcalFinal (Image *image, int Nimage);
     208int gcatalog (Catalog *catalog, int FINAL);
     209void write_coords (Header *header, Coords *coords);
     210void wcatalog (Catalog *catalog);
     211int setMrelOutput (Catalog *catalog, int Ncatalog, int mark);
     212int setMcalOutput (Catalog *catalog, int Ncatalog);
Note: See TracChangeset for help on using the changeset viewer.