One of my co-workers asked me today why does UV radiation reach earth but X-rays don’t. I offered that it was because of the earth’s magnetic field and he felt pretty sure that it has something to do with the atmosphere.
It’s the air, not the magnetic field. Magnetic fields bend the path of charged particles (e.g. solar wind), but photons do not have electrical charge and are not affected.
will give you an idea of the radiation received by airline crews from x-ray/cosmic radiation as well as from the normal background radiation we’re all receiving all the time.