From: Daniel J S. <dan...@ie...> - 2006-06-30 17:06:17
|
Ethan Merritt wrote: > On Friday 30 June 2006 12:10 am, Daniel J Sebald wrote: > >>Bastian Maerkisch wrote: >> >>>I am having problems with image.dem from CVS on OS/2. It aborts >>>with: >>> >>>Damaged EDF header of demo.edf: not multiple of 512 B. >>> >>>Is this another case of a missing binary tag? Or is my >>>cvs screwing up? >> >>Could be. That clearly sounds like something wrong with the file. >>The file size I have here is 17408 bytes. Is that what you are >>seeing? > > > In fact, the file "image.dem" itself also contains in-line binary > data and may possibly cause problems. > > Does anyone know of possible harm done by marking a file in cvs > as "binary"? > If not, I think we should flag both demo.edf and image.dem Well, the harm, if any, would be to Windows users. I'm guessing most editors and applications these days handle that. The question is whether gnuplot can handle the absence of a CR or LF character (I forget which), i.e., the underlying C function. Leaving image.dem as ASCII may be safe. It is a short little string of characters that is in binary. So long as there is no CR-LF values in the string, most likely we'd be fine. Here are the characters: 00 00 00 00 00 00 00 00 00 00 00 3F 00 00 00 00 00 00 00 3F 00 00 00 00 00 00 00 00 00 00 00 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3F 00 00 00 02 02 00 02 02 CR is 0D and LF is 0A, so it should be safe. But, perhaps you can suggest a technique for using actual piping, since you know that so well. Here is the command plot '-' binary endian=little array=2x2 dx=2 format="%float" using 1:2:3 with rgbimage,\ '-' binary endian=little record=4 format="%char" using 1:2 with points pt 7 ps 2 lt -1 Maybe there is something '| < blutux.rgb' that could be used that would work in both Linux and Windows? Suggestions? Dan |