Kukul said:
whaleswiththumbs said:
You measure it's pressure (p), temperature (T) and volume (V) and with the Clapeyron's equation, you know the amount of O, N and other particles, which come in particular proportions and have a fixed weight (M), in mols

.
pV=nRT
n=pV/RT
nM=m
Let me dumb it down a bit.
The ideal function of gases states that pV=nRT, where p=pressure, V=volume n=the amount of particles, R=Rydberg's constant (a constant like the value of pi) and T=temperature.
We wish to calculate the mass of the air, or m.
We know that nM=m or the amount of particles

times their atomic weight (M)= mass (m).
We know the precise mix of gases atmosphere or air is composed of and therefore can simply check the total atomic mass (or M) from the values given in the periodic table of elements. Therefore mass = a constant (the atomic weight of air) times the amount of particles.
We can calculate the amount of particles with the equation for the Ideal gas. pV=nRT, therefore n=pV/RT.
Pressure is nothing more than mass divided by an area. Industrial containers and the bottles used by divers have built-in pressure indicators. There are also hand-held pressure measuring tools.
The volume (or V) of the gas (air in this case) is simply the internal volume of the container (usually engraved to the side of an industrial container bottle or easily calculated by measuring the container).
R, as stated earlier, is a constant, with a value of approx. 8,31451 Joules/mol*Kelvin or 0,0831451 bar*cubic desimeter/mol*Kelvin.
Temperature is simply the temperature the gas is in (measured in Kelvins in this case).
Now we have it. mass = atomic weight of air * the result of pV/RT. Input values to your calculator and you have an answer.