co_gas_mass
Computes molecular gas mass from CO line luminosity, converting to CO(1-0) via line ratios and applying alpha_CO or X_CO factors, with optional uncertainty inputs.
Instructions
Molecular gas mass from a CO line luminosity.
L'_CO(1-0) = L'_CO(J-[J-1]) / r_J1, where r_J1 is the brightness-temperature (L') ratio. If you only have a flux-density ratio S_J/S_1, set ratio_is_flux_density=True: r_J1 = (S_J/S_1) / J^2 (CO). M_mol = alpha_CO L'_CO(1-0). alpha_CO in Msun (K km/s pc^2)^-1: 4.35 Galactic INCLUDING helium (x1.36; 3.2 without), 0.8 ULIRG/SMG convention (stated with helium in most papers; check). Or give x_co (cm^-2 (K km/s)^-1, e.g. 2e20, H2 only): alpha_H2 = X_CO x 2 m_H / (Msun pc^-2), about 3.2 for 2e20, and x1.36 for M_mol with helium. Returns both M_mol (with He) and M_H2 (without) with the factor used. alpha_co_err is an absolute error on the factor in use: on alpha_co, or on the derived alpha_mol when x_co is given (the default alpha_co is ignored then). Limits: alpha_CO depends on metallicity and environment (factors of several); r_J1 for mid-J lines is a large assumed term; a flux ratio used as r_J1 underestimates the mass by J^2.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"l_prime_k_kms_pc2": "<l_prime_k_kms_pc2>"
},
"name": "co_gas_mass"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| r_j1 | No | ||
| x_co | No | ||
| j_upper | No | ||
| alpha_co | No | ||
| l_prime_err | No | ||
| alpha_co_err | No | ||
| l_prime_k_kms_pc2 | Yes | ||
| alpha_includes_helium | No | ||
| ratio_is_flux_density | No |