Hi Nathan, thank for the quick response! Unfortunately, I cannot update YT because I must use a particular version given on a cluster. I have already known about sp.quantities.extrema("temperature”) but was wondering if there is something similar to the argmax-command in order to specify for example argmax(“temperature”, axis = “density”). Best, Katharina
On 23.11.2016, at 17:06, Nathan Goldbaum <nathan12343@gmail.com> wrote:
Hi Katharina,
This is a new feature in yt 3.3, if you're using an older version I'd urge you to update.
If you can't update, you can do:
sp.quantities.extrema("temperature")
To get both the max and minimum value.
Nathan
On Wed, Nov 23, 2016 at 10:55 AM Katharina Wollenberg <k.wollenberg@stud.uni-heidelberg.de <mailto:k.wollenberg@stud.uni-heidelberg.de>> wrote: Hi together,
I want to find out, among others, temperature and pressure values corresponding to a maximum density value within a spherical volume. I thought about using YTSphere.max(…) or YTSphere.argmax(…) for this purpose. However, in both cases I get the Attribute error “ “YTSphere” object has no attribute “max” “ .
What might be the error origin? Have I forgotten something obvious?
Regards,
Katharina
------------------------------------------------------- Katharina Wollenberg PhD Student in Astronomy
Zentrum für Astronomie der Universität Heidelberg (ZAH) Institute of Theoretical Astrophysics (ITA) Albert-Ueberle-Str. 2 69120 Heidelberg Germany
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org <mailto:yt-users@lists.spacepope.org> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org <http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org> <max-error.png>_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org