[yt-users] changing units for data in a projection container

mc knabbits elknabbits at googlemail.com
Wed Jun 10 11:11:04 PDT 2015


hi,
I have the simple problem that I cant figure out how to change the units 
for data within a|||YTQuadTreeProjBase. so I'm stuck with code units all 
along. heres my script part:


     ds = yt.load(some ramses data)

     prj = ds.proj("Density", 2)
     prj.apply_units(arr,'g/cm**2')   #maybe it's all because I dont 
know what to put in for "arr"

     frb=prj.to_frb((10,'pc'),(1024,1024))
     surfdense=np.array(frb[density])



  as you can see the unit I need is g/cm**2 but the method applied above 
dont work!?

thanx for your help

phil
|||

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150610/76405b89/attachment.htm>


More information about the yt-users mailing list