<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi everyone,<br>
<br>
        I have a question using the create_profile routine. I am currently using yt for analyzing FLASH data (creating 1D radial density profile namely). Now I am encountering trouble where after creating the profile, the field value is outputting a lot of
 zeros around the domain centre.<br>
<br>
ds = yt.load(filename)<br>
sphere = ds.sphere(ds.domain_center, (300.0, "kpc")) <br>
print sphere["density"][1:50].value<br>
profile = yt.create_profile(sphere, "radius", "density",<br>
                                   weight_field = "cell_volume",units = {'radius': 'kpc'})<br>
print profile["density"][1:50].value<br>
<br>
<br>
    After creating the sphere, the field value has no zeros; they only start to occur after creating the profile. I have used other methods to check my simulation and there are no zero densities involved. So I was wondering if there is something in the create_profile
 routine (maybe the weighting or binning) is causing this, and how could I get rid of the them?<br>
<br>
<br>
      Thanks all,<br>
      Yinghe<br>
    <br>
</div>
</body>
</html>