The cylindrical masking processor, as you observed, applies a mask to an existing map, it doesn't replace the map with the mask. To get a maskfile you need to apply the mask to a map containing 1 in all of the pixels instead. This is easily done.
- adjust the settings in e2filtertool using your data as a reference (as you have already done)
- look at the filtertool_default.txt file which should have been created (use 'cat' on linux/mac, or a text editor)
- you should see a line which looks something like this:
--process=mask.cylinder:inner_radius=0.0:outer_radius=100:phicen=14.0:phirange=25.71:phitriangle=True:phitrirange=25.71:zmax=200.0:zmin=128.0:ztriangle=3.0
- run this command:
e2proc3d.py 256:256:256:1 mymask.hdf --process=mask.cylinder:inner...
where 256 is the size of the mask in pixels, and the --process section is copied and pasted from the text file.
The nx:ny:nz:1 syntax in e2proc3d creates a new image of the specified size and initializes it with the specified value. It can be used for a variety of purposes, including mask creation.