Hydrogen bonds density profile

Hi there,

I want to obtain the hydrogen bonding density profile, and as far as I know,  script in this forum can't solve it now. I find an example(zhou bo et al, structure and dynamics of ethanol adsorbed on a mica surface, 57(2012):308-314.) listed as following:

1.png

Because there are different hbonds pattern (N O ), I hope we can identify what it is. I will be grateful for any help.

Best Regards