IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4797


Ignore:
Timestamp:
Aug 16, 2005, 3:01:26 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 (unused, undeclared, etc)

Location:
trunk/Ohana/src/uniphot
Files:
8 edited

Legend:

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

    r3466 r4797  
    11# include <ohana.h>
    22# include <dvo.h>
     3
     4# ifdef ANSI
     5#   define F_SETFL      4   
     6#   define O_NONBLOCK 0200000 
     7#   define       AF_UNIX         1         
     8#   define       SOCK_STREAM     1         
     9#define ENOENT          2       /* No such file or directory    */
     10# endif /* ANSI */
    311
    412typedef struct {
     
    4856enum {black, white, red, orange, yellow, green, blue, indigo, violet};
    4957
     58typedef struct {
     59  double xmin, xmax, ymin, ymax;
     60  int style, ptype, ltype, etype, color;
     61  double lweight, size;
     62} Graphdata;
     63
    5064/***** prototypes ****/
    51 Group *find_image_tgroups (Image *image, ImageLink *imlink, int Nimage, int *Ntgroup);
    52 Group *find_image_sgroups (Image *image, ImageLink *imlink, int Nimage, int *Nsgroup);
    53 Image *load_images (int *nimage);
    54 char *sec_to_date (unsigned long second);
    55 double sec_to_jd (unsigned long second);
    56 int main (int argc, char **argv);
    57 int args (int argc, char **argv);
    58 int liststats (double *value, double *dvalue, int N, StatType *stats);
    59 int dms_to_ddd (double *Value, char *string);
    60 int str_to_radec (double *ra, double *dec, char *str1, char *str2);
    61 int chk_time (char *line);
    62 int str_to_time (char *line, unsigned int *second);
    63 int str_to_dtime (char *line, double *second);
    64 int Fseek (FILE *f, long offset, int whence);
    65 unsigned long int jd_to_sec (double jd);
    66 unsigned long date_to_sec (char *date);
    67 void initialize (int argc, char **argv);
    68 void ConfigInit (int *argc, char **argv);
    69 void fit_tgroup (Group *tgroup, int Ntgroup);
    70 void fit_sgroup (Group *sgroup, int Nsgroup);
    71 void initstats (char *mode);
    72 void sort (unsigned int *X, int N);
    73 void sortB (double *X, double *Y, int N);
    74 void sortD (double *X, double *Y, double *Z, int N);
     65void          ConfigInit         PROTO((int *argc, char **argv));
     66void          DonePlotting       PROTO((Graphdata *graphmode, int N));
     67int           Fseek              PROTO((FILE *f, long offset, int whence));
     68void          JpegPlot           PROTO((Graphdata *graphmode, int N, char *filename));
     69void          PSPlot             PROTO((Graphdata *graphmode, int N, char *filename));
     70void          PlotLabel          PROTO((char *string, int N));
     71void          PlotVector         PROTO((int Npts, double *vect, int mode, int N));
     72void          PrepPlotting       PROTO((int Npts, Graphdata *graphmode, int N));
     73void          XDead              PROTO(());
     74int           args               PROTO((int argc, char **argv));
     75int           chk_time           PROTO((char *line));
     76unsigned long date_to_sec        PROTO((char *date));
     77int           dms_to_ddd         PROTO((double *Value, char *string));
     78void          dumpresult         PROTO(());
     79Group        *find_image_sgroups PROTO((Image *image, ImageLink *imlink, int Nimage, int *Nsgroup));
     80Group        *find_image_tgroups PROTO((Image *image, ImageLink *imlink, int Nimage, int *Ntgroup));
     81void          fit_sgroup         PROTO((Group *sgroup, int Nsgroup));
     82void          fit_tgroup         PROTO((Group *tgroup, int Ntgroup));
     83int           gcatalog           PROTO((Catalog *catalog));
     84void          initialize         PROTO((int argc, char **argv));
     85void          initstats          PROTO((char *mode));
     86unsigned long jd_to_sec          PROTO((double jd));
     87int           liststats          PROTO((double *value, double *dvalue, int N, StatType *stats));
     88Image        *load_images        PROTO((int *nimage));
     89int           main               PROTO((int argc, char **argv));
     90int           open_graph         PROTO((int N));
     91char         *sec_to_date        PROTO((unsigned long second));
     92double        sec_to_jd          PROTO((unsigned long second));
     93void          sort               PROTO((unsigned int *X, int N));
     94void          sortB              PROTO((double *X, double *Y, int N));
     95void          sortD              PROTO((double *X, double *Y, double *Z, int N));
     96int           str_to_dtime       PROTO((char *line, double *second));
     97int           str_to_radec       PROTO((double *ra, double *dec, char *str1, char *str2));
     98int           str_to_time        PROTO((char *line, unsigned int *second));
     99void          update             PROTO((Image *image, int Nimage, Group *sgroup, int Nsgroup));
     100void          update_catalog     PROTO((Catalog *catalog, Group *sgroup, int warn));
     101void          wcatalog           PROTO((Catalog *catalog));
     102void          wimages            PROTO((Image *image, int Nimage));
  • trunk/Ohana/src/uniphot/src/dumpresult.c

    r2492 r4797  
    11# include "uniphot.h"
    22
    3 dumpresult () {
     3void dumpresult () {
    44  short Mcal, Mgrp, Mset;
    55  FILE *f;
  • trunk/Ohana/src/uniphot/src/misc.c

    r2492 r4797  
     1# include "uniphot.h"
    12
    23void sort (unsigned int *X, int N) {
  • trunk/Ohana/src/uniphot/src/plotstuff.c

    r2492 r4797  
    1111}
    1212
    13 typedef struct {
    14   double xmin, xmax, ymin, ymax;
    15   int style, ptype, ltype, etype, color;
    16   double lweight, size;
    17 } Graphdata;
    18 
    1913int open_graph (int N) {
    20 
    21 # ifdef ANSI
    22 #   define F_SETFL      4   
    23 #   define O_NONBLOCK 0200000 
    24 #   define       AF_UNIX         1         
    25 #   define       SOCK_STREAM     1         
    26 #define ENOENT          2       /* No such file or directory    */
    27 # endif /* ANSI */
    2814
    2915  int i, InitSocket, status, addreslen;
  • trunk/Ohana/src/uniphot/src/uniphot.c

    r2492 r4797  
    33int main (int argc, char **argv) {
    44
    5   int i, j, Nimage, Ntgroup, Nsgroup;
     5  int i, Nimage, Ntgroup, Nsgroup;
    66  Group *tgroup, *sgroup;
    77  Image *image;
  • trunk/Ohana/src/uniphot/src/update_catalog.c

    r2492 r4797  
    11# include "uniphot.h"
    22
    3 update_catalog (Catalog *catalog, Group *sgroup, int warn) {
     3void update_catalog (Catalog *catalog, Group *sgroup, int warn) {
    44
    55  int i, j, m, found;
  • trunk/Ohana/src/uniphot/src/wcatalog.c

    r2492 r4797  
    11# include "uniphot.h"
    22
    3 wcatalog (Catalog *catalog) {
     3void wcatalog (Catalog *catalog) {
    44
    55  /** write out catalog, free memory **/
  • trunk/Ohana/src/uniphot/src/wimages.c

    r2492 r4797  
    11# include "uniphot.h"
    22
    3 wimages (Image *image, int Nimage) {
     3void wimages (Image *image, int Nimage) {
    44
    55  int status, mode;
Note: See TracChangeset for help on using the changeset viewer.