Skip to content

Commit

Permalink
provide mec in m2.g-1
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustinMortier committed Oct 29, 2024
1 parent d1eb7db commit 9cc2e93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aer_ifs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ def compute_mec(ds: xr.DataArray, vars: List[str], wavs: List[int], rhs: List[in
key_vars = []
for var in vars:
species = var[:2]
ds[f'mec-{species}-{wav}-{rh}'] = ds[f'{var}/aod550'] * ifs_species_mec(species, wav, rh)
ds[f'mec-{species}-{wav}-{rh}'] = ds[f'{var}/aod550'] * ifs_species_mec(species, wav, rh) * 1e-3
key_vars.append(f'mec-{species}-{wav}-{rh}')
ds[f'mec-{wav}-{rh}'] = sum(ds[key_var] for key_var in key_vars)
ds[f'mec-{wav}-{rh}'] = ds[f'mec-{wav}-{rh}'].assign_attrs({
'long_name': f'MEC at {wav}nm and RH: {rh}%',
'units': 'm2 kg-1'
'units': 'm2 g-1'
})

# clean up vars
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aer-ifs"
version = "0.5.4"
version = "0.5.5"
description = "Lidar Ratio computation from ECMWF IFS model data"
authors = ["augustinm <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 9cc2e93

Please sign in to comment.