Thank you.
With numpy it works perfectly. I thought it would lost the information about
int32 and int16 with this approach.
Now I will try to make the script with struct too, but I'll need a bit more
time to really understand. For me it's a new paradigm. But that's nice. :)
--
https://mail.pyth
On 16 December 2013 22:19, Djoser wrote:
> Hi all,
Hi Djoser,
> I am new to this forum and also to Python, but I'm trying hard to understand
> it better.
> I need to create a binary file, but the first 4 lines must be in
> signed-Integer16 and all the others in signed-Integer32. I have a prog
On Tuesday, December 17, 2013 5:00:14 AM UTC+5:30, Djoser wrote:
> Basically I have a .dat file, so I get some numbers and make a different
> conversion.
>
> I'll try this struct script. I'm not used to it, but it seems to do what I
> want.
Construct is a very powerful utility for binary parsin
Basically I have a .dat file, so I get some numbers and make a different
conversion.
I'll try this struct script. I'm not used to it, but it seems to do what I want.
--
https://mail.python.org/mailman/listinfo/python-list
On 2013-12-16 14:19, Djoser wrote:
> I am new to this forum and also to Python, but I'm trying hard to
> understand it better.
Welcome aboard!
> I need to create a binary file, but the first 4 lines must be in
> signed-Integer16 and all the others in signed-Integer32. I have a
> program that doe
I'm using python 2.7.
If I understood correctly, using bytearray I will lost the information about
the signed 16, 32, since it makes automatically the conversion.
Do you think that I can make the conversion as I proposed before or using
struct and save with open()?
--
https://mail.python.org/m
On Mon, Dec 16, 2013 at 2:19 PM, Djoser wrote:
> Hi all,
>
> I am new to this forum and also to Python, but I'm trying hard to
> understand it better.
> I need to create a binary file, but the first 4 lines must be in
> signed-Integer16 and all the others in signed-Integer32. I have a program
>
Hi all,
I am new to this forum and also to Python, but I'm trying hard to understand it
better.
I need to create a binary file, but the first 4 lines must be in
signed-Integer16 and all the others in signed-Integer32. I have a program that
does that with Matlab and other with Mathematica, but