[yt-users] FRB with different weights

Nathan Goldbaum nathan12343 at gmail.com
Wed Jul 29 11:56:59 PDT 2015


On Wednesday, July 29, 2015, David Collins <dcollins4096 at gmail.com> wrote:

> Can I cram multiple FRBs into export_dataset?
>

You can have multiple data objects, each with a different weight_field.


>
> On Wed, Jul 29, 2015 at 2:42 PM, Matthew Turk <matthewturk at gmail.com
> <javascript:_e(%7B%7D,'cvml','matthewturk at gmail.com');>> wrote:
>
>> Hi Dave,
>>
>> Right now, no, you'll need multiple FRBs for that.
>>
>> -Matt
>>
>> On Wed, Jul 29, 2015 at 2:41 PM, David Collins <dcollins4096 at gmail.com
>> <javascript:_e(%7B%7D,'cvml','dcollins4096 at gmail.com');>> wrote:
>> > Hi, Everybody--
>> >
>> > When I get a field out of an frb, is it possible to specify the weight
>> field
>> > separately for different fields?  EG if I do
>> >>>> proj = ds.proj('density',0)
>> >>>> frb = proj.to_frb(1,2)
>> >>>> frb['vx', weight_field='cell_mass']
>> > or something like that?  So I make an un-weighted projection, the get a
>> > weighted average for a different field.
>> >
>> > The reason I'm asking is we're making phase plots of projected
>> quantities,
>> > using the export_frb functionality.  We'd like to have one axis a
>> weighted
>> > quantity, and the other unweighted.
>> >
>> > Thanks!
>> > d.
>> >
>> > --
>> > -- Sent from a computer.
>> >
>> > _______________________________________________
>> > yt-users mailing list
>> > yt-users at lists.spacepope.org
>> <javascript:_e(%7B%7D,'cvml','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
>> <javascript:_e(%7B%7D,'cvml','yt-users at lists.spacepope.org');>
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>
>
>
> --
> -- Sent from a computer.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150729/6d1fb7b4/attachment.html>


More information about the yt-users mailing list