Changeset 17419
- Timestamp:
- Apr 9, 2008, 12:15:16 PM (18 years ago)
- Files:
-
- 54 edited
-
branches/ipp-2-5/Ohana/src/addstar/src/parse_time.c (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/kapa2/include/buttons.h (modified) (2 diffs)
-
branches/ipp-2-5/Ohana/src/libdvo/Makefile (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/libdvo/include/dvo.h (modified) (2 diffs)
-
branches/ipp-2-5/Ohana/src/libdvo/src/coordops.c (modified) (5 diffs)
-
branches/ipp-2-5/Ohana/src/libdvo/src/dvo_catalog_split.c (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/opihi/cmd.astro/coord_systems.c (modified) (2 diffs)
-
branches/ipp-2-5/Ohana/src/opihi/cmd.data/book_commands.c (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/opihi/cmd.data/vzload.c (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/opihi/dvo/dbExtractMeasures.c (modified) (5 diffs)
-
branches/ipp-2-5/Ohana/src/opihi/include/astro.h (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/opihi/include/basic.h (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/opihi/include/data.h (modified) (2 diffs)
-
branches/ipp-2-5/Ohana/src/opihi/include/dvoshell.h (modified) (2 diffs)
-
branches/ipp-2-5/Ohana/src/opihi/include/mana.h (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/opihi/include/pantasks.h (modified) (3 diffs)
-
branches/ipp-2-5/Ohana/src/opihi/include/pclient.h (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/opihi/include/pcontrol.h (modified) (3 diffs)
-
branches/ipp-2-5/Ohana/src/opihi/include/shell.h (modified) (3 diffs)
-
branches/ipp-2-5/Ohana/src/opihi/lib.data/page.c (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/opihi/lib.shell/VariableOps.c (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/opihi/lib.shell/gprint.c (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/opihi/pantasks/JobIDOps.c (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/opihi/pclient/init.c (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/relastro/src/UpdateObjects.c (modified) (1 diff)
-
branches/ipp-2-5/Ohana/src/relastro/src/fitpoly.c (modified) (2 diffs)
-
branches/ipp-2-5/Ohana/src/relphot/include/relphot.h (modified) (1 diff)
-
trunk/Ohana/src/addstar/src/parse_time.c (modified) (1 diff)
-
trunk/Ohana/src/kapa2/include/buttons.h (modified) (2 diffs)
-
trunk/Ohana/src/libdvo/Makefile (modified) (1 diff)
-
trunk/Ohana/src/libdvo/include/dvo.h (modified) (2 diffs)
-
trunk/Ohana/src/libdvo/src/coordops.c (modified) (5 diffs)
-
trunk/Ohana/src/libdvo/src/dvo_catalog_split.c (modified) (1 diff)
-
trunk/Ohana/src/opihi/cmd.astro/coord_systems.c (modified) (2 diffs)
-
trunk/Ohana/src/opihi/cmd.data/book_commands.c (modified) (1 diff)
-
trunk/Ohana/src/opihi/cmd.data/vzload.c (modified) (1 diff)
-
trunk/Ohana/src/opihi/dvo/dbExtractMeasures.c (modified) (5 diffs)
-
trunk/Ohana/src/opihi/include/astro.h (modified) (1 diff)
-
trunk/Ohana/src/opihi/include/basic.h (modified) (1 diff)
-
trunk/Ohana/src/opihi/include/data.h (modified) (2 diffs)
-
trunk/Ohana/src/opihi/include/dvoshell.h (modified) (2 diffs)
-
trunk/Ohana/src/opihi/include/mana.h (modified) (1 diff)
-
trunk/Ohana/src/opihi/include/pantasks.h (modified) (3 diffs)
-
trunk/Ohana/src/opihi/include/pclient.h (modified) (1 diff)
-
trunk/Ohana/src/opihi/include/pcontrol.h (modified) (3 diffs)
-
trunk/Ohana/src/opihi/include/shell.h (modified) (3 diffs)
-
trunk/Ohana/src/opihi/lib.data/page.c (modified) (1 diff)
-
trunk/Ohana/src/opihi/lib.shell/VariableOps.c (modified) (1 diff)
-
trunk/Ohana/src/opihi/lib.shell/gprint.c (modified) (1 diff)
-
trunk/Ohana/src/opihi/pantasks/JobIDOps.c (modified) (1 diff)
-
trunk/Ohana/src/opihi/pclient/init.c (modified) (1 diff)
-
trunk/Ohana/src/relastro/src/UpdateObjects.c (modified) (1 diff)
-
trunk/Ohana/src/relastro/src/fitpoly.c (modified) (2 diffs)
-
trunk/Ohana/src/relphot/include/relphot.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/ipp-2-5/Ohana/src/addstar/src/parse_time.c
r10937 r17419 58 58 /* parse mode line */ 59 59 uppercase (DateMode); 60 for (Ny = 0, c = strchr (DateMode, 'Y'); c != (char ) NULL; c = strchr (c + 1, 'Y'), Ny++);60 for (Ny = 0, c = strchr (DateMode, 'Y'); c != (char *) NULL; c = strchr (c + 1, 'Y'), Ny++); 61 61 if ((Ny != 2) && (Ny != 4)) { 62 62 fprintf (stderr, "error in DATE-MODE format: %s\n", DateMode); -
branches/ipp-2-5/Ohana/src/kapa2/include/buttons.h
r16810 r17419 121 121 #define flipx_width 25 122 122 #define flipx_height 25 123 static unsignedchar flipx_bits[] = {123 static char flipx_bits[] = { 124 124 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 125 125 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x01, 0x00, 0x80, 0x10, 0x02, 0x00, … … 133 133 #define flipy_width 25 134 134 #define flipy_height 25 135 static unsignedchar flipy_bits[] = {135 static char flipy_bits[] = { 136 136 0x00, 0x10, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 137 137 0x00, 0x82, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x80, 0x00, 0x02, 0x00, -
branches/ipp-2-5/Ohana/src/libdvo/Makefile
r17190 r17419 30 30 $(DESTINC)/panstarrs_dev_1_defs.h \ 31 31 $(DESTINC)/ps1_dev_1_defs.h \ 32 $(DESTINC)/ps1_dev_2_defs.h 32 $(DESTINC)/ps1_dev_2_defs.h \ 33 $(DESTINC)/ps1_dev_3_defs.h 33 34 34 35 INCS = $(DEFS) $(DESTINC)/dvo.h $(DESTINC)/autocode.h -
branches/ipp-2-5/Ohana/src/libdvo/include/dvo.h
r17245 r17419 34 34 PROJ_SIN, // zenithal 35 35 PROJ_TAN, // zenithal 36 PROJ_TNX, // zenithal 36 37 PROJ_DIS, // zenithal (TAN + polyterms) 37 38 PROJ_LIN, // cartesian … … 404 405 # include "ps1_dev_1_defs.h" 405 406 # include "ps1_dev_2_defs.h" 407 # include "ps1_dev_3_defs.h" 406 408 407 409 /*** DVO image db I/O Functions ***/ -
branches/ipp-2-5/Ohana/src/libdvo/src/coordops.c
r16980 r17419 82 82 switch (proj) { 83 83 case PROJ_TAN: 84 case PROJ_TNX: 84 85 case PROJ_DIS: 85 86 // R = cot (theta) = cos(theta) / sin(theta) … … 225 226 switch (proj) { 226 227 case PROJ_TAN: 228 case PROJ_TNX: 227 229 case PROJ_DIS: 228 230 // R = cot (theta) = cos(theta) / sin(theta) … … 697 699 if (!strcmp(&ctype[0], "MM")) return PROJ_SIN; // note ctype[0] 698 700 if (!strcmp(&ctype[4], "-TAN")) return PROJ_TAN; 701 if (!strcmp(&ctype[4], "-TNX")) return PROJ_TNX; 699 702 if (!strcmp(&ctype[4], "-DIS")) return PROJ_DIS; 700 703 if (!strcmp(&ctype[4], "-LIN")) return PROJ_LIN; … … 716 719 case PROJ_SIN: strcpy(&ctype[4], "-SIN"); return TRUE; 717 720 case PROJ_TAN: strcpy(&ctype[4], "-TAN"); return TRUE; 721 case PROJ_TNX: strcpy(&ctype[4], "-TNX"); return TRUE; 718 722 case PROJ_DIS: strcpy(&ctype[4], "-DIS"); return TRUE; 719 723 case PROJ_LIN: strcpy(&ctype[4], "-LIN"); return TRUE; … … 736 740 case PROJ_SIN: 737 741 case PROJ_TAN: 742 case PROJ_TNX: 738 743 case PROJ_DIS: 739 744 return PROJ_MODE_ZENITHAL; -
branches/ipp-2-5/Ohana/src/libdvo/src/dvo_catalog_split.c
r17245 r17419 849 849 int dvo_catalog_update_split (Catalog *catalog, char VERBOSE) { 850 850 851 int Nitems;852 851 Header header; 853 852 FTable ftable; -
branches/ipp-2-5/Ohana/src/opihi/cmd.astro/coord_systems.c
r16935 r17419 56 56 transform->isIdentity = TRUE; 57 57 break; 58 default: 59 abort(); 58 60 } 59 61 case COORD_GALACTIC: … … 72 74 case COORD_ECLIPTIC: 73 75 return NULL; 76 default: 77 abort(); 74 78 } 79 default: 80 abort(); 75 81 } 76 82 -
branches/ipp-2-5/Ohana/src/opihi/cmd.data/book_commands.c
r16631 r17419 380 380 int book_shuffle (int argc, char **argv) { 381 381 382 int where, N; 383 char *varName, *keyName, *keyValue; 384 Book *book; 385 Page *page; 382 Book *book; 386 383 387 384 if (argc != 2) { -
branches/ipp-2-5/Ohana/src/opihi/cmd.data/vzload.c
r17123 r17419 6 6 int kapa, type; 7 7 char *name; 8 double dx, dy, size; 9 double min, range, MAX_OUTPUT_SIZE; 8 double size, min, range, MAX_OUTPUT_SIZE; 10 9 KiiOverlay *overlay; 11 10 Vector *vecx, *vecy, *vecz; -
branches/ipp-2-5/Ohana/src/opihi/dvo/dbExtractMeasures.c
r17254 r17419 76 76 double ra, dec, x, y, dT; 77 77 78 Image *image;79 78 Coords *mosaic; 80 79 PhotCode *equiv; … … 132 131 break; 133 132 } 134 Nsec = GetPhotcodeNsec (equiv );133 Nsec = GetPhotcodeNsec (equiv->code); 135 134 if (Nsec == -1) break; 136 135 value = secfilt[Nsec].Ncode; … … 141 140 break; 142 141 } 143 Nsec = GetPhotcodeNsec (equiv );142 Nsec = GetPhotcodeNsec (equiv->code); 144 143 if (Nsec == -1) break; 145 144 value = secfilt[Nsec].Nused; … … 317 316 value = measure[0].Xccd; 318 317 # else 319 ra = average[0].R - measure[0].dR / 3600.0; 320 dec = average[0].D - measure[0].dD / 3600.0; 321 image = MatchImage (measure[0].t, measure[0].photcode); 322 if (image == NULL) break; 323 RD_to_XY (&x, &y, ra, dec, &image[0].coords); 324 value = x; 318 { 319 Image *image; 320 ra = average[0].R - measure[0].dR / 3600.0; 321 dec = average[0].D - measure[0].dD / 3600.0; 322 image = MatchImage (measure[0].t, measure[0].photcode); 323 if (image == NULL) break; 324 RD_to_XY (&x, &y, ra, dec, &image[0].coords); 325 value = x; 326 } 325 327 # endif 326 328 break; … … 330 332 value = measure[0].Yccd; 331 333 # else 332 ra = average[0].R - measure[0].dR / 3600.0; 333 dec = average[0].D - measure[0].dD / 3600.0; 334 image = MatchImage (measure[0].t, measure[0].photcode); 335 if (image == NULL) break; 336 RD_to_XY (&x, &y, ra, dec, &image[0].coords); 337 value = y; 334 { 335 Image *image; 336 ra = average[0].R - measure[0].dR / 3600.0; 337 dec = average[0].D - measure[0].dD / 3600.0; 338 image = MatchImage (measure[0].t, measure[0].photcode); 339 if (image == NULL) break; 340 RD_to_XY (&x, &y, ra, dec, &image[0].coords); 341 value = y; 342 } 338 343 # endif 339 344 break; -
branches/ipp-2-5/Ohana/src/opihi/include/astro.h
r16935 r17419 10 10 11 11 void InitAstro (); 12 void FreeAstro (); 12 13 13 14 typedef struct { -
branches/ipp-2-5/Ohana/src/opihi/include/basic.h
r7892 r17419 5 5 void cleanup (); 6 6 void InitBasic (); 7 void FreeBasic (); 7 8 void InitBasic_PantasksClient (); -
branches/ipp-2-5/Ohana/src/opihi/include/data.h
r16631 r17419 34 34 35 35 void InitData (); 36 void FreeData (); 36 37 37 38 /* in book.c */ … … 153 154 int ibracket (int *list, int Nlist, int mode, double value); 154 155 156 void FreeKapa (); 157 void FreeQueues (); 158 void FreeBooks (); 159 155 160 # endif 156 -
branches/ipp-2-5/Ohana/src/opihi/include/dvoshell.h
r17199 r17419 188 188 int GetTimeSelection PROTO((time_t *tz, time_t *te)); 189 189 void InitDVO PROTO(()); 190 void FreeDVO PROTO(()); 190 191 int InitPhotcodes PROTO(()); 191 192 Image *LoadImages PROTO((int *Nimage)); … … 262 263 int dbExtractMeasuresInitMeas (); 263 264 265 int dbExtractAveragesInitTransform (CoordTransformSystem target); 266 int dbExtractAveragesInit (); 267 264 268 # endif -
branches/ipp-2-5/Ohana/src/opihi/include/mana.h
r4689 r17419 6 6 7 7 void InitMana (); 8 void FreeMana (); 8 9 int *findrowpeaks (float *row, int Nrow, float threshold, int *npeaks); 9 10 -
branches/ipp-2-5/Ohana/src/opihi/include/pantasks.h
r15797 r17419 162 162 163 163 void InitPantasks (); 164 void FreePantasks (); 165 164 166 void InitPantasksServer (); 167 void FreePantasksServer (); 168 165 169 void InitPantasksClient (); 170 void FreePantasksClient (); 171 166 172 void InitTasks (); 173 void FreeTasks (); 174 167 175 Task *NextTask (); 168 176 Task *FindTask (char *name); … … 187 195 188 196 int NextJobID (); 189 int InitJobIDs (); 197 void InitJobIDs (); 198 void FreeJobIDs (); 190 199 int FreeJobID (int ID); 191 200 192 201 void InitJobs (); 202 void FreeJobs (); 203 193 204 Job *NextJob (); 194 205 Job *FindJob (int JobID); … … 256 267 // functions related to the queue of input files 257 268 void InitInputs (); 269 void FreeInputs (); 258 270 void AddNewInput (char *input); 259 271 int DeleteInput (char *input); -
branches/ipp-2-5/Ohana/src/opihi/include/pclient.h
r4693 r17419 45 45 46 46 int InitChild (); 47 int FreeChild (); 47 48 int CheckChild (); 48 49 void CheckChildStatus (); 49 50 50 51 void InitPclient (); 52 void FreePclient (); 51 53 void gotsignal (int signum); 52 54 -
branches/ipp-2-5/Ohana/src/opihi/include/pcontrol.h
r16486 r17419 125 125 126 126 void InitPcontrol (); 127 void FreePcontrol (); 127 128 128 129 /*** StackOps.c ***/ 129 130 Stack *InitStack (); 131 void FreeStack (Stack *stack); 130 132 int PushStack (Stack *stack, int where, void *object, int id, char *name); 131 133 void *PullStackByLocation (Stack *stack, int where); … … 184 186 /*** HostOps.c ***/ 185 187 void InitHostStacks (); 188 void FreeHostStacks (); 186 189 Stack *GetHostStack (int StackID); 187 190 char *GetHostStackName (int StackID); … … 204 207 /*** JobOps.c ***/ 205 208 void InitJobStacks (); 209 void FreeJobStacks (); 206 210 Stack *GetJobStack (int StackID); 207 211 char *GetJobStackName (int StackID); -
branches/ipp-2-5/Ohana/src/opihi/include/shell.h
r16434 r17419 65 65 int opihi PROTO((int argc, char **argv)); 66 66 int multicommand PROTO((char *line)); 67 int getServer (); 67 68 void multicommand_InitServer PROTO((void)); 69 void multicommand_StopServer (); 70 68 71 int command PROTO((char *line, char **outline, int VERBOSE)); 69 72 char *expand_vars PROTO((char *line)); … … 111 114 112 115 int ConfigInit PROTO((int *argc, char **argv)); 116 void ConfigFree PROTO((void)); 113 117 char *VarConfig PROTO((char *keyword, char *mode, void *ptr)); 114 118 char *VarConfigEntry PROTO((char *keyword, char *mode, int entry, void *ptr)); … … 170 174 int DefineValidIP (); 171 175 176 void FreeCommands (); 177 void FreeMacros (); 178 void FreeBuffers (); 179 void FreeVectors (); 180 void FreeVariables (); 181 void FreeLists (); 182 172 183 # endif 173 -
branches/ipp-2-5/Ohana/src/opihi/lib.data/page.c
r16885 r17419 137 137 138 138 int i, N, *seq; 139 Page *page;140 139 141 140 N = book[0].Npages; -
branches/ipp-2-5/Ohana/src/opihi/lib.shell/VariableOps.c
r16892 r17419 142 142 143 143 int i; 144 char *local, * MacroName, *value;144 char *local, *value; 145 145 146 146 if (name == NULL) return (NULL); -
branches/ipp-2-5/Ohana/src/opihi/lib.shell/gprint.c
r17390 r17419 223 223 void gprintSetFile (gpStream *stream, gpDest dest, char *filename) { 224 224 225 int i, Nmatch;226 225 FILE *file; 227 226 -
branches/ipp-2-5/Ohana/src/opihi/pantasks/JobIDOps.c
r16450 r17419 5 5 static int JobIDPtr; 6 6 7 intInitJobIDs () {7 void InitJobIDs () { 8 8 9 9 JobIDPtr = 0; 10 10 ALLOCATE (JobIDList, char, MAX_N_JOBS); 11 11 bzero (JobIDList, MAX_N_JOBS*sizeof(char)); 12 return (TRUE);13 12 } 14 13 15 intFreeJobIDs () {14 void FreeJobIDs () { 16 15 free (JobIDList); 17 16 } -
branches/ipp-2-5/Ohana/src/opihi/pclient/init.c
r16455 r17419 1 # include " opihi.h"1 # include "pclient.h" 2 2 3 3 int job PROTO((int, char **)); -
branches/ipp-2-5/Ohana/src/relastro/src/UpdateObjects.c
r17211 r17419 47 47 int mode, Nave, Npm, Npar, Nskip; 48 48 double Tmin, Tmax; 49 float errorScale;50 49 float mag; 51 50 int mask; -
branches/ipp-2-5/Ohana/src/relastro/src/fitpoly.c
r16810 r17419 273 273 CoordFit *fit_apply_coords (CoordFit *fit, Coords *coords) { 274 274 275 double c11, c12;276 double c21, c22;277 275 double Xo, Yo, R1, R2; 278 276 CoordFit *modfit; … … 330 328 fit_free (modfit); 331 329 /* keep the order and type from initial values */ 332 } 333 330 331 // XXX if desired in the future, return modfit (and free above) 332 return (NULL); 333 } 334 -
branches/ipp-2-5/Ohana/src/relphot/include/relphot.h
r17242 r17419 214 214 void wimages PROTO(()); 215 215 void write_coords PROTO((Header *header, Coords *coords)); 216 int relphot_objects (); -
trunk/Ohana/src/addstar/src/parse_time.c
r10937 r17419 58 58 /* parse mode line */ 59 59 uppercase (DateMode); 60 for (Ny = 0, c = strchr (DateMode, 'Y'); c != (char ) NULL; c = strchr (c + 1, 'Y'), Ny++);60 for (Ny = 0, c = strchr (DateMode, 'Y'); c != (char *) NULL; c = strchr (c + 1, 'Y'), Ny++); 61 61 if ((Ny != 2) && (Ny != 4)) { 62 62 fprintf (stderr, "error in DATE-MODE format: %s\n", DateMode); -
trunk/Ohana/src/kapa2/include/buttons.h
r16810 r17419 121 121 #define flipx_width 25 122 122 #define flipx_height 25 123 static unsignedchar flipx_bits[] = {123 static char flipx_bits[] = { 124 124 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 125 125 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x01, 0x00, 0x80, 0x10, 0x02, 0x00, … … 133 133 #define flipy_width 25 134 134 #define flipy_height 25 135 static unsignedchar flipy_bits[] = {135 static char flipy_bits[] = { 136 136 0x00, 0x10, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 137 137 0x00, 0x82, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x80, 0x00, 0x02, 0x00, -
trunk/Ohana/src/libdvo/Makefile
r17190 r17419 30 30 $(DESTINC)/panstarrs_dev_1_defs.h \ 31 31 $(DESTINC)/ps1_dev_1_defs.h \ 32 $(DESTINC)/ps1_dev_2_defs.h 32 $(DESTINC)/ps1_dev_2_defs.h \ 33 $(DESTINC)/ps1_dev_3_defs.h 33 34 34 35 INCS = $(DEFS) $(DESTINC)/dvo.h $(DESTINC)/autocode.h -
trunk/Ohana/src/libdvo/include/dvo.h
r17245 r17419 34 34 PROJ_SIN, // zenithal 35 35 PROJ_TAN, // zenithal 36 PROJ_TNX, // zenithal 36 37 PROJ_DIS, // zenithal (TAN + polyterms) 37 38 PROJ_LIN, // cartesian … … 404 405 # include "ps1_dev_1_defs.h" 405 406 # include "ps1_dev_2_defs.h" 407 # include "ps1_dev_3_defs.h" 406 408 407 409 /*** DVO image db I/O Functions ***/ -
trunk/Ohana/src/libdvo/src/coordops.c
r16980 r17419 82 82 switch (proj) { 83 83 case PROJ_TAN: 84 case PROJ_TNX: 84 85 case PROJ_DIS: 85 86 // R = cot (theta) = cos(theta) / sin(theta) … … 225 226 switch (proj) { 226 227 case PROJ_TAN: 228 case PROJ_TNX: 227 229 case PROJ_DIS: 228 230 // R = cot (theta) = cos(theta) / sin(theta) … … 697 699 if (!strcmp(&ctype[0], "MM")) return PROJ_SIN; // note ctype[0] 698 700 if (!strcmp(&ctype[4], "-TAN")) return PROJ_TAN; 701 if (!strcmp(&ctype[4], "-TNX")) return PROJ_TNX; 699 702 if (!strcmp(&ctype[4], "-DIS")) return PROJ_DIS; 700 703 if (!strcmp(&ctype[4], "-LIN")) return PROJ_LIN; … … 716 719 case PROJ_SIN: strcpy(&ctype[4], "-SIN"); return TRUE; 717 720 case PROJ_TAN: strcpy(&ctype[4], "-TAN"); return TRUE; 721 case PROJ_TNX: strcpy(&ctype[4], "-TNX"); return TRUE; 718 722 case PROJ_DIS: strcpy(&ctype[4], "-DIS"); return TRUE; 719 723 case PROJ_LIN: strcpy(&ctype[4], "-LIN"); return TRUE; … … 736 740 case PROJ_SIN: 737 741 case PROJ_TAN: 742 case PROJ_TNX: 738 743 case PROJ_DIS: 739 744 return PROJ_MODE_ZENITHAL; -
trunk/Ohana/src/libdvo/src/dvo_catalog_split.c
r17245 r17419 849 849 int dvo_catalog_update_split (Catalog *catalog, char VERBOSE) { 850 850 851 int Nitems;852 851 Header header; 853 852 FTable ftable; -
trunk/Ohana/src/opihi/cmd.astro/coord_systems.c
r16935 r17419 56 56 transform->isIdentity = TRUE; 57 57 break; 58 default: 59 abort(); 58 60 } 59 61 case COORD_GALACTIC: … … 72 74 case COORD_ECLIPTIC: 73 75 return NULL; 76 default: 77 abort(); 74 78 } 79 default: 80 abort(); 75 81 } 76 82 -
trunk/Ohana/src/opihi/cmd.data/book_commands.c
r16631 r17419 380 380 int book_shuffle (int argc, char **argv) { 381 381 382 int where, N; 383 char *varName, *keyName, *keyValue; 384 Book *book; 385 Page *page; 382 Book *book; 386 383 387 384 if (argc != 2) { -
trunk/Ohana/src/opihi/cmd.data/vzload.c
r17123 r17419 6 6 int kapa, type; 7 7 char *name; 8 double dx, dy, size; 9 double min, range, MAX_OUTPUT_SIZE; 8 double size, min, range, MAX_OUTPUT_SIZE; 10 9 KiiOverlay *overlay; 11 10 Vector *vecx, *vecy, *vecz; -
trunk/Ohana/src/opihi/dvo/dbExtractMeasures.c
r17254 r17419 76 76 double ra, dec, x, y, dT; 77 77 78 Image *image;79 78 Coords *mosaic; 80 79 PhotCode *equiv; … … 132 131 break; 133 132 } 134 Nsec = GetPhotcodeNsec (equiv );133 Nsec = GetPhotcodeNsec (equiv->code); 135 134 if (Nsec == -1) break; 136 135 value = secfilt[Nsec].Ncode; … … 141 140 break; 142 141 } 143 Nsec = GetPhotcodeNsec (equiv );142 Nsec = GetPhotcodeNsec (equiv->code); 144 143 if (Nsec == -1) break; 145 144 value = secfilt[Nsec].Nused; … … 317 316 value = measure[0].Xccd; 318 317 # else 319 ra = average[0].R - measure[0].dR / 3600.0; 320 dec = average[0].D - measure[0].dD / 3600.0; 321 image = MatchImage (measure[0].t, measure[0].photcode); 322 if (image == NULL) break; 323 RD_to_XY (&x, &y, ra, dec, &image[0].coords); 324 value = x; 318 { 319 Image *image; 320 ra = average[0].R - measure[0].dR / 3600.0; 321 dec = average[0].D - measure[0].dD / 3600.0; 322 image = MatchImage (measure[0].t, measure[0].photcode); 323 if (image == NULL) break; 324 RD_to_XY (&x, &y, ra, dec, &image[0].coords); 325 value = x; 326 } 325 327 # endif 326 328 break; … … 330 332 value = measure[0].Yccd; 331 333 # else 332 ra = average[0].R - measure[0].dR / 3600.0; 333 dec = average[0].D - measure[0].dD / 3600.0; 334 image = MatchImage (measure[0].t, measure[0].photcode); 335 if (image == NULL) break; 336 RD_to_XY (&x, &y, ra, dec, &image[0].coords); 337 value = y; 334 { 335 Image *image; 336 ra = average[0].R - measure[0].dR / 3600.0; 337 dec = average[0].D - measure[0].dD / 3600.0; 338 image = MatchImage (measure[0].t, measure[0].photcode); 339 if (image == NULL) break; 340 RD_to_XY (&x, &y, ra, dec, &image[0].coords); 341 value = y; 342 } 338 343 # endif 339 344 break; -
trunk/Ohana/src/opihi/include/astro.h
r16935 r17419 10 10 11 11 void InitAstro (); 12 void FreeAstro (); 12 13 13 14 typedef struct { -
trunk/Ohana/src/opihi/include/basic.h
r7892 r17419 5 5 void cleanup (); 6 6 void InitBasic (); 7 void FreeBasic (); 7 8 void InitBasic_PantasksClient (); -
trunk/Ohana/src/opihi/include/data.h
r16631 r17419 34 34 35 35 void InitData (); 36 void FreeData (); 36 37 37 38 /* in book.c */ … … 153 154 int ibracket (int *list, int Nlist, int mode, double value); 154 155 156 void FreeKapa (); 157 void FreeQueues (); 158 void FreeBooks (); 159 155 160 # endif 156 -
trunk/Ohana/src/opihi/include/dvoshell.h
r17199 r17419 188 188 int GetTimeSelection PROTO((time_t *tz, time_t *te)); 189 189 void InitDVO PROTO(()); 190 void FreeDVO PROTO(()); 190 191 int InitPhotcodes PROTO(()); 191 192 Image *LoadImages PROTO((int *Nimage)); … … 262 263 int dbExtractMeasuresInitMeas (); 263 264 265 int dbExtractAveragesInitTransform (CoordTransformSystem target); 266 int dbExtractAveragesInit (); 267 264 268 # endif -
trunk/Ohana/src/opihi/include/mana.h
r4689 r17419 6 6 7 7 void InitMana (); 8 void FreeMana (); 8 9 int *findrowpeaks (float *row, int Nrow, float threshold, int *npeaks); 9 10 -
trunk/Ohana/src/opihi/include/pantasks.h
r15797 r17419 162 162 163 163 void InitPantasks (); 164 void FreePantasks (); 165 164 166 void InitPantasksServer (); 167 void FreePantasksServer (); 168 165 169 void InitPantasksClient (); 170 void FreePantasksClient (); 171 166 172 void InitTasks (); 173 void FreeTasks (); 174 167 175 Task *NextTask (); 168 176 Task *FindTask (char *name); … … 187 195 188 196 int NextJobID (); 189 int InitJobIDs (); 197 void InitJobIDs (); 198 void FreeJobIDs (); 190 199 int FreeJobID (int ID); 191 200 192 201 void InitJobs (); 202 void FreeJobs (); 203 193 204 Job *NextJob (); 194 205 Job *FindJob (int JobID); … … 256 267 // functions related to the queue of input files 257 268 void InitInputs (); 269 void FreeInputs (); 258 270 void AddNewInput (char *input); 259 271 int DeleteInput (char *input); -
trunk/Ohana/src/opihi/include/pclient.h
r4693 r17419 45 45 46 46 int InitChild (); 47 int FreeChild (); 47 48 int CheckChild (); 48 49 void CheckChildStatus (); 49 50 50 51 void InitPclient (); 52 void FreePclient (); 51 53 void gotsignal (int signum); 52 54 -
trunk/Ohana/src/opihi/include/pcontrol.h
r16486 r17419 125 125 126 126 void InitPcontrol (); 127 void FreePcontrol (); 127 128 128 129 /*** StackOps.c ***/ 129 130 Stack *InitStack (); 131 void FreeStack (Stack *stack); 130 132 int PushStack (Stack *stack, int where, void *object, int id, char *name); 131 133 void *PullStackByLocation (Stack *stack, int where); … … 184 186 /*** HostOps.c ***/ 185 187 void InitHostStacks (); 188 void FreeHostStacks (); 186 189 Stack *GetHostStack (int StackID); 187 190 char *GetHostStackName (int StackID); … … 204 207 /*** JobOps.c ***/ 205 208 void InitJobStacks (); 209 void FreeJobStacks (); 206 210 Stack *GetJobStack (int StackID); 207 211 char *GetJobStackName (int StackID); -
trunk/Ohana/src/opihi/include/shell.h
r16434 r17419 65 65 int opihi PROTO((int argc, char **argv)); 66 66 int multicommand PROTO((char *line)); 67 int getServer (); 67 68 void multicommand_InitServer PROTO((void)); 69 void multicommand_StopServer (); 70 68 71 int command PROTO((char *line, char **outline, int VERBOSE)); 69 72 char *expand_vars PROTO((char *line)); … … 111 114 112 115 int ConfigInit PROTO((int *argc, char **argv)); 116 void ConfigFree PROTO((void)); 113 117 char *VarConfig PROTO((char *keyword, char *mode, void *ptr)); 114 118 char *VarConfigEntry PROTO((char *keyword, char *mode, int entry, void *ptr)); … … 170 174 int DefineValidIP (); 171 175 176 void FreeCommands (); 177 void FreeMacros (); 178 void FreeBuffers (); 179 void FreeVectors (); 180 void FreeVariables (); 181 void FreeLists (); 182 172 183 # endif 173 -
trunk/Ohana/src/opihi/lib.data/page.c
r16885 r17419 137 137 138 138 int i, N, *seq; 139 Page *page;140 139 141 140 N = book[0].Npages; -
trunk/Ohana/src/opihi/lib.shell/VariableOps.c
r16892 r17419 142 142 143 143 int i; 144 char *local, * MacroName, *value;144 char *local, *value; 145 145 146 146 if (name == NULL) return (NULL); -
trunk/Ohana/src/opihi/lib.shell/gprint.c
r17390 r17419 223 223 void gprintSetFile (gpStream *stream, gpDest dest, char *filename) { 224 224 225 int i, Nmatch;226 225 FILE *file; 227 226 -
trunk/Ohana/src/opihi/pantasks/JobIDOps.c
r16450 r17419 5 5 static int JobIDPtr; 6 6 7 intInitJobIDs () {7 void InitJobIDs () { 8 8 9 9 JobIDPtr = 0; 10 10 ALLOCATE (JobIDList, char, MAX_N_JOBS); 11 11 bzero (JobIDList, MAX_N_JOBS*sizeof(char)); 12 return (TRUE);13 12 } 14 13 15 intFreeJobIDs () {14 void FreeJobIDs () { 16 15 free (JobIDList); 17 16 } -
trunk/Ohana/src/opihi/pclient/init.c
r16455 r17419 1 # include " opihi.h"1 # include "pclient.h" 2 2 3 3 int job PROTO((int, char **)); -
trunk/Ohana/src/relastro/src/UpdateObjects.c
r17211 r17419 47 47 int mode, Nave, Npm, Npar, Nskip; 48 48 double Tmin, Tmax; 49 float errorScale;50 49 float mag; 51 50 int mask; -
trunk/Ohana/src/relastro/src/fitpoly.c
r16810 r17419 273 273 CoordFit *fit_apply_coords (CoordFit *fit, Coords *coords) { 274 274 275 double c11, c12;276 double c21, c22;277 275 double Xo, Yo, R1, R2; 278 276 CoordFit *modfit; … … 330 328 fit_free (modfit); 331 329 /* keep the order and type from initial values */ 332 } 333 330 331 // XXX if desired in the future, return modfit (and free above) 332 return (NULL); 333 } 334 -
trunk/Ohana/src/relphot/include/relphot.h
r17242 r17419 214 214 void wimages PROTO(()); 215 215 void write_coords PROTO((Header *header, Coords *coords)); 216 int relphot_objects ();
Note:
See TracChangeset
for help on using the changeset viewer.
