Changeset 12902
- Timestamp:
- Apr 18, 2007, 11:12:42 AM (19 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 13 edited
-
gophot/src/gophot.c (modified) (1 diff)
-
libfits/header/F_init_H.c (modified) (2 diffs)
-
libfits/header/F_read_H.c (modified) (2 diffs)
-
libfits/header/F_read_XH.c (modified) (1 diff)
-
libfits/include/gfitsio.h (modified) (2 diffs)
-
misc/src/cubefilter.c (modified) (1 diff)
-
misc/src/medianfilter.c (modified) (1 diff)
-
opihi/cmd.data/rd.c (modified) (1 diff)
-
opihi/cmd.data/rdseg.c (modified) (1 diff)
-
opihi/cmd.data/unsign.c (modified) (2 diffs)
-
opihi/dimm/camera.c (modified) (1 diff)
-
opihi/lib.shell/startup.c (modified) (1 diff)
-
tools/src/medianfilter.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/gophot/src/gophot.c
r7080 r12902 13 13 fprintf (stderr, "reading from %s, writing to %s, %s param file\n", argv[1], argv[2], argv[3]); 14 14 15 FT_UNSIGN_MODE = FALSE;16 15 strcpy (files[4], argv[2]); 17 16 -
trunk/Ohana/src/libfits/header/F_init_H.c
r8430 r12902 1 1 # include <ohana.h> 2 2 # include <gfitsio.h> 3 int FT_UNSIGN_MODE;3 static int FT_UNSIGN_MODE = FALSE; 4 4 5 5 /*********************** fits read header ***********************************/ … … 21 21 return (TRUE); 22 22 } 23 24 int gfits_set_unsign_mode (int mode) { 25 int oldmode; 26 27 oldmode = FT_UNSIGN_MODE; 28 FT_UNSIGN_MODE = mode; 29 return (oldmode); 30 } 31 32 int gfits_get_unsign_mode () { 33 return (FT_UNSIGN_MODE); 34 } -
trunk/Ohana/src/libfits/header/F_read_H.c
r7054 r12902 1 1 # include <ohana.h> 2 2 # include <gfitsio.h> 3 int FT_UNSIGN_MODE;4 3 5 4 /*********************** fits read header ***********************************/ … … 51 50 } 52 51 53 header[0].unsign = FT_UNSIGN_MODE;52 header[0].unsign = gfits_get_unsign_mode(); 54 53 header[0].bscale = 1; 55 54 header[0].bzero = 0; -
trunk/Ohana/src/libfits/header/F_read_XH.c
r7054 r12902 1 1 # include <ohana.h> 2 2 # include <gfitsio.h> 3 int FT_UNSIGN_MODE;4 3 5 4 /*********************** fits read header ***********************************/ -
trunk/Ohana/src/libfits/include/gfitsio.h
r7054 r12902 32 32 # define FT_LINE_LENGTH 80 /* FITS header line length */ 33 33 # define FT_RECORD_SIZE 2880 /* FITS block size */ 34 35 extern int FT_UNSIGN_MODE; /* is unsigned the default? */36 34 37 35 /* this structure defines the buffer which contains a header … … 114 112 int gfits_matrix_size PROTO ((Header *)); 115 113 int gfits_init_header PROTO ((Header *)); 114 int gfits_get_unsign_mode PROTO (()); 115 int gfits_set_unsign_mode PROTO ((int mode)); 116 116 int gfits_create_table_header PROTO ((Header *, char *, char *)); 117 117 int gfits_vtable_from_ftable PROTO ((FTable *ftable, VTable *vtable, int *row, int Nrow)); -
trunk/Ohana/src/misc/src/cubefilter.c
r7080 r12902 13 13 float fmin, fmax, Nval, sum; 14 14 15 FT_UNSIGN_MODE = FALSE;16 15 if (N = get_argument (argc, argv, "-unsign")) { 17 16 remove_argument (N, &argc, argv); 18 FT_UNSIGN_MODE = TRUE;17 gfits_set_unsign_mode (TRUE); 19 18 } 20 19 -
trunk/Ohana/src/misc/src/medianfilter.c
r7080 r12902 17 17 float fmin, fmax, Nval, sum; 18 18 19 FT_UNSIGN_MODE = FALSE;20 19 if ((N = get_argument (argc, argv, "-unsign"))) { 21 20 remove_argument (N, &argc, argv); 22 FT_UNSIGN_MODE = TRUE;21 gfits_set_unsign_mode (TRUE); 23 22 } 24 23 -
trunk/Ohana/src/opihi/cmd.data/rd.c
r7917 r12902 236 236 237 237 /** now - convert the matrix values to floats for internal use **/ 238 gfits_convert_format (&buf[0].header, &buf[0].matrix, -32, 1.0, 0.0, FT_UNSIGN_MODE);238 gfits_convert_format (&buf[0].header, &buf[0].matrix, -32, 1.0, 0.0, gfits_get_unsign_mode()); 239 239 240 240 return (TRUE); -
trunk/Ohana/src/opihi/cmd.data/rdseg.c
r7917 r12902 66 66 67 67 /** now - convert the matrix values to floats for internal use **/ 68 gfits_convert_format (&buf[0].header, &buf[0].matrix, -32, 1.0, 0.0, FT_UNSIGN_MODE);68 gfits_convert_format (&buf[0].header, &buf[0].matrix, -32, 1.0, 0.0, gfits_get_unsign_mode()); 69 69 70 70 return (TRUE); -
trunk/Ohana/src/opihi/cmd.data/unsign.c
r7917 r12902 4 4 5 5 if (argc == 1) { 6 if ( FT_UNSIGN_MODE)6 if (gfits_get_unsign_mode()) 7 7 gprint (GP_ERR, "mode is now UNSIGNED int \n"); 8 8 else … … 13 13 if (argc == 2) { 14 14 if (!strcmp (argv[1], "1")) { 15 FT_UNSIGN_MODE = TRUE;15 gfits_set_unsign_mode (TRUE); 16 16 set_int_variable ("UNSIGN", 1); 17 17 return (TRUE); 18 18 } 19 19 if (!strcmp (argv[1], "0")) { 20 FT_UNSIGN_MODE = FALSE;20 gfits_set_unsign_mode (FALSE); 21 21 set_int_variable ("UNSIGN", 0); 22 22 return (TRUE); -
trunk/Ohana/src/opihi/dimm/camera.c
r9275 r12902 112 112 ReadOut (x, y, dx, dy, 1, buf[0].matrix.buffer); 113 113 114 gfits_convert_format (&buf[0].header, &buf[0].matrix, -32, 1.0, 0.0, FT_UNSIGN_MODE);114 gfits_convert_format (&buf[0].header, &buf[0].matrix, -32, 1.0, 0.0, gfits_get_unsign_mode()); 115 115 116 116 EXIT_STATUS (TRUE); -
trunk/Ohana/src/opihi/lib.shell/startup.c
r9473 r12902 47 47 set_variable ("PID", getpid()); 48 48 49 /* keep these? 50 set_int_variable ("UNSIGN", 0); 51 FT_UNSIGN_MODE = FALSE; 52 */ 53 54 55 49 set_int_variable ("UNSIGN", 0); 50 gfits_set_unsign_mode (FALSE); 51 56 52 /* check history file permission */ 57 53 { -
trunk/Ohana/src/tools/src/medianfilter.c
r12333 r12902 17 17 float fmin, fmax, Nval, sum; 18 18 19 FT_UNSIGN_MODE = FALSE;20 19 if ((N = get_argument (argc, argv, "-unsign"))) { 21 20 remove_argument (N, &argc, argv); 22 FT_UNSIGN_MODE = TRUE;21 gfits_set_unsign_mode (TRUE); 23 22 } 24 23
Note:
See TracChangeset
for help on using the changeset viewer.
