<div dir="ltr">Hi Chris,<div><br></div><div style>I am just using the default output that BoxLib has, so I guess its pretty standard. Attached is a Header file from one of my plt files.</div><div style><br></div><div style>
Cheers,<br>Mani</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 24, 2013 at 10:58 AM, Chris Malone <span dir="ltr"><<a href="mailto:chris.m.malone@gmail.com" target="_blank">chris.m.malone@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Mani,<div><br></div><div>The pull request mentioned by the others is your best bet. That being said, I don't think any of the BoxLib frontend has been written for two-dimensional datasets, yet. It would be a useful addition. Our groups' current MO of getting Matplotlib-like plots of 2d BoxLib data is cumbersome and uses some fortran code that interfaces with the BoxLib underlying data formats, wrapped in f2py calls to get the data into numpy arrays.</div>
<div><br></div><div>I too have been bandwidth-limited lately, but hopefully I can get back to working out the issue to which Matt alluded.</div><div><br></div><div>For completeness, is there anything in particular outside of the standard Header file (or job_info, if that exists) that is needed to visualize or make sense of your dataset?</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>Chris</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 24, 2013 at 8:03 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mani,<br>
<br>
Nathan and Andrew's suggestions are about right -- the boxlib frontend<br>
rewrite is definitely going to be the best way to do this, as I think<br>
it's much more generic than the current fragmented state. I've been<br>
bandwidth limited on that front, but if you look in the main PR you'll<br>
see the outstanding issues. I think the last one that was presenting<br>
a problem was the issue of varying refinement factors between levels,<br>
but I think Chris Malone and I have figured that out. I hope to be<br>
able to implement it soon, but I'm going to be on vacation for a few<br>
weeks starting Friday and so I won't be able to look at it during that<br>
time.<br>
<br>
Best,<br>
<br>
Matt<br>
<div><div><br>
On Tue, Jul 23, 2013 at 10:41 PM, Mani Chandra <<a href="mailto:mc0710@gmail.com" target="_blank">mc0710@gmail.com</a>> wrote:<br>
> Thanks Nathan! That looks like a good place to start.<br>
><br>
><br>
> On Wed, Jul 24, 2013 at 12:29 AM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi Mani,<br>
>><br>
>> Take a look at this pull request from Matt:<br>
>> <a href="https://bitbucket.org/yt_analysis/yt/pull-request/501/consolidation-of-boxlib-frontends" target="_blank">https://bitbucket.org/yt_analysis/yt/pull-request/501/consolidation-of-boxlib-frontends</a><br>
>><br>
>> I suspect it will be a lot easier to write a frontend using this new<br>
>> framework. I think there are still a few minor issues to work out (that's<br>
>> why it's not in the codebase yet) but it should be a good place to start.<br>
>><br>
>> Andrew and Matt should have more information about this.<br>
>><br>
>> -Nathan<br>
>><br>
>><br>
>> On Tue, Jul 23, 2013 at 10:27 PM, Mani Chandra <<a href="mailto:mc0710@gmail.com" target="_blank">mc0710@gmail.com</a>> wrote:<br>
>>><br>
>>> Hi Andrew,<br>
>>><br>
>>> This is a code which I'm writing now using the BoxLib framework, so it is<br>
>>> not exactly any of Nyx, Castro, Maestro or Orion. But I thought that since<br>
>>> they all use BoxLib, I could simply use any of those frontends (although<br>
>>> those frontends require a lot of parameters specific to those codes, which I<br>
>>> just commented out).<br>
>>><br>
>>> So I guess I'll have to write a frontend then.<br>
>>><br>
>>> Thanks,<br>
>>> Mani<br>
>>><br>
>>><br>
>>> On Wed, Jul 24, 2013 at 12:21 AM, Andrew Myers <<a href="mailto:atmyers2@gmail.com" target="_blank">atmyers2@gmail.com</a>><br>
>>> wrote:<br>
>>>><br>
>>>> Hi Mani,<br>
>>>><br>
>>>> To my knowledge, no one has ever used yt with 2D Orion data. I'm not<br>
>>>> sure if any of the other BoxLib codes support 2D. I think the reason the<br>
>>>> Orion code is getting called is because yt can tell your dataset uses<br>
>>>> BoxLib, but not that it belongs to any of the other BoxLib-based codes (Nyx,<br>
>>>> Castro, or Maestro), so it falls back to Orion.<br>
>>>><br>
>>>> What simulation code generated this dataset? If it's not one of Nyx,<br>
>>>> Castro, Maestro, or Orion, then you'll probably need to write a new frontend<br>
>>>> for your data.<br>
>>>><br>
>>>> -Andrew Myers<br>
>>>><br>
>>>> On Tue, Jul 23, 2013 at 7:50 PM, Mani Chandra <<a href="mailto:mc0710@gmail.com" target="_blank">mc0710@gmail.com</a>> wrote:<br>
>>>>><br>
>>>>> Hi Everyone,<br>
>>>>><br>
>>>>> I'm trying to load a 2D BoxLib file into yt. It looks like it is using<br>
>>>>> the same code as the Orion frontend and it fails with the following error:<br>
>>>>><br>
>>>>><br>
>>>>> /home/mc/Downloads/yt/yt-x86_64/src/yt-hg/yt/data_objects/static_output.pyc<br>
>>>>> in hierarchy(self)<br>
>>>>> 191 raise RuntimeError("You should not instantiate<br>
>>>>> StaticOutput.")<br>
>>>>> 192 self._instantiated_hierarchy =<br>
>>>>> self._hierarchy_class(<br>
>>>>> --> 193 self, data_style=self.data_style)<br>
>>>>> 194 return self._instantiated_hierarchy<br>
>>>>> 195 h = hierarchy # alias<br>
>>>>><br>
>>>>><br>
>>>>> /home/mc/Downloads/yt/yt-x86_64/src/yt-hg/yt/frontends/orion/data_structures.py<br>
>>>>> in __init__(self, pf, data_style)<br>
>>>>> 119 self.data_style = data_style<br>
>>>>> 120<br>
>>>>> --> 121<br>
>>>>> self.readGlobalHeader(header_filename,self.parameter_file.paranoid_read) #<br>
>>>>> also sets up the grid objects<br>
>>>>> 122 self.__cache_endianness(self.levels[-1].grids[-1])<br>
>>>>> 123 AMRHierarchy.__init__(self,pf, self.data_style)<br>
>>>>><br>
>>>>><br>
>>>>> /home/mc/Downloads/yt/yt-x86_64/src/yt-hg/yt/frontends/orion/data_structures.py<br>
>>>>> in readGlobalHeader(self, filename, paranoid_read)<br>
>>>>> 194 self.dimension =<br>
>>>>> int(self.__global_header_lines[counter])<br>
>>>>> 195 if self.dimension != 3:<br>
>>>>> --> 196 raise RunTimeError("Orion must be in 3D to use<br>
>>>>> yt.")<br>
>>>>> 197 counter += 1<br>
>>>>> 198 self.Time = float(self.__global_header_lines[counter])<br>
>>>>><br>
>>>>> Has anyone managed to load 2D Orion files into yt?<br>
>>>>><br>
>>>>> Thanks,<br>
>>>>> Mani<br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> yt-users mailing list<br>
>>>>> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
>>>>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> yt-users mailing list<br>
>>>> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
>>>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> yt-users mailing list<br>
>>> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
>>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> yt-users mailing list<br>
>> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>