Conditions necessary for an air mass to form

What are the conditions necessary for an air mass to form