Hello, If load in a parameter file ( *pf = load("~/data/Enzo/DD0252/DD0252")*) and access the dictionary via *pf['Density'] *it returns a value of 2.49711e-30. I realize that if I enter *pf['mpc'] *it returns the conversion factor to go from system units to physical units. If yt keeps everything in cgs, then what conversion factor (if any) does *pf['Density'] *return? Thanks! ~ali
Hi Ali, pf["Density"] returns the conversion factor yt uses internally. This is a confusing point -- the only conversions that are meaningful are time and length; all of the fields are returned pre-converted. This is a confusing point, and earlier this week on the dev mailing list we decided to deprecate access to the parameter file via ["whatever"] so as to reduce potential tripping points: http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/2012-February/0018... (and subsequent messages in that thread) -Matt PS Welcome to yt-users! On Thu, Feb 23, 2012 at 4:35 PM, Ali Snedden <asnedden@nd.edu> wrote:
Hello,
If load in a parameter file ( pf = load("~/data/Enzo/DD0252/DD0252")) and access the dictionary via pf['Density'] it returns a value of 2.49711e-30. I realize that if I enter pf['mpc'] it returns the conversion factor to go from system units to physical units. If yt keeps everything in cgs, then what conversion factor (if any) does pf['Density'] return? Thanks!
~ali
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Ali Snedden
-
Matthew Turk