Changeset 38539
- Timestamp:
- Jun 24, 2015, 5:32:30 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150616/Ohana/src/addstar
- Files:
-
- 3 edited
-
Makefile (modified) (1 diff)
-
src/LoadFilenames.c (modified) (3 diffs)
-
src/loadgalphot_readstars.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150616/Ohana/src/addstar/Makefile
r38525 r38539 37 37 mkcmf : $(BIN)/mkcmf.$(ARCH) 38 38 39 all: addstar addstar_client sedstar load2mass load galphot loadstarpar loadstarpar_client loadICRF loadICRF_client skycells mkcmf loadwise loadtycho loadsupercos dumpskycells findskycell40 41 INSTALL = addstar addstar_client sedstar load2mass load galphot loadstarpar loadstarpar_client loadICRF loadICRF_client skycells mkcmf loadwise loadtycho loadsupercos dumpskycells findskycell39 all: addstar addstar_client sedstar load2mass loadstarpar loadstarpar_client loadICRF loadICRF_client skycells mkcmf loadwise loadtycho loadsupercos dumpskycells findskycell 40 41 INSTALL = addstar addstar_client sedstar load2mass loadstarpar loadstarpar_client loadICRF loadICRF_client skycells mkcmf loadwise loadtycho loadsupercos dumpskycells findskycell 42 42 43 43 # I need to fix the client/server version of addstar now that I have dropped Stars -
branches/eam_branches/ipp-20150616/Ohana/src/addstar/src/LoadFilenames.c
r38522 r38539 3 3 AddstarFile *LoadFilenames (int *nfile, char *filename, AddstarClientOptions *options) { 4 4 5 int i, Nfile, NFILE;5 int i, n, Nfile, NFILE; 6 6 glob_t globList; 7 7 AddstarFile *file; … … 16 16 } 17 17 18 Nfile = 0; 18 19 NFILE = 10; 19 20 ALLOCATE (file, AddstarFile, NFILE); 20 21 for (i = 0; (scan_line (f, line) != EOF); i++) { 21 22 // find first non-whitespace char & skip commented lines 22 for ( i = 0; OHANA_WHITESPACE (line[i]); i++);23 if (line[ i] == '#') continue;24 if (line[ i] == 0) continue;23 for (n = 0; OHANA_WHITESPACE (line[n]); n++); 24 if (line[n] == '#') continue; 25 if (line[n] == 0) continue; 25 26 26 27 // file lines may have: … … 39 40 exit (3); 40 41 } 41 file[ i].filename = strcreate (word1);42 file[ i].imagename = filebasename (word2);42 file[Nfile].filename = strcreate (word1); 43 file[Nfile].imagename = filebasename (word2); 43 44 } else { 44 file[ i].filename = strcreate (word1);45 file[ i].imagename = filebasename (word1);45 file[Nfile].filename = strcreate (word1); 46 file[Nfile].imagename = filebasename (word1); 46 47 } 47 CHECK_REALLOCATE (file, AddstarFile, NFILE, i, 10); 48 ohana_memcheck (TRUE); 49 fprintf (stderr, "file: %s = %s\n", file[Nfile].filename, file[Nfile].imagename); 50 Nfile ++; 51 CHECK_REALLOCATE (file, AddstarFile, NFILE, Nfile, 10); 48 52 } 49 53 fclose (f); 50 Nfile = i;51 54 } else { 52 55 // parse the filename as a glob -
branches/eam_branches/ipp-20150616/Ohana/src/addstar/src/loadgalphot_readstars.c
r38518 r38539 280 280 // validate the square dimensions?? 281 281 282 int Nx = nearbyint((MajorMax - MajorMin) / MajorDel) + 1; 283 int Ny = nearbyint((MinorMax - MinorMin) / MinorDel) + 1; 282 // int Nx = nearbyint((MajorMax - MajorMin) / MajorDel) + 1; 283 // int Ny = nearbyint((MinorMax - MinorMin) / MinorDel) + 1; 284 285 int Nx = lrint((MajorMax - MajorMin) / MajorDel) + 1; 286 int Ny = lrint((MinorMax - MinorMin) / MinorDel) + 1; 287 284 288 myAssert (Nx*Ny == Npts, "inconsistent grid"); 285 289
Note:
See TracChangeset
for help on using the changeset viewer.
