- Timestamp:
- Jan 24, 2021, 3:39:06 PM (5 years ago)
- Location:
- trunk/Ohana/src/addstar
- Files:
-
- 7 edited
-
include/addstar.h (modified) (1 diff)
-
src/ConfigInit.c (modified) (1 diff)
-
src/LoadStars.c (modified) (3 diffs)
-
src/MatchHeaders.c (modified) (1 diff)
-
src/addstar.c (modified) (2 diffs)
-
src/args.c (modified) (2 diffs)
-
src/args_parallel_client.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/addstar.h
r40526 r41475 341 341 void resort_catalog_galphot (Catalog *catalog); 342 342 343 void GetConfig (char *config, char *field, char *format, int N, void *ptr); 344 343 345 /** 344 346 there is an inconsistency to be resolved: fixed structures (like Image) -
trunk/Ohana/src/addstar/src/ConfigInit.c
r39457 r41475 1 1 # include "addstar.h" 2 3 void GetConfig (char *config, char *field, char *format, int N, void *ptr);4 2 5 3 AddstarClientOptions ConfigInit (int *argc, char **argv) { -
trunk/Ohana/src/addstar/src/LoadStars.c
r40804 r41475 3 3 Catalog *LoadStars (char *filename, Image **images, off_t *Nimages, AddstarClientOptions *options) { 4 4 5 off_t *extsize;6 5 int i, Nfile, mode; 7 6 … … 38 37 off_t NimagesStart = *Nimages; 39 38 Catalog *newcat = NULL; 39 off_t *extsize = NULL; 40 40 41 41 // load PMM data if specified (these are not stored as FITS-tables) … … 47 47 // otherwise, we have FITS-table files: parse their headers to determine the contents 48 48 headers = LoadHeaders (f, &mode, &Nheaders); 49 if (Nheaders == 0) { 50 fprintf (stderr, "ERROR: no FITS headers in %s, is it a FITS file?\n", file[i].filename); 51 goto next_file; 52 } 53 49 54 headerSets = MatchHeaders (&extsize, &NheaderSets, mode, headers, Nheaders); 50 55 if (headerSets == NULL) { -
trunk/Ohana/src/addstar/src/MatchHeaders.c
r38553 r41475 21 21 char extname[80], exttype[80], exthead[80], xtension[80]; 22 22 HeaderSet *headerSets; 23 24 if (!Nheaders) return NULL; 23 25 24 26 ALLOCATE (extsize[0], off_t, Nheaders); -
trunk/Ohana/src/addstar/src/addstar.c
r40526 r41475 1 1 # include "addstar.h" 2 void help (void); 2 3 3 4 # define RESETTIME { gettimeofday (&startTimer, (void *) NULL); } … … 21 22 22 23 INITTIME; 24 25 /* check for help request */ 26 if (get_argument (argc, argv, "-h" )) help(); 27 if (get_argument (argc, argv, "-help" )) help(); 28 if (get_argument (argc, argv, "--help")) help(); 23 29 24 30 SetSignals (); -
trunk/Ohana/src/addstar/src/args.c
r40526 r41475 1 1 # include "addstar.h" 2 staticvoid help (void);2 void help (void); 3 3 4 4 AddstarClientOptions args (int argc, char **argv, AddstarClientOptions options) { … … 430 430 } 431 431 432 static void help () {432 void help (void) { 433 433 434 434 fprintf (stderr, "USAGE\n"); -
trunk/Ohana/src/addstar/src/args_parallel_client.c
r38441 r41475 106 106 } 107 107 108 static void help ( ) {108 static void help (void) { 109 109 110 110 fprintf (stderr, "USAGE\n");
Note:
See TracChangeset
for help on using the changeset viewer.
