The intensity variations of solar and galactic cosmic rays with azimuthal angle in the polar region