IM

Going from data to 3D array that can be used by spyglass

Data to 3D ASCII | 3D ASCII to binary | 3D ASCII directly to HDF

Data to a 3D ASCII array

First you need your data in a 3D array. To understand what a 3D array is and how it is organized see the data organizations section. Further development of this section, with a detailed explanation on how to make a 3D array from Excell files will be posted on this web pagein the future.

Once you have a 3D ASCII array to read it into spyglass there are two ways to change your data so it can be read by Spyglass Dicer.

  • Covert your files into an HDF file. See Data Conversion. (This way is more difficult)
  • Use Spyglass Data Utility, see description below.
  • How to use Spyglass Data Utility to go from ASCII to binary which spyglass can read.

    For an ascii file to practise with, click to DOWNLOAD fan_64.ascii. When you click to down load it will open the ascii file on your browser, go to file, and save as a text file and it should work. See the Spyglass section of this tutorial for pictures of what the binary and hdf files look like in spyglass.

    1. Open Spyglass Data Utility

    2. Click on Single File

    3. Select the ASCII file you want to convert.

    4. Click on Open.

    5. Choose Matrix Data under format.

    6. Select text file.

    7. Select 3D Matrix.

    8. Enter the appropriate x, y and z dimensions (for fan_64.ascii x,y, and z are 62, 64, and 64). If you have a header for the file (fan_64.ascii does not have a header), enter the number of lines. You can click on View File, to make sure it your file looks right.

    9. Click on OK.

    10. Select "Convert output to bytes."

    11. Click on Proceed.

    12. Click on Rescale data if your data isn't already scaled

    13. Enter the name of what you want the scaled binary version of your data to be.

    14. It's Done. Go to Spyglass for directions on how to open the file in spyglass.




    Last revised July 26, 1996
    http://www.sv.vt.edu/class/surp/surp96/laughlin/stat/3D_tutor/data_to_hdf.html