Nov. 1, 2018
9:59 a.m.
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 temp How 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