Changeset 4797
- Timestamp:
- Aug 16, 2005, 3:01:26 PM (21 years ago)
- Location:
- trunk/Ohana/src/uniphot
- Files:
-
- 8 edited
-
include/uniphot.h (modified) (2 diffs)
-
src/dumpresult.c (modified) (1 diff)
-
src/misc.c (modified) (1 diff)
-
src/plotstuff.c (modified) (1 diff)
-
src/uniphot.c (modified) (1 diff)
-
src/update_catalog.c (modified) (1 diff)
-
src/wcatalog.c (modified) (1 diff)
-
src/wimages.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/uniphot/include/uniphot.h
r3466 r4797 1 1 # include <ohana.h> 2 2 # 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 */ 3 11 4 12 typedef struct { … … 48 56 enum {black, white, red, orange, yellow, green, blue, indigo, violet}; 49 57 58 typedef struct { 59 double xmin, xmax, ymin, ymax; 60 int style, ptype, ltype, etype, color; 61 double lweight, size; 62 } Graphdata; 63 50 64 /***** 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); 65 void ConfigInit PROTO((int *argc, char **argv)); 66 void DonePlotting PROTO((Graphdata *graphmode, int N)); 67 int Fseek PROTO((FILE *f, long offset, int whence)); 68 void JpegPlot PROTO((Graphdata *graphmode, int N, char *filename)); 69 void PSPlot PROTO((Graphdata *graphmode, int N, char *filename)); 70 void PlotLabel PROTO((char *string, int N)); 71 void PlotVector PROTO((int Npts, double *vect, int mode, int N)); 72 void PrepPlotting PROTO((int Npts, Graphdata *graphmode, int N)); 73 void XDead PROTO(()); 74 int args PROTO((int argc, char **argv)); 75 int chk_time PROTO((char *line)); 76 unsigned long date_to_sec PROTO((char *date)); 77 int dms_to_ddd PROTO((double *Value, char *string)); 78 void dumpresult PROTO(()); 79 Group *find_image_sgroups PROTO((Image *image, ImageLink *imlink, int Nimage, int *Nsgroup)); 80 Group *find_image_tgroups PROTO((Image *image, ImageLink *imlink, int Nimage, int *Ntgroup)); 81 void fit_sgroup PROTO((Group *sgroup, int Nsgroup)); 82 void fit_tgroup PROTO((Group *tgroup, int Ntgroup)); 83 int gcatalog PROTO((Catalog *catalog)); 84 void initialize PROTO((int argc, char **argv)); 85 void initstats PROTO((char *mode)); 86 unsigned long jd_to_sec PROTO((double jd)); 87 int liststats PROTO((double *value, double *dvalue, int N, StatType *stats)); 88 Image *load_images PROTO((int *nimage)); 89 int main PROTO((int argc, char **argv)); 90 int open_graph PROTO((int N)); 91 char *sec_to_date PROTO((unsigned long second)); 92 double sec_to_jd PROTO((unsigned long second)); 93 void sort PROTO((unsigned int *X, int N)); 94 void sortB PROTO((double *X, double *Y, int N)); 95 void sortD PROTO((double *X, double *Y, double *Z, int N)); 96 int str_to_dtime PROTO((char *line, double *second)); 97 int str_to_radec PROTO((double *ra, double *dec, char *str1, char *str2)); 98 int str_to_time PROTO((char *line, unsigned int *second)); 99 void update PROTO((Image *image, int Nimage, Group *sgroup, int Nsgroup)); 100 void update_catalog PROTO((Catalog *catalog, Group *sgroup, int warn)); 101 void wcatalog PROTO((Catalog *catalog)); 102 void wimages PROTO((Image *image, int Nimage)); -
trunk/Ohana/src/uniphot/src/dumpresult.c
r2492 r4797 1 1 # include "uniphot.h" 2 2 3 dumpresult () {3 void dumpresult () { 4 4 short Mcal, Mgrp, Mset; 5 5 FILE *f; -
trunk/Ohana/src/uniphot/src/misc.c
r2492 r4797 1 # include "uniphot.h" 1 2 2 3 void sort (unsigned int *X, int N) { -
trunk/Ohana/src/uniphot/src/plotstuff.c
r2492 r4797 11 11 } 12 12 13 typedef struct {14 double xmin, xmax, ymin, ymax;15 int style, ptype, ltype, etype, color;16 double lweight, size;17 } Graphdata;18 19 13 int open_graph (int N) { 20 21 # ifdef ANSI22 # define F_SETFL 423 # define O_NONBLOCK 020000024 # define AF_UNIX 125 # define SOCK_STREAM 126 #define ENOENT 2 /* No such file or directory */27 # endif /* ANSI */28 14 29 15 int i, InitSocket, status, addreslen; -
trunk/Ohana/src/uniphot/src/uniphot.c
r2492 r4797 3 3 int main (int argc, char **argv) { 4 4 5 int i, j,Nimage, Ntgroup, Nsgroup;5 int i, Nimage, Ntgroup, Nsgroup; 6 6 Group *tgroup, *sgroup; 7 7 Image *image; -
trunk/Ohana/src/uniphot/src/update_catalog.c
r2492 r4797 1 1 # include "uniphot.h" 2 2 3 update_catalog (Catalog *catalog, Group *sgroup, int warn) {3 void update_catalog (Catalog *catalog, Group *sgroup, int warn) { 4 4 5 5 int i, j, m, found; -
trunk/Ohana/src/uniphot/src/wcatalog.c
r2492 r4797 1 1 # include "uniphot.h" 2 2 3 wcatalog (Catalog *catalog) {3 void wcatalog (Catalog *catalog) { 4 4 5 5 /** write out catalog, free memory **/ -
trunk/Ohana/src/uniphot/src/wimages.c
r2492 r4797 1 1 # include "uniphot.h" 2 2 3 wimages (Image *image, int Nimage) {3 void wimages (Image *image, int Nimage) { 4 4 5 5 int status, mode;
Note:
See TracChangeset
for help on using the changeset viewer.
