Byte Swapping [message #37034] |
Thu, 20 November 2003 12:14 |
mwatson
Messages: 2 Registered: November 2003
|
Junior Member |
|
|
Sorry if this already went through.
I am having trouble converting binary data from little endian to big
endian. Here are my commands:
brr=fltarr(1090,820)
byteorder,brr,/swap_if_big_endian
openr,1,'ndvi0006.d'
readu,1,brr
close,1
and I get this error message as well:
% READU: End of file encountered. Unit: 1, File: ndvi0006.d
% Execution halted at: $MAIN$
My data, when converted from unsigned 8-bit should have values between
1 and -1.
The negative values seem to be OK but the positive values are wrong.
Any help would be greatly appreciated.
Thank you,
-Mike Watson
-Florida State University
|
|
|