Skip to content.
SHIVA > DOC > FileFormats > UCFFormat (r1.1)

UCF Format

Universal Contour Files (UCF) is a format devised at LONI. It is an ascii based file in the following format.

Header

<width=>
384
<height=>
256
<xrange=>
-200.000000 200.000000
<yrange=>
-200.000000 200.000000
<zrange=>
-200.000000 200.000000
<levels>
255

  • <width=> unknown. Occationally there may be two integer values specified.
  • <height=> unknown. Occationally there may be two integer values specified.
  • <xrange=> the relaxed range of contour points.
  • <yrange=> the relaxed range of contour points.
  • <zrange=> the relaxed range of contour points.
  • <levels> indicates the number of contours present in the file.

Immediately following the header are contours.

Contour

<level number=>
0.000000
<point_num=>
256
<contour_data=>
-28.192158 0.121569 -43.811764 6.325370
   ...
   ...
   ...
<end of level>

  • <level number=> specifies the current contour number.
  • <point_num=> specifies the number of points on the contour.
  • <contour_data=> contains the 3D or 4D data values. The 4-th dimension data is ignored by SHIVA.

End

Finally, a UCF file is ended with

<end>