Changeset 7780
- Timestamp:
- Jun 30, 2006, 7:14:09 PM (20 years ago)
- Location:
- trunk/Ohana/src/addstar
- Files:
-
- 6 edited
-
Makefile (modified) (1 diff)
-
include/2mass.h (modified) (1 diff)
-
src/get2mass_ops.c (modified) (1 diff)
-
src/load2mass.c (modified) (2 diffs)
-
src/load2mass_as_rawdata.c (modified) (5 diffs)
-
src/load2mass_catalog.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/Makefile
r7742 r7780 38 38 $(SRC)/get2mass.$(ARCH).o \ 39 39 $(SRC)/get2mass_as.$(ARCH).o \ 40 $(SRC)/get2mass_ops.$(ARCH).o \ 40 41 $(SRC)/get2mass_as_raw.$(ARCH).o \ 41 42 $(SRC)/get2mass_dr2.$(ARCH).o \ -
trunk/Ohana/src/addstar/include/2mass.h
r7742 r7780 36 36 int get2mass_3star (Stars *star, char *line, int Nmax); 37 37 int load2mass_catalog (Catalog *catalog, Stars *stars, int Nstars); 38 39 int get2mass_setup (int photcode); 40 int get2mass_coords (char *line, double *R, double *D, int Nmax); -
trunk/Ohana/src/addstar/src/get2mass_ops.c
r7691 r7780 15 15 FilterSkip = TimeSkip = Qentry = 0; 16 16 Photcode = photcode; 17 if (photcode == -1) return TRUE; 17 18 18 19 if (photcode == TM_J) { -
trunk/Ohana/src/addstar/src/load2mass.c
r7691 r7780 5 5 6 6 char *path; 7 int i , N, Nrefcat;7 int i; 8 8 SkyTable *sky, *sky2mass; 9 9 AddstarClientOptions options; … … 23 23 24 24 for (i = 0; i < sky2mass[0].Nregions; i++) { 25 fprintf (stderr, "loading %s\n", sky [0].filename[i]);25 fprintf (stderr, "loading %s\n", sky2mass[0].filename[i]); 26 26 load2mass_as_rawdata (sky, sky2mass[0].filename[i], options); 27 27 } -
trunk/Ohana/src/addstar/src/load2mass_as_rawdata.c
r7742 r7780 6 6 */ 7 7 8 /* read in chunks of ~ 16MB */8 /* read in chunks of ~64MB */ 9 9 # define NBYTE 0x4000000 10 10 # define NBREC 330 11 # define DEBUG 111 # define DEBUG 0 12 12 13 13 int load2mass_as_rawdata (SkyTable *skytable, char *filename, AddstarClientOptions options) { … … 22 22 char *buffer, *p, *q; 23 23 24 Stars *stars , **subset;24 Stars *stars; 25 25 TMStars *tstars; 26 26 SkyList *skylist; … … 28 28 Catalog catalog; 29 29 30 get2mass_setup ( options.photcode);30 get2mass_setup (-1); 31 31 32 32 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; … … 136 136 tstars[j].flag = TRUE; 137 137 138 Nstars ++; 139 CHECK_REALLOCATE (stars, Stars, NSTARS, Nstars, 3000); 138 Nstars += 3; 139 if (Nstars >= NSTARS - 3) { 140 NSTARS += 3000; 141 REALLOCATE (stars, Stars, NSTARS); 142 } 140 143 } 141 144 if (!Nstars) { … … 155 158 // assume no input star matches an existing star 156 159 // simply add to the existing table 157 load2mass_catalog ( catalog, stars, Nstars);160 load2mass_catalog (&catalog, stars, Nstars); 158 161 159 162 wcatalog (&catalog); -
trunk/Ohana/src/addstar/src/load2mass_catalog.c
r7742 r7780 2 2 3 3 int load2mass_catalog (Catalog *catalog, Stars *stars, int Nstars) { 4 5 int i, j, Nsec, Nmeas, Nave, NMEAS, NAVE; 4 6 5 7 Nsec = GetPhotcodeNsecfilt ();
Note:
See TracChangeset
for help on using the changeset viewer.
