Data Utility
Data Utility
User’s Guide
Version 2.0
Apple, Balloon Help, Finder, QuickTime, MPW, Macintosh, Power Macintosh, and SimpleText are trademarks of Apple
Computer, Inc. PowerPC is a trademark of International Business Machines Corporation. Sequent is a trademark of Sequent
Computer Systems. THINK C, THINK Reference and THINK Pascal are trademarks of Symantec Corporation. UNIX is a registered
trademark of Novell, Inc. VAX/VMS is a registered trademark of Digital Equipment Corporation. All other brand and product
names are trademarks or registered trademarks of their respective companies.
CHAPTER 1 Introduction
Welcome to the documentation for the Data Utility 2.0! This utility lets you
convert data from a wide variety of formats into Slicer-compatible 3D or 4D
datasets.
3
Data Utility User’s Guide
4 CHAPTER 1: Introduction
Data Utility User’s Guide
6 CHAPTER 1: Introduction
CHAPTER 2 Converting 3D Matrix Files
or Folders of 3D Files
Note that sometimes the Macintosh thinks a file is of one type when it is really
of another. For example, binary files that have been transferred to the
Make sure that you have selected Matrix Data from the Format Popup. Also,
make sure that the appropriate radio button, Text File or Binary File, is
selected. After clicking OK, fill out either the Text Matrix dialog or the Binary
Matrix dialog as discussed below.
Number type Specify the format for your binary numbers from
the popup. Supported formats include signed and
unsigned 8-bit, 16-bit, and 32-bit integers, 32-bit
float, 64-bit float, VMS float, and 24-bit image files.
3D matrix Make sure this option is selected if you have a 3D
Matrix file.
Swap bytes Swap most significant with least significant byte.
Needed when importing integer binary data from
Intel (MS-DOS) and VAX computers.
Row major order If selected, then the most varying dimension is the
X-size (columns). This is the default.
Input Summary Describes your input file or folder, giving the file
type, the number type, and the 3D dimensions of
your input file or files.
Output File: Dimensions
The size of the output file. For 3D files this size is
identical to the input file size. When creating 4D
files from a series of 3D files, this size will show the
four dimensions.
Output File: Number Type
You can choose whether to keep the output
number type identical to the input number type,
convert to byte values, or convert to 32-bit IEEE
floating point values.
Click Proceed to continue and specify the output file name (except when
converting to byte, see below).
You have to choose whether to Limit or Rescale your input data values when
writing to an output byte file.
Limit Input data values between 0 and 255 will convert
directly to the byte output file. Input data values
below 0 will all map to 0. Input data values above
255 will all map to 255.
Rescale Input data values will be scaled to fit within the
range of 1 to 254. The minimum input data value
(displayed in the dialog) will be mapped to 1, the
maximum data value to 254, and intermediate
input values to the properly scaled output values.
The data minimum and maximum values are
calculated for you. However, you can enter your
own values for the input data minimum and
maximum.
Input data values that are below the minimum specified will map to an output
value of 1, and input data values above the maximum will map to an output
value of 254.
Click OK to continue and specify the output file name.
Click Save to continue. You will eventually see a message saying that the file
was written correctly, unless you are writing out a 4D floating point dataset, in
which case you will see the dialog shown below.
Number type Specify the format for your binary numbers from
the popup. Supported formats include signed and
unsigned 8-bit, 16-bit, and 32-bit integers, 32-bit
float, 64-bit float, VMS float, and 24-bit image files.
Input Summary:Domain
Describes your input folder, giving the domain of
your input files.
Input Summary:File type
Describes your input file, giving the file type of your
input files.
Input Summary:Number type
Describes your input file, giving the number type of
your input files.
Input Summary:Dimensions
Describes your input file, giving the dimensions of
your input files.
Output File: Dimensions
The size of the output file, equal to the 2D Matrix
size times the number of files.
You have to choose whether to Limit or Rescale your input data values when
writing to an output byte file.
Limit Input data values between 0 and 255 will convert
directly to the byte output file. Input data values
below 0 will all map to 0. Input data values above
255 will all map to 255.
Rescale Input data values will be scaled to fit within the
range of 1 to 254. The minimum input data value
(displayed in the dialog) will be mapped to 1, the
maximum data value to 254, and intermediate
Click Save to continue. If your output datafile is a byte file, you will then see a
message saying that the file was written correctly. If your output datafile is a
floating point file, you will next see the dialog shown below.
You can convert a single column file into a Slicer-compatible 3D dataset The
input column file must contain columns for the X, Y, and Z dimensions, in
addition to a column for the data. You need to do the following steps to
convert your data:
• Specify your input file and file type
• Specify your input file format
• Specify the X, Y, Z, and data columns
• Specify the size and dimensions of the target matrix
• Specify the target matrix filling method
• Specify the output file format (byte, float) and name.
Each step is discussed in detail below.
Click and drag across each column that you wish to import. You will need to
select columns for the X, Y, and Z axes, and for the data values. You can also
specify each column numerically. Each column is specified by a starting
character number, followed by a colon (:), followed by the ending character
number. Column specifications are separated by commas (,).
Number type Specify the format for your binary numbers from
the popup. Supported formats include signed and
unsigned 8-bit, 16-bit, and 32-bit integers, 32-bit
float, 64-bit float, VMS float, and 24-bit image files.
Swap bytes Swap most significant with least significant byte.
Needed when importing integer binary data from
Intel (MS-DOS) and VAX computers.
Skip bytes Number of bytes to skip before reading the data.
Number of rows The number of lines of data.
Number of column
s
The number of columns of data.
View File… See a binary (Hex) and text printout of the file.
When done click OK to continue.
Data dimensions Specify whether your Grid file and Q files are 2D
files, or 3D files, organized as a volume (/whole) or
as a series of planes (/planes).
View Grid File… See a binary (Hex) and text printout of your Grid
file. Because of memory limitations, this option is
not available after you have specified any “Q” files.
Add Q File… Use this option to select the datafiles, or “Q” files,
associated with your Grid file. You can read any
number of Q files that use the same Grid file. The
current Grid file, the last Q file that you specified,
and the number of Q files specified are all reported
in the lower left of the dialog.
When done click Done to continue.
NOTE: Since Slicer only works with uniform grid files, part of the Data Utility
conversion process is interpolating PLOT3D datapoints onto a uniform grid.
The resulting output file is adequate for most visualization purposes.
The Data Utility would therefore display -99 to 76 as the temperature data
range. To create a valid output matrix, you would have to specify a data range
of -15 to 76, so that all of the -99 data values would be ignored.
When done, click OK to return to the main column dialog.
In the dialog above you can choose to use just the last value encountered, to
sum all values that bin to each location, or to average all values that bin to the
same location. Click OK to return to the main column dialog.
The Data Utility defaults to a missing data value that is outside the scanned
data range. You can change this missing data value to anything that you wish.
4.5.5 Kriging
If selected, the output matrix data locations that are not set by the input data
values are interpolated from the nearest input data values, using the Kriging
method.
Input Summary Describes your input column file, giving the file
name, number of selected data columns, and
whether it is a Text or Binary file.
Output File: Dimensions
The size of the output file, which you specified in
the Target Matrix dialog.
Output File: Number Type
You can choose whether to keep the output
number type identical to the input number type,
convert to byte values, or convert to 32-bit IEEE
floating point values. For column datasets, the
'input' number type is always assumed to be
floating point.
Click Proceed to continue. If you have chosen to convert to byte files, you will
see the dialog shown below. Otherwise, you will be asked for an output file
name.
You have to choose whether to Limit or Rescale your input data values when
writing to an output byte file.
Limit Input data values of between 0 and 255 will
convert directly to the byte output file. Input data
values below 0 will all map to 0. Input data values
above 255 will all map to 255.
Rescale Input data values will be scaled to fit within the
range of 1 to 254. The minimum input data value
(displayed in the dialog) will be mapped to 1, the
maximum data value to 254, and intermediate
input values to the properly scaled output values.
The data minimum and maximum values are
calculated for you. However, you can enter your
own values for the input data minimum and
maximum.
Input data values that are below the minimum specified will map to an output
value of 1, and input data values above the maximum will map to an output
value of 254.
Click OK to continue and specify the output file name.
Click Save to continue. You should see a message saying that the file was
written correctly after the Data Utility has processed the file.