changeset 513:6eb37d91ddbd

Added some acquisition parameters (flip angle) and fixed error in writing of scanning sequence.
author neelin <neelin>
date Mon, 17 Jan 1994 15:05:46 +0000
parents dac538583d8c
children 3f21f543cbc9
files conversion/gcomserver/gyro_read.c conversion/gcomserver/gyro_to_minc.h conversion/gcomserver/minc_file.c conversion/gcomserver/spi_element_defs.h
diffstat 4 files changed, 29 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/conversion/gcomserver/gyro_read.c
+++ b/conversion/gcomserver/gyro_read.c
@@ -6,10 +6,14 @@
 @CALLS      : 
 @CREATED    : November 25, 1993 (Peter Neelin)
 @MODIFIED   : $Log: gyro_read.c,v $
-@MODIFIED   : Revision 1.5  1994-01-14 11:37:18  neelin
-@MODIFIED   : Fixed handling of multiple reconstructions and image types. Add spiinfo variable with extra info (including window min/max). Changed output
-@MODIFIED   : file name to include reconstruction number and image type number.
+@MODIFIED   : Revision 1.6  1994-01-17 15:05:46  neelin
+@MODIFIED   : Added some acquisition parameters (flip angle) and fixed error in writing
+@MODIFIED   : of scanning sequence.
 @MODIFIED   :
+ * Revision 1.5  94/01/14  11:37:18  neelin
+ * Fixed handling of multiple reconstructions and image types. Add spiinfo variable with extra info (including window min/max). Changed output
+ * file name to include reconstruction number and image type number.
+ * 
  * Revision 1.4  94/01/06  14:18:44  neelin
  * Added image unpacking (3 bytes -> 2 pixels).
  * 
@@ -468,6 +472,8 @@
          find_double(group_list, ACR_Echo_time, -DBL_MAX);
       general_info->acq.inv_time = 
          find_double(group_list, ACR_Inversion_time, -DBL_MAX);
+      general_info->acq.flip_angle = 
+         find_double(group_list, SPI_Flip_angle, -DBL_MAX);
       general_info->acq.num_avg = 
          find_double(group_list, ACR_Nr_of_averages, -DBL_MAX);
       general_info->acq.imaging_freq = 
--- a/conversion/gcomserver/gyro_to_minc.h
+++ b/conversion/gcomserver/gyro_to_minc.h
@@ -6,10 +6,14 @@
 @CALLS      : 
 @CREATED    : November 25, 1993 (Peter Neelin)
 @MODIFIED   : $Log: gyro_to_minc.h,v $
-@MODIFIED   : Revision 1.4  1994-01-14 11:37:42  neelin
-@MODIFIED   : Fixed handling of multiple reconstructions and image types. Add spiinfo variable with extra info (including window min/max). Changed output
-@MODIFIED   : file name to include reconstruction number and image type number.
+@MODIFIED   : Revision 1.5  1994-01-17 15:06:31  neelin
+@MODIFIED   : Added some acquisition parameters (flip angle) and fixed error in writing
+@MODIFIED   : of scanning sequence.
 @MODIFIED   :
+ * Revision 1.4  94/01/14  11:37:42  neelin
+ * Fixed handling of multiple reconstructions and image types. Add spiinfo variable with extra info (including window min/max). Changed output
+ * file name to include reconstruction number and image type number.
+ * 
  * Revision 1.3  93/12/14  16:37:48  neelin
  * Modified general_info structure a little bit.
  * 
@@ -114,6 +118,7 @@
       double rep_time;
       double echo_time;
       double inv_time;
+      double flip_angle;
       double num_avg;
       double imaging_freq;
       Cstring imaged_nucl;
--- a/conversion/gcomserver/minc_file.c
+++ b/conversion/gcomserver/minc_file.c
@@ -6,10 +6,14 @@
 @CALLS      : 
 @CREATED    : November 26, 1993 (Peter Neelin)
 @MODIFIED   : $Log: minc_file.c,v $
-@MODIFIED   : Revision 1.4  1994-01-14 11:37:24  neelin
-@MODIFIED   : Fixed handling of multiple reconstructions and image types. Add spiinfo variable with extra info (including window min/max). Changed output
-@MODIFIED   : file name to include reconstruction number and image type number.
+@MODIFIED   : Revision 1.5  1994-01-17 15:06:22  neelin
+@MODIFIED   : Added some acquisition parameters (flip angle) and fixed error in writing
+@MODIFIED   : of scanning sequence.
 @MODIFIED   :
+ * Revision 1.4  94/01/14  11:37:24  neelin
+ * Fixed handling of multiple reconstructions and image types. Add spiinfo variable with extra info (including window min/max). Changed output
+ * file name to include reconstruction number and image type number.
+ * 
  * Revision 1.3  93/12/14  16:37:18  neelin
  * Added MIcomplete attribute to image variable,.
  * 
@@ -334,6 +338,9 @@
    if (general_info->acq.inv_time != -DBL_MAX)
       (void) miattputdbl(mincid, varid, MIinversion_time, 
                          general_info->acq.inv_time);
+   if (general_info->acq.flip_angle != -DBL_MAX)
+      (void) miattputdbl(mincid, varid, "flip_angle", 
+                         general_info->acq.flip_angle);
    if (general_info->acq.num_avg != -DBL_MAX)
       (void) miattputdbl(mincid, varid, MInum_averages, 
                          general_info->acq.num_avg);
@@ -341,7 +348,7 @@
       (void) miattputdbl(mincid, varid, MIimaging_frequency, 
                          general_info->acq.imaging_freq);
    if (strlen(general_info->acq.imaged_nucl) > 0)
-      (void) miattputstr(mincid, varid, MIscanning_sequence, 
+      (void) miattputstr(mincid, varid, MIimaged_nucleus, 
                          general_info->acq.imaged_nucl);
 
    /* Create the spi info variable */
--- a/conversion/gcomserver/spi_element_defs.h
+++ b/conversion/gcomserver/spi_element_defs.h
@@ -95,6 +95,7 @@
 GLOBAL_ELEMENT(SPI_Off_center_cc           , 0x0019, 0x100c);
 GLOBAL_ELEMENT(SPI_Off_center_ap           , 0x0019, 0x100d);
 GLOBAL_ELEMENT(SPI_Number_of_slices        , 0x0019, 0x100f);
+GLOBAL_ELEMENT(SPI_Flip_angle              , 0x0019, 0x101a);
 GLOBAL_ELEMENT(SPI_Number_of_dynamic_scans , 0x0019, 0x101b);
 GLOBAL_ELEMENT(SPI_dynamic_scan_begin_time , 0x0019, 0x1022);
 GLOBAL_ELEMENT(SPI_Number_of_phases        , 0x0019, 0x1069);