[yt-users] getting real scalar value

Matthew Turk matthewturk at gmail.com
Fri Dec 8 07:14:01 PST 2017


Hi Jon,

You can see all of these in under ds.parameters, which is populated from
all the non-field values.

-Matt

On Fri, Dec 8, 2017 at 9:08 AM, Slavin, Jonathan <jslavin at cfa.harvard.edu>
wrote:

> Hi,
>
> I would like to get the value of the timestep from my FLASH data read in
> by yt.  In HDFView I can see the value of 'dt' under 'real scalars'.  Using
> yt to read in the data, though I don't see any way to access it, if it is
> contained in the ds.  The field list just shows the grid variables. I can
> get the absolute time via ds.current_time. There are a number of different
> items at the top level in HDFView, e.g. bflags, block size, sim info, that
> are not available, as far as I can tell, from the ds object. Am I missing
> something?  Is there any way to get yt to read in specific variables like
> dr (under "real scalars")?
>
> Thanks,
> Jon
>
> --
> ________________________________________________________
> Jonathan D. Slavin                 Harvard-Smithsonian CfA
> jslavin at cfa.harvard.edu       60 Garden Street, MS 83
> phone: (617) 496-7981       Cambridge, MA 02138-1516
> cell: (781) 363-0035             USA
> ________________________________________________________
>
>
> _______________________________________________
> 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/20171208/bf8f821a/attachment.html>


More information about the yt-users mailing list