[yt-users] Problems reading GADGET 2 Binary datafile using yt

Alankar Dutta dutta.alankar at gmail.com
Wed Feb 22 10:17:18 PST 2017


Hello,

The entire snapshot file is huge (around 1 TB) so I am attaching only the
first part of it as of now via Google Drive. Hope this helps. I can share
it via other means if necessary.

Cheers,
Alankar​
 snapshot_068.0
<https://drive.google.com/file/d/0B6IIQdUdRX9UN3dWRkdLWWxjNjg/view?usp=drive_web>
​

On Wed, Feb 22, 2017 at 10:37 PM, Nathan Goldbaum <nathan12343 at gmail.com>
wrote:

> We should have support for outputs in the SnapFormat=1 output format in
> the latest release of yt. If you're not using the latest version of yt,
> please try updating. If it's a multi-file dataset, you should load the 0th
> file.
>
> If that is not working it would help to debug the issue if you can share
> an output file that isn't loading. The easiest way to share an ouput is to
> use the yt curldrop:
>
> https://docs.hub.yt/services.html#curldrop
>
> If you're not comfortable sharing the file publicly you can mail me
> off-list with the link to the output file.
>
> Hope that helps,
>
> Nathan
>
> On Wed, Feb 22, 2017 at 10:49 AM, Alankar Dutta <dutta.alankar at gmail.com>
> wrote:
>
>> Hello YT-community,
>>
>> This outputs are created with SnapFormat parameter set to 1. This is
>> requirement mentioned in the users guideline of yt.
>>
>> Cheers,
>> Alankar
>>
>> On Wed, Feb 22, 2017 at 10:02 PM, Alankar Dutta <dutta.alankar at gmail.com>
>> wrote:
>>
>>> Hello YT-community,
>>>
>>> I have been trying to use yt for analysis of the output from a GADGET 2
>>> simulation stored as an Unformatted Fortran Binary. It consists of files
>>> named as snapshot_068 which is divided into 1024 subfiles named as
>>> snapshot_068.0, snapshot_068.1 and so on. Whenever I am loading this with
>>> yt I am getting the following error message and I have got no idea as to
>>> how to fix this. I have also tried reading only one subfile of this multi
>>> part snapshot but with no success. I am relying on the community to help me
>>> in this regard.
>>>
>>> My code:
>>>
>>> fname = 'snapdir_068/snapshot_068'
>>> ds = yt.load(fname)
>>>
>>> Error displayed:
>>>
>>> yt : [ERROR    ] 2017-02-22 21:55:34,587 None of the arguments provided
>>> to load() is a valid file
>>> yt : [ERROR    ] 2017-02-22 21:55:34,587 Please check that you have used
>>> a correct path
>>> Traceback (most recent call last):
>>>   File "<stdin>", line 1, in <module>
>>>   File "/home/alankar/anaconda3/lib/python3.5/site-packages/yt/convenience.py",
>>> line 76, in load
>>>     raise YTOutputNotIdentified(args, kwargs)
>>> yt.utilities.exceptions.YTOutputNotIdentified: Supplied
>>> ('snapshot_068',) {}, but could not load!
>>>
>>>
>>>
>>>
>>> #Trying to read only one of the multi part file
>>> My code:
>>>
>>> fname = 'snapdir_068/snapshot_068.0'
>>> ds = yt.load(fname)
>>>
>>> Error displayed:
>>>
>>> yt : [ERROR    ] 2017-02-22 21:57:17,625 Couldn't figure out output type
>>> for /media/alankar/Seagate Expansion Drive/mb2/snapshots/snapdir_06
>>> 8/snapshot_068.0
>>> Traceback (most recent call last):
>>>   File "<stdin>", line 1, in <module>
>>>   File "/home/alankar/anaconda3/lib/python3.5/site-packages/yt/convenience.py",
>>> line 98, in load
>>>     raise YTOutputNotIdentified(args, kwargs)
>>> yt.utilities.exceptions.YTOutputNotIdentified: Supplied
>>> ('snapshot_068.0',) {}, but could not load!
>>>
>>>
>>> Cheers,
>>> Alankar
>>>
>>>
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170222/f3a045c6/attachment-0001.htm>


More information about the yt-users mailing list