[FLASH-USERS] Trouble in opening HDF files

Jiří Löffelmann loffejir at fjfi.cvut.cz
Fri Jun 25 04:47:18 EDT 2021


Hi,

I found out, that the script extract_rays.py is just outdated. The table
lib changed the naming convention of its functions.
I attach corrected extract_rays.py, which work for me.

Regards
Jiří Löffelmann

út 22. 6. 2021 v 8:06 odesílatel Ong Jian Fuh <jianfuh.ong at eli-np.ro>
napsal:

> Hi,
>
> You can open this file for quick inspection by using visIt. You can
> download it here:
> https://visit-dav.github.io/visit-website/releases-as-tables/#latest
>
> The script extract_rays.py is to extract the laser ray only. You still
> need visit to find other output like density. You can also use python to
> extract the data. Other possibility is to use yt:
> https://yt-project.org/doc/visualizing/plots.html
>
> Regards,
>
> Dr. Ong Jian Fuh
> Extreme Light Infrastructure - Nuclear Physics
> "Horia Hulubei" National Institute for Physics and Nuclear Engineering
> 30 Reactorului Street, 077125 Magurele (Ilfov), Romaniawww.eli-np.ro
>
> On 22/06/2021 8:39 am, Sonali Khanna wrote:
>
> Dear all,
>
> I am able to run the example problem of the Laser slab.
>
> ./setup -auto LaserSlab -2d +cylindrical -nxb=16 -nyb=16 +hdf5typeio
> \species=cham,targ +mtmmmt +laser +uhd3t +mgd mgd_meshgroups=6
> \-parfile=example.par
>
> After that, I am trying to open the output "lasslab_hdf5_plt_cnt_0000"
> using the code extract_rays.py, but this showing error.
>
> Traceback (most recent call last):
>   File "extract_rays.py", line 156, in <module>
>     write_vtk(fn)
>   File "extract_rays.py", line 20, in write_vtk
>     h5file = tables.openFile(filename, "r")
> AttributeError: module 'tables' has no attribute 'openFile'.
>
> *Is there any way of extracting data from the hdf5 (output) file in
> general? Any help in this is much appreciated.  *
>
> Thanks and regards
> Sonali
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20210625/2916f6a4/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: extract_rays.py
Type: text/x-python
Size: 4457 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20210625/2916f6a4/attachment-0001.py>


More information about the flash-users mailing list