Changeset 16057
- Timestamp:
- Jan 14, 2008, 1:46:57 PM (18 years ago)
- Location:
- trunk/Ohana/src/libdvo
- Files:
-
- 4 edited
-
include/dvo.h (modified) (2 diffs)
-
src/dvo_catalog.c (modified) (1 diff)
-
src/dvo_catalog_split.c (modified) (5 diffs)
-
src/skyregion_gsc.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/include/dvo.h
r16040 r16057 335 335 void dvo_catalog_create (SkyRegion *region, Catalog *catalog); 336 336 void dvo_catalog_free (Catalog *catalog); 337 void dvo_catalog_free_data (Catalog *catalog); 337 338 int dvo_catalog_check (Catalog *catalog, int Nsecfilt, int extend); 338 339 int dvo_catalog_lock (Catalog *catalog, int lockmode); … … 354 355 int dvo_catalog_save_split (Catalog *catalog, char VERBOSE); 355 356 int dvo_catalog_update_split (Catalog *catalog, char VERBOSE); 357 358 int dvo_catalog_load_segment (Catalog *catalog, int VERBOSE, int start, int Nrows); 359 int dvo_catalog_load_segment_split (Catalog *catalog, int VERBOSE, int start, int Nrows); 356 360 357 361 /*** conversion functions / I/O conversions ***/ -
trunk/Ohana/src/libdvo/src/dvo_catalog.c
r15747 r16057 396 396 397 397 int dvo_catalog_load_segment (Catalog *catalog, int VERBOSE, int start, int Nrows) { 398 399 int Naxis, split, status;400 char measure[80];401 398 402 399 switch (catalog[0].catmode) { -
trunk/Ohana/src/libdvo/src/dvo_catalog_split.c
r15748 r16057 40 40 *mySecfilt = secfilt; 41 41 *myNsecfilt = Nsecfilt; 42 return (TRUE); 42 43 } 43 44 … … 157 158 int dvo_catalog_load_split (Catalog *catalog, int VERBOSE) { 158 159 159 int Nbytes, Nitems, N expect, Naverage, Nmeasure, Nmissing, Nsecfilt, status;160 int Nbytes, Nitems, Naverage, Nmeasure, Nmissing, Nsecfilt, status; 160 161 Header header; 161 162 FTable ftable; … … 328 329 int dvo_catalog_load_segment_split (Catalog *catalog, int VERBOSE, int start, int Nrows) { 329 330 330 int Nbytes, Naverage, N secfilt, Nexpect, Nitems, Nmeasure, Nmissing;331 int Nbytes, Naverage, Nexpect, Nitems, Nmeasure, Nmissing; 331 332 Header header; 332 333 FTable ftable; … … 469 470 470 471 int Nitems; 471 Matrix matrix;472 472 Header header; 473 473 FTable ftable; 474 Catalog *catfile;475 474 SecFilt *primary, *secfilt; 476 int i, j, Nsecfilt, Nallfilt, Ntotal;475 int Nsecfilt; 477 476 int Naves_disk_new, Nmeas_disk_new, Nmiss_disk_new, Nsecf_disk_new; 478 477 int first, start, Nrows; … … 650 649 int dvo_catalog_update_split (Catalog *catalog, char VERBOSE) { 651 650 652 int i, Nx, Ny, Nlines; 653 int Nitems, Nskip, Nout, Ndisk, Nstart; 654 Matrix matrix; 651 int Nitems; 655 652 Header header; 656 653 FTable ftable; 657 Catalog *catfile;658 654 SecFilt *primary, *secfilt; 659 int j, Nsecfilt, Nallfilt, Ntotal;655 int Nsecfilt; 660 656 int Naves_disk_new, Nmeas_disk_new, Nmiss_disk_new, Nsecf_disk_new; 661 657 int first, start, Nrows; -
trunk/Ohana/src/libdvo/src/skyregion_gsc.c
r16040 r16057 212 212 filename = table[0].filename; 213 213 214 # define SWAPFUNC(A,B){ int tmp; \ 215 char *tempfile = filename[A]; filename[A] = filename[B]; filename[B] = tempfile; \ 214 # define SWAPFUNC(A,B){ \ 215 if (table[0].filename) { \ 216 char *tempfile = filename[A]; filename[A] = filename[B]; filename[B] = tempfile; \ 217 } \ 216 218 SkyRegion tempregion = regions[A]; regions[A] = regions[B]; regions[B] = tempregion; \ 217 219 }
Note:
See TracChangeset
for help on using the changeset viewer.
