_______________________________________________Dear all,I have the following derived field:h=0.702@derived_field(name = "Name", take_log=False, units='g/s**3')
def _Name(field, data):
temp = data["Mach"].copy()
temp.fill(0)
ind = np.where(((data['dx']*128*1000)*(1+z)*h<100))
temp[ind]= 0.5*data["Density"][ind]*(data["Mach"][ind]*data["SoundSpeed"][ind])**3
return tempHow to check that, how many cells with cell size less than 100 kpc (data['dx']*128*1000)*(1+z)*h<100) ?thankyou--Reju Sam John
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org