<HTML>
<A NAME="pagetop"></A>
<BASEFONT SIZE="3">
<HEAD>
<TITLE>
File Creation Support Tool
</TITLE>
</HEAD>
<BODY BGCOLOR="white" TEXT="black">
<CENTER>
<A HREF="../index.htm" target="_top"><IMAGE SRC="../image/mokuji.gif"></A>
<H2>
File Creation Support Tool
</H2>
</CENTER>
<H3>
What is the File Creation Support Tool ?
</H3>
The file creation support tool creates the MicroAVS structured cell data referen
ce type data file semi-
automatically. For more about the reference type data format, refer Chapter 5, S
ection 5-3 [Reference Type 
Format for Structured Cell Data] in the MicroAVS Users Guide.
<P>
<HR SIZE="1">
<H3>
Using the File Creation Support Tools
</H3>
<H3>
Sample File
</H3>
 For example, we will now create a structured cell data file to read in the 
<B>scat2ds</B> file shown below in 
MicroAVS. This file is the same as the example shown in Chapter 5 section 5-3-2-
1 [For 2D Scatter Scalar 
data]. To read in this kind of file, a structured data file called 
<B>scat2ds.fld</B> i
s required. This file has to be 
created using one of the editors. However, this file can be easily created using
 the menus in the File 
Creation Support Tools.
<BR>
Here, we illustrate how the file scat2ds.fld can be created using the file creat
ion support tool.
<P>
<CENTER>
<IMG SRC="../image/conv1.gif">
</CENTER>
<HR SIZE="1">
<H3>
Procedure for file Creation
</H3>
<CENTER>
<TABLE BORDER>
Step 1 <A HREF="#tut1">Running the file creation support tool</A>
<P>
Step 2  <A HREF="#tut2">Specification of the dimension of the calculation space and size</A>
<P>
Step 3  <A HREF="#tut3">Specification of the dimension of the physical space</A>
<P>
Step 4 <A HREF="#tut4">Specification of the data type</A>
<P>
Step 5 <A HREF="#tut5">Specification of ASCII or binary</A>
<P>
Step 6 <A HREF="#tut6">Specification of the number of data components</A>
<P>
Step 7 <A HREF="#tut7">Specification of the reference file for data values</A>
<P>
Step 8 <A HREF="#tut8">Specification of information related to coordinate values.</A>
<P>
Step 9 <A HREF="#tut9">Specification of the reference file for coordinate values.</A>
<P>
Step 10 <A HREF="#tut10">Ascertaining completion</A>
<P>
Step 11 <A HREF="#tut11">Save file</A>
<P>
</TABLE>
</CENTER>
<A NAME="tut1"></A>
<H3><B>
Step 1 Running the file creation support tool
</B></H3>
<BLOCKQUOTE>
MicroAVS related menus are added to the <FONT COLOR="blue">[Start]-[Programs]</FONT> in the main menu when
 MicroAVS is installed. Among these menus, there is an item called <FONT COLOR="blue">[File Creation Support tool]</FONT>. Select this item. Then, a 
panel such as the one shown below appears.  This is the file creation support to
ol menu.
</BLOCKQUOTE>
<CENTER>
<IMG SRC="../image/conv2.gif">
</CENTER>
<P>
<A NAME="tut2"></A>
<H3><B>
Step 2 Specification of the dimension of the calculation space and size
</B></H3>
<BLOCKQUOTE>
First, click on the [Create Structured Data file ] button. Then, a panel such as
 the one shown below appears. 
<BR>
First, specify the dimension of the calculation space.  This corresponds to the 
setting of the ndim keyword 
in the header portion of the structured data file.
In this example, the data is of scatter type, so select  [Scatter type] from [Data dimension] in the menu.
<P>
Next, define the size. This corresponds to the keyword dim1.
<BR>
In this example, th e number of data is 10, so 
set the value of [X] in [Size of each axis] to 10. With this, this setting is complete.
<P>
Press [Next] to go to the next menu.
</BLOCKQUOTE>
<CENTER>
<IMG SRC="../image/conv3.gif">
</CENTER>
<P>
<A NAME="tut3"></A>
<H3><B>
Step 3  Specification of the dimension of the physical space
</B></H3>
<BLOCKQUOTE>
This menu is used to specify the dimension of the physical space. This correspon
ds to the setting of the 
nspace keyword in the header portion. 
In this example, both  X and Y coordinates are defined and so we know that data 
exists on a 2D plane. 
Select [2D] from [Display dimension] in the menu. 
<P>
With this, this setting is complete.
Press [Next] to go to the next menu.
</BLOCKQUOTE>
<CENTER>
<IMG SRC="../image/conv4.gif">
</CENTER>
<P>
<A NAME="tut4"></A>
<H3><B>
Step 4 Specification of the data type
</B></H3>
<BLOCKQUOTE>
This menu is used to specify the data type. This corresponds to the setting of the data keyword in the header 
portion.  Since the data in this example is of float type, select [float] from [
Data Type] in the menu.
<P>
With this, this setting is complete.
Press [Next] to go to the next menu.
</BLOCKQUOTE>
<CENTER>
<IMG SRC="../image/conv5.gif">
</CENTER>
<P>
<A NAME="tut5"></A>
<H3><B>
Step 5 Specification of ASCII or binary
</B></H3>
<BLOCKQUOTE>
This menu is used to specify whether the data file to be referenced is ASCII or 
binary. This corresponds to 
the setting of the filetype keyword in the line starting with variable in the he
ader portion.  Since the file to 
be referenced (scat2ds) in this example is an ASCII file, select [ASCII]  from [
Data Input Type] in the 
menu.
<P>
With this, this setting is complete.
Press [Next] to go to the next menu.
</BLOCKQUOTE>
<CENTER>
<IMG SRC="../image/conv6.gif">
</CENTER>
<P>
<A NAME="tut6"></A>
<H3><B>
Step 6 Specification of the number of data components
</B></H3>
<BLOCKQUOTE>
This menu is used to specify the number of data components. This corresponds to 
the setting of the 
keyword veclen in the header portion.  Since the number of components  in this example is 1, set  [Number 
of data components]  to 1 in the menu.
<P>
With this, this setting is complete.
Press [Next] to go to the next menu.
</BLOCKQUOTE>
<CENTER>
<IMG SRC="../image/conv7.gif">
</CENTER>
<P>
<A NAME="tut7"></A>
<H3><B>
Step 7 Specification of the reference file for data values
</B></H3>
<BLOCKQUOTE>
This menu is used to specify the reference data file name and the referencing me
thod. This corresponds to 
the setting of keywords other than the filetype keyword in the line starting with variable in the header 
portion.  
<BR>
The file to be referenced in this example is scat2ds and the first lin
e of this file is a comment 
which has to be skipped. Further, the data is in the first column. In addition, 
labels can be added to each 
data component. This corresponds to the keyword label in the header portion. All
 this information is 
