The accurate classification of the environments where the galaxies belong becomes a key point in order to understand its role in galaxy evolution. The aim of this ongoing project is to take advantage of a large sample of galaxy halos extracted from a high resolution cosmological dark matter simulation to reproduce the data available for observational surveys and test the methods. Spectroscopical surveys have proved to be useful on this issue, but their cost in observational time constitute an important limitation.