@@ -0,0 +1,1665 @@
+'''This is a collection of meteorologically significant constants.'''%0A%0A#This should go away once scipy 0.7 is released and can be depended upon%0Atry:%0A    from scipy.constants import pi, day, value, kilo%0A    R = value('molar gas constant')%0A    del value%0Aexcept ImportError:%0A    from math import pi%0A    day = 86400.%0A    kilo = 1000.0%0A    R = 8.314472%0A%0A#Earth%0ARe = earth_avg_radious = 6.37e6 # m%0Ag = earth_avg_gravity = 9.81 # m s%5E-2%0Aomega = earth_avg_angular_vel = 2 * pi / day # rad s%5E-1%0Ad = earth_sfc_avg_dist_sun = 1.50e11 # m%0AS = earth_solar_irradiance = 1.38e3 # W m%5E-2%0A%0A#Water%0AMw = water_molecular_weight = 18.016 # g / mol%0ARv = water_gas_constant = R / Mw * kilo #J K%5E-1 kg%5E-1%0Arho_l = density_water = 1e3 # Nominal density of liquid water at 0C in kg m%5E-3%0ACp_v = water_vapor_specific_heat_press = 1952. # J K%5E-1 kg%5E-1%0ACv_v = water_vapor_specific_heat_vol = 1463. # J K%5E-1 kg%5E-1%0ACp_l = water_specific_heat = 4218. # at 0C J K%5E-1 kg%5E-1%0ALv = water_latent_heat_vaporization = 2.5e6 #0C J kg%5E-1%0ALf = water_latent_heat_fustion = 3.34e5 #0C J kg%5E-1%0ACp_i = ice_specific_heat = 2106 # at 0C J K%5E-1 kg%5E-1%0Arho_i = density_ice = 917 # at 0C in kg m%5E-3%0A%0A#Dry air%0AMd = dry_air_molecular_weight = 28.97 # g / mol at the sfc%0ARd = dry_air_gas_constant = R / Md * kilo # J K%5E-1 kg%5E-1%0ACp_d = dry_air_spec_heat_press = 1004. # J K%5E-1 kg%5E-1%0ACv_d = dry_air_spec_heat_vol = 717. # J K%5E-1 kg%5E-1%0Adry_air_density_stp = 1.275 # at 0C 1000mb in kg m%5E-3%0A%0A#General meteorology constants%0AP0 = pot_temp_ref_press = 100000. # Pa%0Akappa = poisson_exponent = Rd / Cp_d%0Agamma_d = dry_adiabatic_lapse_rate = g / Cp_d * kilo # K km%5E-1%0Aepsilon = molecular_weight_ratio = Mw / Md%0A%0Adel pi, day, R, kilo%0A

Add a file with meteorologically significant constants.