specified as shown in the figure below.
<P>
<I>
Note: To specify the filename, click on the  [Reference] button and use the file
 dialog that appears.
</I>
<P>
With this, this setting is complete. Click on [OK] to go to the next menu. (Use 
this procedure to define the 
referencing method for each component when the data has multiple components).
</BLOCKQUOTE>
<CENTER>
<IMG SRC="../image/conv8.gif">
</CENTER>
<P>
<A NAME="tut8"></A>
<H3><B>
Step 8 Specification of information related to coordinate values
</B></H3>
<BLOCKQUOTE>
This menu is used to specify how the coordinate information is defined. This corresponds to the setting of  
the keyword field in the header portion. In this example, coordinate values are 
defined for every data point 
and hence, select irregular from [Field Type] in the menu.
<P>
With this, this setting is complete.
Press [Next] to go to the next menu.
</BLOCKQUOTE>
<CENTER>
<IMG SRC="../image/conv9.gif">
</CENTER>
<P>
<A NAME="tut9"></A>
<H3><B>
Step 9 Specification of the reference file for coordinate values.
</B></H3>
<BLOCKQUOTE>
This menu is used to specify the reference file name for coordinate values and the referencing method. This corresponds to the setting of keywords other than the filetype keyword  in the l
ine starting with coord in the 
header portion. 
<P>
The file to be referenced in this example is scat2ds and the first line of this file is a 
comment which has to be skipped. <BR>
Further, the X coordinate is in the second column. All this information 
is specified as shown in the figure below.
<P>
<I>
Note: To specify the filename, click on the  [Reference] button and use the file
 dialog that appears.
</I>
<P>
<CENTER>
<IMG SRC="../image/conv10.gif">
</CENTER>
<P>
With this, the settings related to the X coordinate are complete. Click on [OK] 
to go to the next menu.
<P>
Next, specify the Y coordinate information.<BR>
This is done in a manner similar to the X coordinate as shown in the figure below.<P>
<CENTER>
<IMG SRC="../image/conv11.gif">
</CENTER>
<P>
With this, the settings related to the Y coordinate are complete. Click on [OK] 
to go to the next menu.
</BLOCKQUOTE>
<P>
<A NAME="tut10"></A>
<H3><B>
Step 10 Ascertaining completion
</B></H3>
<BLOCKQUOTE>
 This menu is used to check all the information one final time.  The header port
ion is displayed (though, it 
is difficult to see), check the information and press the [completed] button.
</BLOCKQUOTE>
<CENTER>
<IMG SRC="../image/conv12.gif">
</CENTER>
<P>
<A NAME="tut11"></A>
<H3><B>
Step 11 Save file
</B></H3>
<BLOCKQUOTE>
Finally, specify the name of the file in which to save the information just input. Specify any file name in 
the file dialog. An extension .fld is automatically added to the file. <BR>
This XX .fld file can be read in by Read Data in MicroAVS.
</BLOCKQUOTE>
<CENTER>
<IMG SRC="../image/conv13.gif">
</CENTER>
<HR SIZE="1">
<TABLE BORDER=0 WIDTH="100%"><TR><TD ALIGN=LEFT>
<A HREF="#pagetop"><IMG SRC="../image/pagetop.gif" ALT="UP"></A></TD><BR>
<TD ALIGN=RIGHT><FONT FACE="MS SANS SERIF" SIZE=1 COLOR="BLACK">
&copy; 1999-2008 <A HREF="http://www.kgt.co.jp/product/avs/index_e.html">KGT Inc.</A>
 All rights reserved.</FONT></TD>
</TR></TABLE>
</BODY>
</HTML>
