[vtkusers] precision of SPACING
Nico Schlömer
nico.schloemer at gmail.com
Wed Feb 17 18:07:37 EST 2010
> If you store the file as binary, I think you'll retain the full precision.
That's true for all the hard data, but when you look at, e.g., a
POINT_DATA entry
============================= *snip* =============================
DIMENSIONS 16 241 1
SPACING 0.0833333 0.0833333 0
ORIGIN 0 0 0
POINT_DATA 3856
FIELD FieldData 1
psi 2 3856 double
¿ïàE<84>¼MÑ¿¶^?c<89>LÇ^C¿
[...]
============================= *snap* =============================
you'll see that the meta info is still stored clear text.
Cheers,
Nico
On Wed, Feb 17, 2010 at 11:01 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> If you store the file as binary, I think you'll retain the full precision.
>
> On Wed, Feb 17, 2010 at 3:41 PM, Nico Schlömer <nico.schloemer at gmail.com> wrote:
>> Hi,
>>
>> is there any way to tell VTK to store the SPACING (as in legacy VTK
>> files) in higher precision? As far as I can see, this is limited to
>> seven, eight significant digits. It's not that I need 15 digits for
>> plotting but for reading and working with it I do. An easy workaround
>> would of course be to to the values separately in a field.
>>
>> XML-based VTI, for example, stores 15 digits. Is that something one can rely on?
>>
>> Cheers,
>> Nico
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
More information about the vtkusers
mailing list