[yt-users] FRB with different weights

Nathan Goldbaum nathan12343 at gmail.com
Wed Jul 29 13:12:52 PDT 2015


On Wed, Jul 29, 2015 at 3:09 PM, David Collins <dcollins4096 at gmail.com>
wrote:

>
> I'm trying to make a 2d phase plot from a projection.
> What I've been doing was making an frb, then using export_dataset  to make
> something I can hand to yt.PhasePlot.
>
> >> ds_frb = frb.export_dataset(fields=field_pass, nprocs=8)
> >> ad = ds_frb.all_data()
> >> yt.PhasePlot(ad, etc.)
>
> Is there a similar thing I can do with multiple frb?
>

Couldn't you just iterate over a list of data objects, generating a unique
FRB in each loop iteration?

Schematically:

>>> objects = [ds.proj(..., weight_field=None), ds.proj(...
weight_field='density')]
>>>
>>>for obj in objects:
...       frb = obj.to_frb(...)
...       ds_frb = frb.export_dataset(...)


> d.
>
>
>
>>
>>
>>>
>>> d.
>>>
>>>
>>>
>>>> In principle we could let the projection object accept a list of weight
>>>> fields (which is what you want, I think), but that's not how it works right
>>>> now.
>>>>
>>>>
>>>>>
>>>>> d.
>>>>>
>>>>> --
>>>>> -- Sent from a computer.
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> -- Sent from a computer.
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
>
> --
> -- Sent from a computer.
>
> _______________________________________________
> 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/20150729/786fff1d/attachment.html>


More information about the yt-users mailing list