|  3DSoftware.com > Programming > File Formats > FIN > Page 6 |
|
FIN File Format
Page 6
File Ranging and Biasing In an integer grid FIN file, dynamic ranging and biasing can be applied to the entire grid, or to tiles. In this page we cover how that is done for an entire grid (the entire file). File Dynamic Range The Pointer to File Dynamic Range in the file header is the offset in bytes (from beginning of file) to the Dynamic Range of the file integer grid, which is a block of bytes containing dynamic range information. The first 16 bytes of the dynamic range information are two double length ANSI/IEEE floating point numbers (which are only The first of those two integers specifies a low integer. The second specifies a high integer. The first double corresponds (ties to) the low integer. The second double ties to the high integer. Other floating point numbers can then be scaled from this. If the two integers are zero, the second integer is considered to be the maximum possible integer (for that number of bits). For example, if both integers are zero and the integer grid consists of Continuing with the same example, if the first double is File Bias The Pointer to File Bias in the file header is the offset in bytes (from beginning of file) to the bias for the entire file integer grid, which is an integer that is the same size (number of bytes) as a grid node. Application programs can subtract the file bias from each integer in the grid to recover original signed data. For example, assume you are storing a data set with range |
| Page 6 | ||||||
|
|
Copyright © 2008 by 3D Software. All rights reserved. 3D Software, P.O. Box 221190, Sacramento CA 95822 USA www.3DSoftware.com Contact us |
| Tuesday, 06-Jan-2009 03:07:21 GMT |