Usage ave/chunk and chunk/atom instead of ave/spatial

I was using an older code which had ave/spatial fix style:

fix 4a all ave/spatial 1 1000000 1000000 x lower 10.0 v_atemp file 10Temperature.txt units box
fix 4b all ave/spatial 1 1000000 1000000 x lower 20.0 v_atemp file 20Temperature.txt units box
fix 5a all ave/spatial 1 2000000 2000000 x lower 10.0 v_atemp file 10Temperature2.txt units box
fix 5b all ave/spatial 1 2000000 2000000 x lower 20.0 v_atemp file 20Temperature2.txt units box
fix 6a all ave/spatial 1 4000000 4000000 x lower 10.0 v_atemp file 10Temperature4.txt units box
fix 6b all ave/spatial 1 4000000 4000000 x lower 20.0 v_atemp file 20Temperature4.txt units box

At the end of the log.lammps file I got the error:
"Fix styles ‘ave/spatial’ and ‘ave/spatial/sphere’ have been replaced
by the more general fix ave/chunk and compute chunk/atom commands.
All ave/spatial and ave/spatial/sphere functionality is available in these
new commands. These ave/spatial keywords & options are part of fix ave/chunk:
Nevery, Nrepeat, Nfreq, input values, norm, ave, file, overwrite, title123
These ave/spatial keywords & options for binning are part of compute chunk/atom:
dim, origin, delta, region, bound, discard, units
ERROR: This fix style is no longer available (…/fix_deprecated.cpp:55)

Could you please rewrite the lines I presented using ave/chunk and chunk/atom
instead of ave/spatial. Thank you.

Please note that LAMMPS is a non-commercial software and that people responding here are volunteering their time. Please see the forum guidelines post.

To solve your problem, please have a look at the LAMMPS documentation: