IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38521


Ignore:
Timestamp:
Jun 23, 2015, 8:49:32 AM (11 years ago)
Author:
eugene
Message:

ff and diff work

Location:
branches/eam_branches/ipp-20150616/Ohana/src/addstar
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150616/Ohana/src/addstar/Makefile

    r38518 r38521  
    3737mkcmf        : $(BIN)/mkcmf.$(ARCH)
    3838
    39 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
     39all: addstar addstar_client sedstar load2mass loadgalphot loadstarpar loadstarpar_client loadICRF loadICRF_client skycells mkcmf loadwise loadtycho loadsupercos dumpskycells findskycell
     40
     41INSTALL = addstar addstar_client sedstar load2mass loadgalphot loadstarpar loadstarpar_client loadICRF loadICRF_client skycells mkcmf loadwise loadtycho loadsupercos dumpskycells findskycell
    4242
    4343# 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/LoadStars.c

    r38501 r38521  
    55  off_t *extsize;
    66  int i, Nfile, NFILE, mode;
    7   char **file, line[1024];
     7  char **file, line[4096];
    88  FILE *f;
    99  glob_t globList;
     
    2020    NFILE = 10;
    2121    ALLOCATE (file, char *, NFILE);
    22     for (i = 0; (fscanf (f, "%s", line) != EOF); i++) {
    23       // filename limited to 1024 chars
     22    for (i = 0; (scan_line (f, line) != EOF); i++) {
     23      // find first non-whitespace char & skip commented lines
     24      for (i = 0; OHANA_WHITESPACE (line[i]); i++);
     25      if (line[i] == '#') continue;
     26      if (line[i] == 0) continue;
     27
     28      // file lines may have:
     29      // filename
     30      // filename = nebname
     31      // filename limited to 4096 chars
     32      Nfield = sscanf (line, "%s %s %s", word1, sep, word2);
     33      if ((Nfield != 1) && (Nfield != 3)) {
     34        fprintf (stderr, "invalid *line: %s
     35      }
     36
    2437      fprintf (stderr, "file: %s\n", line);
    2538      file[i] = strcreate (line);
Note: See TracChangeset for help on using the changeset viewer.