<p>Well, the variable <code>PBLH</code> should tell you the PBL height. If you want the level that the PBL is, I suggest modifying the <a href="https://github.com/wrf-model/WRF/blob/master/Registry/Registry.EM_COMMON" rel="nofollow noreferrer">Registry.EM_COMMON</a> file.</p>
<p>Perhaps I can refer you to <a href="https://wrf-python.readthedocs.io/en/latest/index.html" rel="nofollow noreferrer">WRF-Python</a> to help you with your calculation. For example, <a href="https://wrf-python.readthedocs.io/en/latest/user_api/generated/wrf.interplevel.html#wrf.interplevel" rel="nofollow noreferrer">wrf.interplevel</a> might be the function to use to interpolate to the PBL height. If you interpolate to fractions of the PBL height, <a href="https://docs.scipy.org/doc/scipy/reference/integrate.html" rel="nofollow noreferrer">you could one of the integration methods</a> to sum up the number of fractions of the PBL height and get the average concentration of <span class="math-container">$\ce{CO2}$</span> in the PBL (also, divide by the PBL height to actually get the average).</p>

CC BY-SA 4.0
2021-05-12T21:42:15.290Z
thank you dear BarocliniCplusplus for your response. yes I would like to have and calculate the **column average of CO2**(summation of CO2) from surface to end of PBL height. can the program you have introduced me help me in this matter? Thank you very much indeed.
sara
CC BY-SA 4.0
2021-05-12T22:05:12.233Z
Well, it can get you part way. Since it lets you interpolate to different heights, you can use any of the integration methods of your choice to integrate over the PBL height. For example, you can interpolate halfway and use the trapezoidal integration to get an estimate.
BarocliniCplusplus
CC BY-SA 4.0
2021-05-11T20:28:38.090Z
2021-05-11T20:28:38.090Z
BarocliniCplusplus
<p>I am working on WRF_Chem, I would like to calculate the concentration of CO2 just in the Planetary boundary layer(I mean, I want to calculate CO2 from surface to top of PBL).in WRF How can I calculate the level of PBL.
in WRF we have (PBLH: the height of PBL but it doesn't inform us what is the top level of PBL compare all level of the model?).
my model has a 37vertical levels.
If I Know the level of PBL, I will calculate the pressure weight of its level and calculate the contribution of PBL concentration.
how can I find the concentration Of CO2 in PBL height considering the weight of PBL layer?
thank you for all your guidance.</p>

<meteorology><weather-forecasting><wind><wrf><wrf-chem>
How to find the top level of the planetary boundary layer in WRF?
sara
# How to find the top level of the planetary boundary layer in WRF?

(Asked by: username_0 on 2021-05-11)

I am working on WRF\_Chem, I would like to calculate the concentration of CO2 just in the Planetary boundary layer(I mean, I want to calculate CO2 from surface to top of PBL).in WRF How can I calculate the level of PBL.
in WRF we have (PBLH: the height of PBL but it doesn't inform us what is the top level of PBL compare all level of the model?).
my model has a 37vertical levels.
If I Know the level of PBL, I will calculate the pressure weight of its level and calculate the contribution of PBL concentration.
how can I find the concentration Of CO2 in PBL height considering the weight of PBL layer?
thank you for all your guidance.

**Tags:** meteorology, weather-forecasting, wind, wrf, wrf-chem


---

## 1 answers

### Answer by username_1 on 2021-05-11. Score: 2

Well, the variable `PBLH` should tell you the PBL height. If you want the level that the PBL is, I suggest modifying the [Registry.EM\_COMMON](https://github.com/wrf-model/WRF/blob/master/Registry/Registry.EM_COMMON) file.

Perhaps I can refer you to [WRF-Python](https://wrf-python.readthedocs.io/en/latest/index.html) to help you with your calculation. For example, [wrf.interplevel](https://wrf-python.readthedocs.io/en/latest/user_api/generated/wrf.interplevel.html#wrf.interplevel) might be the function to use to interpolate to the PBL height. If you interpolate to fractions of the PBL height, [you could one of the integration methods](https://docs.scipy.org/doc/scipy/reference/integrate.html) to sum up the number of fractions of the PBL height and get the average concentration of $\ce{CO2}$ in the PBL (also, divide by the PBL height to actually get the average).

> **Comments:**
> **username_0**: thank you dear username_1 for your response. yes I would like to have and calculate the **column average of CO2**(summation of CO2) from surface to end of PBL height. can the program you have introduced me help me in this matter? Thank you very much indeed.  
> **username_1**: Well, it can get you part way. Since it lets you interpolate to different heights, you can use any of the integration methods of your choice to integrate over the PBL height. For example, you can interpolate halfway and use the trapezoidal integration to get an estimate.  

---

