Metallicity, temperature, and gravity scales of M subdwarfs,