Changeset 5320
- Timestamp:
- Oct 13, 2005, 2:37:39 PM (21 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 38 edited
-
delstar/src/gcatalog.c (modified) (1 diff)
-
gastro/src/gptolemy.c (modified) (1 diff)
-
gastro2/src/gptolemy2.c (modified) (1 diff)
-
libdvo/include/dvo.h (modified) (3 diffs)
-
libdvo/src/dvo_catalog.c (modified) (2 diffs)
-
libdvo/src/dvo_catalog_mef.c (modified) (5 diffs)
-
libdvo/src/dvo_catalog_raw.c (modified) (6 diffs)
-
libdvo/src/dvo_catalog_split.c (modified) (6 diffs)
-
misc/src/applyscat.c (modified) (1 diff)
-
mosastro/src/gptolemy.c (modified) (1 diff)
-
opihi/dvo/avextract.c (modified) (1 diff)
-
opihi/dvo/calextract.c (modified) (1 diff)
-
opihi/dvo/calmextract.c (modified) (1 diff)
-
opihi/dvo/catalog.c (modified) (1 diff)
-
opihi/dvo/ccd.c (modified) (1 diff)
-
opihi/dvo/cmatch.c (modified) (1 diff)
-
opihi/dvo/cmd.c (modified) (1 diff)
-
opihi/dvo/ddmags.c (modified) (1 diff)
-
opihi/dvo/dmagaves.c (modified) (1 diff)
-
opihi/dvo/dmagmeas.c (modified) (1 diff)
-
opihi/dvo/dmags.c (modified) (1 diff)
-
opihi/dvo/dmt.c (modified) (1 diff)
-
opihi/dvo/extract.c (modified) (1 diff)
-
opihi/dvo/fitcolors.c (modified) (1 diff)
-
opihi/dvo/gstar.c (modified) (1 diff)
-
opihi/dvo/imdata.c (modified) (1 diff)
-
opihi/dvo/lcurve.c (modified) (1 diff)
-
opihi/dvo/lightcurve.c (modified) (1 diff)
-
opihi/dvo/mextract.c (modified) (1 diff)
-
opihi/dvo/pmeasure.c (modified) (1 diff)
-
opihi/dvo/subpix.c (modified) (1 diff)
-
opihi/include/data.h (modified) (2 diffs)
-
opihi/lib.data/Makefile (modified) (1 diff)
-
relphot/src/gcatalog.c (modified) (1 diff)
-
uniphot/include/uniphot.h (modified) (1 diff)
-
uniphot/src/gcatalog.c (modified) (2 diffs)
-
uniphot/src/update.c (modified) (1 diff)
-
uniphot/src/update_catalog.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/delstar/src/gcatalog.c
r5014 r5320 9 9 10 10 /* read catalog header */ 11 mode= LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;12 if (!load_catalog (catalog, mode,VERBOSE)) {11 catalog[0].catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 12 if (!load_catalog (catalog, VERBOSE)) { 13 13 fprintf (stderr, "ERROR: failure loading catalog\n"); 14 14 exit (1); -
trunk/Ohana/src/gastro/src/gptolemy.c
r5014 r5320 25 25 26 26 /* CATMODE and CATFORMAT determined from catalog */ 27 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS, FALSE)) { 27 catalog.catflags = LOAD_AVES | LOAD_MEAS; 28 if (!load_catalog (&catalog, FALSE)) { 28 29 fprintf (stderr, "can't load catalog data\n"); 29 30 return (FALSE); -
trunk/Ohana/src/gastro2/src/gptolemy2.c
r5014 r5320 27 27 28 28 /* CATMODE and CATFORMAT determined from catalog */ 29 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS, FALSE)) { 29 catalog.catflags = LOAD_AVES | LOAD_MEAS; 30 if (!load_catalog (&catalog, FALSE)) { 30 31 fprintf (stderr, "can't load catalog data %s\n", filename); 31 32 return ((GSCdata *)NULL); -
trunk/Ohana/src/libdvo/include/dvo.h
r5241 r5320 145 145 int catmode; /* storage mode (raw, mef, split, mysql) */ 146 146 int catformat; /* storage format (elixir, panstarrs, etc) */ 147 int catflags; /* choices to be loaded */ 147 148 int sorted; /* is measure table average-sorted? */ 148 149 … … 181 182 int lock_catalog (Catalog *catalog, int lockmode); 182 183 int unlock_catalog (Catalog *catalog); 183 int load_catalog (Catalog *catalog, char mode,int VERBOSE);184 int load_catalog (Catalog *catalog, int VERBOSE); 184 185 int save_catalog (Catalog *catalog, char VERBOSE); 185 186 int update_catalog (Catalog *catalog, char VERBOSE); … … 292 293 int SecFiltToFtable (FTable *ftable, SecFilt *secfilt, int Nsecfilt, int format); 293 294 294 int load_catalog_raw (Catalog *catalog, char mode,int VERBOSE);295 int load_catalog_raw (Catalog *catalog, int VERBOSE); 295 296 int save_catalog_raw (Catalog *catalog, char VERBOSE); 296 int load_catalog_mef (Catalog *catalog, char mode,int VERBOSE);297 int load_catalog_mef (Catalog *catalog, int VERBOSE); 297 298 int save_catalog_mef (Catalog *catalog, char VERBOSE); 298 int load_catalog_split (Catalog *catalog, char mode,int VERBOSE);299 int load_catalog_split (Catalog *catalog, int VERBOSE); 299 300 int save_catalog_split (Catalog *catalog, char VERBOSE); 300 301 int update_catalog_split (Catalog *catalog, char VERBOSE); -
trunk/Ohana/src/libdvo/src/dvo_catalog.c
r5241 r5320 35 35 } 36 36 37 int load_catalog (Catalog *catalog, char mode,int VERBOSE) {37 int load_catalog (Catalog *catalog, int VERBOSE) { 38 38 39 39 int Naxis, split; … … 63 63 case DVO_MODE_RAW: 64 64 if (VERBOSE) fprintf (stderr, "reading catalog (mode DVO_MODE_RAW)\n"); 65 load_catalog_raw (catalog, mode,VERBOSE);65 load_catalog_raw (catalog, VERBOSE); 66 66 break; 67 67 case DVO_MODE_MEF: 68 68 if (VERBOSE) fprintf (stderr, "reading catalog (mode DVO_MODE_MEF)\n"); 69 load_catalog_mef (catalog, mode,VERBOSE);69 load_catalog_mef (catalog, VERBOSE); 70 70 break; 71 71 case DVO_MODE_SPLIT: 72 72 if (VERBOSE) fprintf (stderr, "reading catalog (mode DVO_MODE_SPLIT)\n"); 73 load_catalog_split (catalog, mode,VERBOSE);73 load_catalog_split (catalog, VERBOSE); 74 74 break; 75 75 default: -
trunk/Ohana/src/libdvo/src/dvo_catalog_mef.c
r5241 r5320 1 1 # include <dvo.h> 2 2 3 int load_catalog_mef (Catalog *catalog, char mode,int VERBOSE) {3 int load_catalog_mef (Catalog *catalog, int VERBOSE) { 4 4 5 5 int Nitems, Nbytes, Nexpect, Naverage, Nmeasure, Nmissing, Nsecfilt; … … 39 39 } 40 40 /* read Average table data (or skip) */ 41 if ( mode& LOAD_AVES) {41 if (catalog[0].catflags & LOAD_AVES) { 42 42 if (!fits_fread_ftable_data (f, &ftable)) { 43 43 if (VERBOSE) fprintf (stderr, "can't read table average data"); … … 61 61 } 62 62 /* read Measure table data */ 63 if ( mode& LOAD_MEAS) {63 if (catalog[0].catflags & LOAD_MEAS) { 64 64 if (!fits_fread_ftable_data (f, &ftable)) { 65 65 if (VERBOSE) fprintf (stderr, "can't read table measure data"); … … 81 81 } 82 82 /* read Missing table data */ 83 if ( mode& LOAD_MISS) {83 if (catalog[0].catflags & LOAD_MISS) { 84 84 if (!fits_fread_ftable_data (f, &ftable)) { 85 85 if (VERBOSE) fprintf (stderr, "can't read table missing data"); … … 105 105 } 106 106 /* read secfilt table data */ 107 if ( mode& LOAD_SECF) {107 if (catalog[0].catflags & LOAD_SECF) { 108 108 if (!fits_fread_ftable_data (f, &ftable)) { 109 109 if (VERBOSE) fprintf (stderr, "can't read table secfilt data"); -
trunk/Ohana/src/libdvo/src/dvo_catalog_raw.c
r5241 r5320 3 3 /* read data from raw-style catalog file; set data format values based on file */ 4 4 5 int load_catalog_raw (Catalog *catalog, char mode,int VERBOSE) {5 int load_catalog_raw (Catalog *catalog, int VERBOSE) { 6 6 7 7 int Nitems, nitems; … … 113 113 114 114 /* read and convert the averages (use a macro to clean this up?) */ 115 if ( mode& LOAD_AVES) {115 if (catalog[0].catflags & LOAD_AVES) { 116 116 catalog[0].average = ReadRawAverage (catalog[0].f, catalog[0].Naverage, catalog[0].catformat); 117 117 } else { … … 122 122 123 123 /* read and convert the measures (use a macro to clean this up?) */ 124 if ( mode& LOAD_MEAS) {124 if (catalog[0].catflags & LOAD_MEAS) { 125 125 catalog[0].measure = ReadRawMeasure (catalog[0].f, catalog[0].Nmeasure, catalog[0].catformat); 126 126 } else { … … 131 131 132 132 /* read and convert missing */ 133 if ( mode& LOAD_MISS) {133 if (catalog[0].catflags & LOAD_MISS) { 134 134 ALLOCATE (catalog[0].missing, Missing, MAX (catalog[0].Nmissing, 1)); 135 135 Nitems = catalog[0].Nmissing; … … 147 147 148 148 /* read and convert secfilt */ 149 if ( mode& LOAD_SECF) {149 if (catalog[0].catflags & LOAD_SECF) { 150 150 Nitems = catalog[0].Naverage * catalog[0].Nsecfilt; 151 151 catalog[0].secfilt = ReadRawSecFilt (catalog[0].f, Nitems, catalog[0].catformat); … … 160 160 161 161 /* check data integrity */ 162 if ( mode& LOAD_AVES) {162 if (catalog[0].catflags & LOAD_AVES) { 163 163 for (i = Nmeas = Nmiss = 0; i < catalog[0].Naverage; i++) { 164 164 Nmeas += catalog[0].average[i].Nm; -
trunk/Ohana/src/libdvo/src/dvo_catalog_split.c
r5241 r5320 1 1 # include <dvo.h> 2 2 3 int load_catalog_split (Catalog *catalog, char mode,int VERBOSE) {3 int load_catalog_split (Catalog *catalog, int VERBOSE) { 4 4 5 5 int Nitems, Nexpect, Naverage, Nmeasure, Nmissing, Nsecfilt; … … 36 36 /*** Average Table ***/ 37 37 38 if ( mode& LOAD_AVES) {38 if (catalog[0].catflags & LOAD_AVES) { 39 39 /* move pointer past header -- must be already read (load_catalog) */ 40 40 fseek (catalog[0].f, catalog[0].header.size, SEEK_SET); … … 66 66 67 67 /* (Full Load) */ 68 if ( mode& LOAD_MEAS) {68 if (catalog[0].catflags & LOAD_MEAS) { 69 69 ALLOCATE (measure, Catalog, 1); 70 70 … … 111 111 112 112 /* (Meta Load) */ 113 if ( mode& LOAD_MEAS_META) {113 if (catalog[0].catflags & LOAD_MEAS_META) { 114 114 ALLOCATE (measure, Catalog, 1); 115 115 … … 143 143 144 144 missing = NULL; 145 if ( mode& LOAD_MISS) {145 if (catalog[0].catflags & LOAD_MISS) { 146 146 ALLOCATE (missing, Catalog, 1); 147 147 … … 190 190 191 191 secfilt = NULL; 192 if ( mode& LOAD_SECF) {192 if (catalog[0].catflags & LOAD_SECF) { 193 193 ALLOCATE (secfilt, Catalog, 1); 194 194 -
trunk/Ohana/src/misc/src/applyscat.c
r4844 r5320 2 2 # include <dvo.h> 3 3 # define BYTES_STAR 66 4 5 typedef struct {6 double X;7 double Y;8 double M;9 } Stars;10 4 11 5 int main (int argc, char **argv) { -
trunk/Ohana/src/mosastro/src/gptolemy.c
r5014 r5320 20 20 21 21 /* CATMODE and CATFORMAT determined from catalog */ 22 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS, FALSE)) { 22 catalog.catflags = LOAD_AVES | LOAD_MEAS; 23 if (!load_catalog (&catalog, FALSE)) { 23 24 fprintf (stderr, "can't load catalog data %s\n", filename); 24 25 *NSTARS = Nstars; -
trunk/Ohana/src/opihi/dvo/avextract.c
r5014 r5320 67 67 continue; 68 68 } 69 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, FALSE)) { 69 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 70 if (!load_catalog (&catalog, FALSE)) { 70 71 unlock_catalog (&catalog); 71 72 continue; -
trunk/Ohana/src/opihi/dvo/calextract.c
r5014 r5320 73 73 continue; 74 74 } 75 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, FALSE)) { 75 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 76 if (!load_catalog (&catalog, FALSE)) { 76 77 unlock_catalog (&catalog); 77 78 continue; -
trunk/Ohana/src/opihi/dvo/calmextract.c
r5014 r5320 86 86 continue; 87 87 } 88 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, FALSE)) { 88 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 89 if (!load_catalog (&catalog, FALSE)) { 89 90 unlock_catalog (&catalog); 90 91 continue; -
trunk/Ohana/src/opihi/dvo/catalog.c
r5014 r5320 321 321 continue; 322 322 } 323 if (!load_catalog (&catalog, LOAD_AVES, TRUE)) { 323 catalog.catflags = LOAD_AVES; 324 if (!load_catalog (&catalog, TRUE)) { 324 325 unlock_catalog (&catalog); 325 326 continue; -
trunk/Ohana/src/opihi/dvo/ccd.c
r5014 r5320 70 70 continue; 71 71 } 72 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, FALSE)) { 72 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 73 if (!load_catalog (&catalog, FALSE)) { 73 74 unlock_catalog (&catalog); 74 75 continue; -
trunk/Ohana/src/opihi/dvo/cmatch.c
r5014 r5320 40 40 return (FALSE); 41 41 } 42 if (!load_catalog (&catalog1, LOAD_AVES | LOAD_MEAS | LOAD_SECF, TRUE)) { 42 catalog1.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 43 if (!load_catalog (&catalog1, TRUE)) { 43 44 unlock_catalog (&catalog1); 44 45 return (FALSE); -
trunk/Ohana/src/opihi/dvo/cmd.c
r5014 r5320 68 68 continue; 69 69 } 70 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, FALSE)) { 70 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 71 if (!load_catalog (&catalog, FALSE)) { 71 72 unlock_catalog (&catalog); 72 73 continue; -
trunk/Ohana/src/opihi/dvo/ddmags.c
r5014 r5320 70 70 continue; 71 71 } 72 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, FALSE)) { 72 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 73 if (!load_catalog (&catalog, FALSE)) { 73 74 unlock_catalog (&catalog); 74 75 continue; -
trunk/Ohana/src/opihi/dvo/dmagaves.c
r5014 r5320 62 62 continue; 63 63 } 64 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, FALSE)) { 64 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 65 if (!load_catalog (&catalog, FALSE)) { 65 66 unlock_catalog (&catalog); 66 67 continue; -
trunk/Ohana/src/opihi/dvo/dmagmeas.c
r5014 r5320 70 70 continue; 71 71 } 72 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, FALSE)) { 72 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 73 if (!load_catalog (&catalog, FALSE)) { 73 74 unlock_catalog (&catalog); 74 75 continue; -
trunk/Ohana/src/opihi/dvo/dmags.c
r5014 r5320 68 68 continue; 69 69 } 70 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, FALSE)) { 70 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 71 if (!load_catalog (&catalog, FALSE)) { 71 72 unlock_catalog (&catalog); 72 73 continue; -
trunk/Ohana/src/opihi/dvo/dmt.c
r5014 r5320 77 77 continue; 78 78 } 79 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, TRUE)) { 79 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 80 if (!load_catalog (&catalog, TRUE)) { 80 81 unlock_catalog (&catalog); 81 82 continue; -
trunk/Ohana/src/opihi/dvo/extract.c
r5014 r5320 264 264 continue; 265 265 } 266 if (!load_catalog (&catalog, loadmode, TRUE)) { 266 catalog.catflags = loadmode; 267 if (!load_catalog (&catalog, TRUE)) { 267 268 unlock_catalog (&catalog); 268 269 continue; -
trunk/Ohana/src/opihi/dvo/fitcolors.c
r5014 r5320 112 112 continue; 113 113 } 114 if (!load_catalog (&catalog[k], LOAD_AVES | LOAD_MEAS | LOAD_SECF, TRUE)) { 114 catalog[k].catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 115 if (!load_catalog (&catalog[k], TRUE)) { 115 116 catalog[k].Naverage = 0; 116 117 unlock_catalog (&catalog[k]); -
trunk/Ohana/src/opihi/dvo/gstar.c
r5014 r5320 68 68 return (FALSE); 69 69 } 70 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, TRUE)) { 70 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 71 if (!load_catalog (&catalog, TRUE)) { 71 72 unlock_catalog (&catalog); 72 73 return (FALSE); -
trunk/Ohana/src/opihi/dvo/imdata.c
r5014 r5320 122 122 continue; 123 123 } 124 if (!load_catalog (&catalog, LOAD_AVES, TRUE)) { 124 catalog.catflags = LOAD_AVES; 125 if (!load_catalog (&catalog, TRUE)) { 125 126 unlock_catalog (&catalog); 126 127 continue; -
trunk/Ohana/src/opihi/dvo/lcurve.c
r5014 r5320 88 88 return (FALSE); 89 89 } 90 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS, TRUE)) { 90 catalog.catflags = LOAD_AVES | LOAD_MEAS; 91 if (!load_catalog (&catalog, TRUE)) { 91 92 unlock_catalog (&catalog); 92 93 return (FALSE); -
trunk/Ohana/src/opihi/dvo/lightcurve.c
r5014 r5320 65 65 return (FALSE); 66 66 } 67 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, TRUE)) { 67 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 68 if (!load_catalog (&catalog, TRUE)) { 68 69 unlock_catalog (&catalog); 69 70 return (FALSE); -
trunk/Ohana/src/opihi/dvo/mextract.c
r5014 r5320 69 69 continue; 70 70 } 71 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, FALSE)) { 71 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 72 if (!load_catalog (&catalog, FALSE)) { 72 73 unlock_catalog (&catalog); 73 74 continue; -
trunk/Ohana/src/opihi/dvo/pmeasure.c
r5014 r5320 103 103 continue; 104 104 } 105 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS, TRUE)) { 105 catalog.catflags = LOAD_AVES | LOAD_MEAS; 106 if (!load_catalog (&catalog, TRUE)) { 106 107 unlock_catalog (&catalog); 107 108 continue; -
trunk/Ohana/src/opihi/dvo/subpix.c
r5014 r5320 50 50 return (FALSE); 51 51 } 52 if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS, TRUE)) { 52 catalog.catflags = LOAD_AVES | LOAD_MEAS; 53 if (!load_catalog (&catalog, TRUE)) { 53 54 unlock_catalog (&catalog); 54 55 return (FALSE); -
trunk/Ohana/src/opihi/include/data.h
r4704 r5320 7 7 # ifndef DATA_H 8 8 # define DATA_H 9 10 /* socket / pipe communication buffer */11 typedef struct {12 char *buffer;13 int Nalloc;14 int Nreset;15 int Nblock;16 int Nbuffer;17 } IOBuffer;18 9 19 10 /*** typedef structs used by math functions ***/ … … 26 17 27 18 void InitData (); 28 29 /* IOBuffersOps.c */30 int InitIOBuffer (IOBuffer *buffer, int Nalloc);31 int FlushIOBuffer (IOBuffer *buffer);32 int ReadtoIOBuffer (IOBuffer *buffer, int fd);33 int EmptyIOBuffer (IOBuffer *buffer, int Nmax, int fd);34 void FreeIOBuffer (IOBuffer *buffer);35 19 36 20 /* in queues.c */ -
trunk/Ohana/src/opihi/lib.data/Makefile
r5242 r5320 37 37 $(SDIR)/open_image.$(ARCH).o \ 38 38 $(SDIR)/queues.$(ARCH).o \ 39 $(SDIR)/IOBufferOps.$(ARCH).o \40 39 $(SDIR)/PlotVectors.$(ARCH).o 41 40 -
trunk/Ohana/src/relphot/src/gcatalog.c
r5014 r5320 6 6 7 7 if (FINAL) { 8 mode= LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;8 catalog[0].catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 9 9 } else { 10 mode= LOAD_AVES | LOAD_MEAS | LOAD_SECF;10 catalog[0].catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 11 11 } 12 12 13 13 /* CATMODE and CATFORMAT determined from catalog */ 14 14 15 if (!load_catalog (catalog, mode,VERBOSE)) {15 if (!load_catalog (catalog, VERBOSE)) { 16 16 fprintf (stderr, "ERROR: failure loading catalog %s\n", catalog[0].filename); 17 17 exit (1); -
trunk/Ohana/src/uniphot/include/uniphot.h
r5014 r5320 90 90 void sortB PROTO((double *X, double *Y, int N)); 91 91 void sortD PROTO((double *X, double *Y, double *Z, int N)); 92 void update_ catalogPROTO((Catalog *catalog, Group *sgroup, int warn));92 void update_dvo_catalog PROTO((Catalog *catalog, Group *sgroup, int warn)); 93 93 void wcatalog PROTO((Catalog *catalog)); 94 94 void wimages PROTO((Image *image, int Nimage)); -
trunk/Ohana/src/uniphot/src/gcatalog.c
r5014 r5320 3 3 int gcatalog (Catalog *catalog) { 4 4 5 int mode; 6 7 mode = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 5 catalog[0].catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 8 6 9 7 /* CATMODE and CATFORMAT determined from catalog */ … … 14 12 exit (1); 15 13 case 1: 16 if (!load_catalog (catalog, mode,VERBOSE)) {14 if (!load_catalog (catalog, VERBOSE)) { 17 15 fprintf (stderr, "ERROR: failure loading catalog %s\n", catalog[0].filename); 18 16 exit (1); -
trunk/Ohana/src/uniphot/src/update.c
r5014 r5320 69 69 70 70 fprintf (stderr, "catalog: %s sgroup: %d %s %f\n", catalog.filename, Nmin, sgroup[Nmin].label, Rmin); 71 update_ catalog (&catalog, &sgroup[Nmin], (Rmin > 2*RADIUS));71 update_dvo_catalog (&catalog, &sgroup[Nmin], (Rmin > 2*RADIUS)); 72 72 wcatalog (&catalog); 73 73 } -
trunk/Ohana/src/uniphot/src/update_catalog.c
r4865 r5320 1 1 # include "uniphot.h" 2 2 3 void update_ catalog (Catalog *catalog, Group *sgroup, int warn) {3 void update_dvo_catalog (Catalog *catalog, Group *sgroup, int warn) { 4 4 5 5 int i, j, m, found;
Note:
See TracChangeset
for help on using the changeset viewer.
