Changeset 38617
- Timestamp:
- Jul 22, 2015, 5:52:34 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150625/Ohana/src/uniphot
- Files:
-
- 29 edited
-
Makefile (modified) (5 diffs)
-
include/ckids.h (modified) (1 diff)
-
include/setastrom.h (modified) (1 diff)
-
include/setgalmodel.h (modified) (1 diff)
-
src/Shutdown.c (modified) (1 diff)
-
src/ckids.c (modified) (1 diff)
-
src/ckids_client.c (modified) (1 diff)
-
src/fiximids.c (modified) (1 diff)
-
src/fiximids_client.c (modified) (1 diff)
-
src/fixstkids.c (modified) (1 diff)
-
src/fixstkids_client.c (modified) (1 diff)
-
src/setastrom.c (modified) (1 diff)
-
src/setastrom_client.c (modified) (1 diff)
-
src/setfwhm.c (modified) (1 diff)
-
src/setgalmodel.c (modified) (1 diff)
-
src/setgalmodel_client.c (modified) (1 diff)
-
src/setphot.c (modified) (2 diffs)
-
src/setphot_client.c (modified) (1 diff)
-
src/setposangle.c (modified) (1 diff)
-
src/setposangle_client.c (modified) (1 diff)
-
src/uniphot.c (modified) (1 diff)
-
src/update_dvo_ckids.c (modified) (1 diff)
-
src/update_dvo_fiximids.c (modified) (1 diff)
-
src/update_dvo_fixstkids.c (modified) (1 diff)
-
src/update_dvo_setastrom.c (modified) (1 diff)
-
src/update_dvo_setgalmodel.c (modified) (1 diff)
-
src/update_dvo_setphot.c (modified) (1 diff)
-
src/update_dvo_setposangle.c (modified) (1 diff)
-
src/update_dvo_uniphot.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/Makefile
r38464 r38617 78 78 $(SRC)/update_catalog_setphot.$(ARCH).o \ 79 79 $(SRC)/initialize_setphot_client.$(ARCH).o \ 80 $(SRC)/SetSignals.$(ARCH).o \ 81 $(SRC)/Shutdown.$(ARCH).o \ 80 82 $(SRC)/ImageSubset.$(ARCH).o 81 83 … … 136 138 $(SRC)/repair_tycho_setastrom.$(ARCH).o \ 137 139 $(SRC)/astrom_correction.$(ARCH).o \ 140 $(SRC)/SetSignals.$(ARCH).o \ 141 $(SRC)/Shutdown.$(ARCH).o \ 138 142 $(SRC)/initialize_setastrom.$(ARCH).o 139 143 … … 158 162 $(SRC)/update_catalog_setgalmodel.$(ARCH).o \ 159 163 $(SRC)/galmodel_correction.$(ARCH).o \ 164 $(SRC)/SetSignals.$(ARCH).o \ 165 $(SRC)/Shutdown.$(ARCH).o \ 160 166 $(SRC)/initialize_setgalmodel.$(ARCH).o 161 167 … … 234 240 $(SRC)/initialize_ckids.$(ARCH).o \ 235 241 $(SRC)/update_dvo_ckids.$(ARCH).o \ 242 $(SRC)/SetSignals.$(ARCH).o \ 243 $(SRC)/Shutdown.$(ARCH).o \ 236 244 $(SRC)/update_catalog_ckids.$(ARCH).o 237 245 … … 243 251 $(SRC)/initialize_ckids.$(ARCH).o \ 244 252 $(SRC)/update_dvo_ckids.$(ARCH).o \ 253 $(SRC)/SetSignals.$(ARCH).o \ 254 $(SRC)/Shutdown.$(ARCH).o \ 245 255 $(SRC)/update_catalog_ckids.$(ARCH).o 246 256 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/include/ckids.h
r38592 r38617 34 34 35 35 void update_catalog_ckids PROTO((Catalog *catalog, FILE *foutput)); 36 37 int Shutdown PROTO((char *format, ...) OHANA_FORMAT(printf, 1, 2) ); 38 void TrapSignal PROTO((int sig)); 39 void SetProtect PROTO((int mode)); 40 int SetSignals PROTO((void)); 41 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/include/setastrom.h
r38592 r38617 72 72 int args_setastrom_client PROTO((int argc, char **argv)); 73 73 74 //int Shutdown PROTO((char *format, ...) OHANA_FORMAT(printf, 1, 2) );75 //void TrapSignal PROTO((int sig));76 //void SetProtect PROTO((int mode));77 //int SetSignals PROTO((void));74 int Shutdown PROTO((char *format, ...) OHANA_FORMAT(printf, 1, 2) ); 75 void TrapSignal PROTO((int sig)); 76 void SetProtect PROTO((int mode)); 77 int SetSignals PROTO((void)); 78 78 79 79 int update_dvo_setastrom PROTO((void)); -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/include/setgalmodel.h
r38592 r38617 34 34 int args_setgalmodel_client PROTO((int argc, char **argv)); 35 35 36 //int Shutdown PROTO((char *format, ...) OHANA_FORMAT(printf, 1, 2) );37 //void TrapSignal PROTO((int sig));38 //void SetProtect PROTO((int mode));39 //int SetSignals PROTO((void));36 int Shutdown PROTO((char *format, ...) OHANA_FORMAT(printf, 1, 2) ); 37 void TrapSignal PROTO((int sig)); 38 void SetProtect PROTO((int mode)); 39 int SetSignals PROTO((void)); 40 40 41 41 int update_dvo_setgalmodel PROTO((void)); -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/Shutdown.c
r27790 r38617 21 21 va_end (argp); 22 22 23 SetProtect (TRUE);24 gfits_db_close (db);25 23 fprintf (stderr, "ERROR: halted\n"); 26 24 exit (1); -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/ckids.c
r35764 r38617 6 6 7 7 /* get configuration info, args, lockfile */ 8 SetSignals (); 8 9 initialize_ckids (argc, argv); 9 10 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/ckids_client.c
r35764 r38617 12 12 13 13 // get configuration info, args, lockfile (set CATDIR, HOST_ID, HOSTDIR, IMAGES) 14 SetSignals (); 14 15 initialize_ckids_client (argc, argv); 15 16 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/fiximids.c
r38441 r38617 8 8 9 9 /* get configuration info, args, lockfile */ 10 SetSignals (); 10 11 initialize_fiximids (argc, argv); 11 12 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/fiximids_client.c
r35764 r38617 13 13 14 14 // get configuration info, args, lockfile (set CATDIR, HOST_ID, HOSTDIR, IMAGES) 15 SetSignals (); 15 16 initialize_fiximids_client (argc, argv); 16 17 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/fixstkids.c
r38441 r38617 8 8 9 9 /* get configuration info, args, lockfile */ 10 SetSignals (); 10 11 initialize_fixstkids (argc, argv); 11 12 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/fixstkids_client.c
r35764 r38617 13 13 14 14 // get configuration info, args, lockfile (set CATDIR, HOST_ID, HOSTDIR, IMAGES) 15 SetSignals (); 15 16 initialize_fixstkids_client (argc, argv); 16 17 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/setastrom.c
r38464 r38617 6 6 7 7 /* get configuration info, args, lockfile */ 8 SetSignals (); 8 9 initialize_setastrom (argc, argv); 9 10 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/setastrom_client.c
r38596 r38617 13 13 14 14 // get configuration info, args, lockfile (set CATDIR, HOST_ID, HOSTDIR, IMAGES) 15 SetSignals (); 15 16 initialize_setastrom_client (argc, argv); 16 17 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/setfwhm.c
r38441 r38617 10 10 11 11 /* get configuration info, args, lockfile */ 12 SetSignals (); 12 13 initialize_setfwhm (argc, argv); 13 14 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/setgalmodel.c
r37807 r38617 6 6 7 7 /* get configuration info, args, lockfile */ 8 SetSignals (); 8 9 initialize_setgalmodel (argc, argv); 9 10 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/setgalmodel_client.c
r37807 r38617 13 13 14 14 // get configuration info, args, lockfile (set CATDIR, HOST_ID, HOSTDIR, IMAGES) 15 SetSignals (); 15 16 initialize_setgalmodel_client (argc, argv); 16 17 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/setphot.c
r38464 r38617 11 11 12 12 /* get configuration info, args, lockfile */ 13 SetSignals (); 13 14 initialize_setphot (argc, argv); 14 15 … … 50 51 // write image table (even if some remote clients failed) 51 52 if (UPDATE) { 53 SetProtect (TRUE); 52 54 dvo_image_save (&db, VERBOSE); 55 SetProtect (FALSE); 53 56 } 54 57 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/setphot_client.c
r33654 r38617 13 13 14 14 // get configuration info, args, lockfile (set CATDIR, HOST_ID, HOSTDIR, IMAGES) 15 SetSignals (); 15 16 initialize_setphot_client (argc, argv); 16 17 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/setposangle.c
r38441 r38617 8 8 9 9 /* get configuration info, args, lockfile */ 10 SetSignals (); 10 11 initialize_setposangle (argc, argv); 11 12 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/setposangle_client.c
r34749 r38617 13 13 14 14 // get configuration info, args, lockfile (set CATDIR, HOST_ID, HOSTDIR, IMAGES) 15 SetSignals (); 15 16 initialize_setposangle_client (argc, argv); 16 17 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/uniphot.c
r38441 r38617 16 16 17 17 /* get configuration info, args, lockfile */ 18 SetSignals (); 18 19 initialize_uniphot (argc, argv); 19 20 -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_ckids.c
r38471 r38617 69 69 if (VERBOSE) fprintf (stderr, "saving catalog %s\n", catalog.filename); 70 70 71 dvo_catalog_save (&catalog, VERBOSE); 72 dvo_catalog_unlock (&catalog); 71 SetProtect (TRUE); 72 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 73 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 74 SetProtect (FALSE); 73 75 dvo_catalog_free (&catalog); 74 76 } -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_fiximids.c
r38471 r38617 64 64 if (VERBOSE) fprintf (stderr, "saving catalog %s\n", catalog.filename); 65 65 66 dvo_catalog_save (&catalog, VERBOSE); 67 dvo_catalog_unlock (&catalog); 66 SetProtect (TRUE); 67 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 68 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 69 SetProtect (FALSE); 68 70 dvo_catalog_free (&catalog); 69 71 } -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_fixstkids.c
r38471 r38617 64 64 if (VERBOSE) fprintf (stderr, "saving catalog %s\n", catalog.filename); 65 65 66 dvo_catalog_save (&catalog, VERBOSE); 67 dvo_catalog_unlock (&catalog); 66 SetProtect (TRUE); 67 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 68 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 69 SetProtect (FALSE); 68 70 dvo_catalog_free (&catalog); 69 71 } -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setastrom.c
r38596 r38617 74 74 if (VERBOSE) fprintf (stderr, "saving catalog %s\n", catalog.filename); 75 75 76 dvo_catalog_save (&catalog, VERBOSE); 77 dvo_catalog_unlock (&catalog); 76 SetProtect (TRUE); 77 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 78 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 79 SetProtect (FALSE); 78 80 dvo_catalog_free (&catalog); 79 81 } -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setgalmodel.c
r38471 r38617 66 66 if (VERBOSE) fprintf (stderr, "saving catalog %s\n", catalog.filename); 67 67 68 dvo_catalog_save (&catalog, VERBOSE); 69 dvo_catalog_unlock (&catalog); 68 SetProtect (TRUE); 69 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 70 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 71 SetProtect (FALSE); 70 72 dvo_catalog_free (&catalog); 71 73 } -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setphot.c
r38615 r38617 77 77 if (VERBOSE) fprintf (stderr, "saving catalog %s\n", catalog.filename); 78 78 79 dvo_catalog_save (&catalog, VERBOSE); 80 dvo_catalog_unlock (&catalog); 79 SetProtect (TRUE); 80 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 81 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 82 SetProtect (FALSE); 81 83 dvo_catalog_free (&catalog); 82 84 } -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setposangle.c
r38471 r38617 78 78 if (VERBOSE) fprintf (stderr, "saving catalog %s\n", catalog.filename); 79 79 80 dvo_catalog_save (&catalog, VERBOSE); 81 dvo_catalog_unlock (&catalog); 80 SetProtect (TRUE); 81 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 82 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 83 SetProtect (FALSE); 82 84 dvo_catalog_free (&catalog); 83 85 } -
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_uniphot.c
r38471 r38617 101 101 fprintf (stderr, "catalog: %s sgroup: %d %s %f\n", catalog.filename, Nmin, sgroup[Nmin].label, Rmin); 102 102 update_catalog_uniphot (&catalog, &sgroup[Nmin], (Rmin > 2*RADIUS)); 103 dvo_catalog_save (&catalog, VERBOSE); 104 dvo_catalog_unlock (&catalog); 103 SetProtect (TRUE); 104 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 105 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 106 SetProtect (FALSE); 105 107 dvo_catalog_free (&catalog); 106 108 }
Note:
See TracChangeset
for help on using the changeset viewer.
