[Scilab-users] read a "save()" file in Python

GOBILLOT Gilles 116128 gilles.gobillot at cea.fr
Mon Jul 21 14:24:09 CEST 2014


Hi Calixte

Tanks for this answer.

In fact HDF5 is used in recents Scilab's versions ==> save(filename, "X"," Y", "U", "T1")

My files where recorded with an "old" scilab version (5.3)  ==> save(filename, X, Y, U, T1)
Saved files are in a <unknow ?> binary format

Of course, I can convert ALL my files ... but if a solution exists, I'd like to know it.



[cid:image004.png at 01CFA4EF.6C411FA0]Gilles GOBILLOT
Chargé d'études procédés ultrasonores d'imagerie et métrologies de surfaces en sodium
Under Sodium Vision and Metrology Research Fellow
Commissariat à l'Énergie Atomique et aux Énergies Alternatives
French Atomic and Alternative Energies Commission /CEA/ Cadarache Nuclear Research Centre
Laboratoire d'Instrumentation et Essais Technologiques
DEN/DTN/STCP/LIET

Centre de Cadarache - DEN/CAD/DTN/STCP/LIET - Bâtiment 202
13108 Saint Paul Lez Durance
Tel : +33 (0)4 42 25 20 33 -  Mob : +33 (0) 6 87 99 19 57 - Fax : +33 (0)4 42 25 49 17
gilles.gobillot at cea.fr<mailto:gilles.gobillot at cea.fr>

«Ce message électronique et tous les fichiers attachés qu'il contient sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci d'en avertir immédiatement son émetteur et de ne pas en conserver de copie ».


De : users [mailto:users-bounces at lists.scilab.org] De la part de Calixte Denizet
Envoyé : vendredi 18 juillet 2014 15:26
À : users at lists.scilab.org
Objet : Re: [Scilab-users] read a "save()" file in Python

Hi Gilles,

The format of the file is based on HDF5 so you just have to use h5py and find where is located your matrix in the file.
For your information, it is possible to use a Python engine in Scilab in using PIMS toolbox:
http://forge.scilab.org/index.php/p/pims/

Best regards

Calixte

On 18/07/2014 13:59, GOBILLOT Gilles 116128 wrote:
Hi all,

In the Scilab-Python border, I try to read a file recorded with Scilab ( save(filename, X, Y, U, T1)   ) With U = matrix.

I'd like to read it with Python. Any idea ?

Regards,

Gilles




_______________________________________________

users mailing list

users at lists.scilab.org<mailto:users at lists.scilab.org>

http://lists.scilab.org/mailman/listinfo/users




--

Calixte Denizet

Software Development Engineer

-----------------------------------------------------------

Scilab Enterprises

143bis rue Yves Le Coz - 78000 Versailles, France

http://www.scilab-enterprises.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140721/3bc9fe0f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 5068 bytes
Desc: image001.gif
URL: <https://lists.scilab.org/pipermail/users/attachments/20140721/3bc9fe0f/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.gif
Type: image/gif
Size: 1766 bytes
Desc: image003.gif
URL: <https://lists.scilab.org/pipermail/users/attachments/20140721/3bc9fe0f/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 7230 bytes
Desc: image004.png
URL: <https://lists.scilab.org/pipermail/users/attachments/20140721/3bc9fe0f/attachment.png>


More information about the users mailing list