zxdawn / S5P-WRFChem

Core code for the TROPOMI NO2 retrieval based on WRF-Chem outputs
GNU General Public License v3.0
13 stars 2 forks source link

Save p_bot and p_top instead of creating p_full which has extra one layer #28

Open zxdawn opened 2 years ago

zxdawn commented 2 years ago

Describe the bug

https://github.com/zxdawn/S5P-WRFChem/blob/09410ff530d77bef7e90316efeb89290e9ad953e/main/s5p_utils.py#L93-L98

This may raise error if s5p is a xarray Dataset, because the layer dimension of p is one more.

Expected behavior

It's better to save p_bot and p_top which have the same level of layer.