View Full Version : Windows DOUBLE data type

06-24-2008, 08:02 AM
We have binary data we've been reading for years on the VAX using PV-Wave. When I execute the same code, on the same file, using the Windows version (9.x) the integer types seem to read correctly, but the floats and doubles aren't even close. I'm not proficient with data representations and operating systems which some people around here seem to think is where the problem lies.
Any suggestions?

06-24-2008, 08:49 AM
This is a very large topic!

I would start by looking at ...\wave\lib\user\data_convert.pro. VAX supports a number of floating point representations (Gfloat, Dfloat, etc.), none of which are supported or understood by other machines. Windows uses IEEE floating point representation, and data_convert can handle the bit-swapping required to get your data into a meaningful 'number' on your Windows machine.

The comments at the top of data_convert.pro will help quite a bit!

Don B.

06-24-2008, 09:51 AM
thanks, i got it to work (sometimes) with the 'from=axpvms' field. it'll be a little cumbersome, but i don't think the IT folks would be pleased if I had them re-run all the data with XDR. good stuff in that /user folder as well.