changeset 773:e1e0f33f27d3

*** empty log message ***
author david <david>
date Wed, 22 Feb 1995 15:09:42 +0000
parents 32437b7bfce4
children 5c42d11da558
files volume_io/Testing/create_grid_volume.c
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/volume_io/Testing/create_grid_volume.c
+++ b/volume_io/Testing/create_grid_volume.c
@@ -9,7 +9,8 @@
     char  *argv[] )
 {
     Status               status;
-    char                 *output_filename;
+    char                 *output_prefix;
+    STRING               transform_filename;
     int                  ind[MAX_DIMENSIONS], sizes[MAX_DIMENSIONS];
     static  char         *dim_names[] = { MIxspace, MIyspace, MIzspace,
                                           MIvector_dimension };
@@ -23,7 +24,8 @@
         return( 1 );
     }
 
-    output_filename = argv[1];
+    output_prefix = argv[1];
+    (void) sprintf( transform_filename, "%s", output_prefix );
 
     volume = create_volume( 4, dim_names, NC_SHORT, TRUE, 0.0, 0.0 );
 
@@ -57,6 +59,8 @@
 
     create_grid_transform( &transform, volume );
 
+    status = output_transform_file( transform_filename, NULL, &transform );
+
     print( "Enter x, y, z: " );
     while( input_real( stdin, &x ) == OK &&
            input_real( stdin, &y ) == OK &&
@@ -74,8 +78,5 @@
         print( "Enter x, y, z: " );
     }
 
-    status = output_volume( output_filename, NC_UNSPECIFIED, FALSE, 0.0, 0.0,
-                            volume, "", NULL );
-
     return( status != OK );
 }