[yt-users] Log scale

Greg Bryan gbryan at astro.columbia.edu
Thu Jun 9 10:02:16 PDT 2011


Just wanted to point out that the potential field has a gauge freedom  
that lets you add a constant, so you can always make it positive.

Greg

On Jun 9, 2011, at 11:39 AM, Matthew Turk wrote:

> Hi Elizabeth,
>
> I think Sam's right, the onyl way to make your entire potential field
> positive is to scale it with the Extrema.  But if you just want to
> change the linear to log scaling, use p.set_log_field(True).
>
> -Matt
>
> On Thu, Jun 9, 2011 at 8:05 AM, Sam Skillman <samskillman at gmail.com>  
> wrote:
>> Hi Elizabeth,
>> You should be able to create a derived field
>> (http://yt.enzotools.org/doc/advanced/creating_derived_quantities.html 
>> ) that
>> is not negative and then it should show up as logarithmic.  Maybe  
>> make an
>> PotentialFieldMagnitude quantity using the absolute magnitude or  
>> something
>> similar.  You may need to specify the take_log=True keyword in the
>> add_quantity call, but True should be the default keyword argument.
>> Sam
>> On Thu, Jun 9, 2011 at 10:57 AM, Elizabeth Tasker <taskere at mcmaster.ca 
>> >
>> wrote:
>>>
>>> Hi,
>>>
>>> I'm doing slices of the potential field:
>>>
>>> p = pc.add_slice("PotentialField", 2)
>>> pc.set_width(10, 'kpc')
>>> p.set_zlim(-4500,-2500)
>>> p.modify["grids"]()
>>>
>>> Is there a way to force the scale to the logarithmic like for  
>>> density
>>> slices?
>>>
>>> thanks,
>>>
>>> Elizabeth
>>> _______________________________________________
>>> 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
>>
>>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>




More information about the yt-users mailing list