Skip to content
Snippets Groups Projects
Commit 1275c05c authored by Jean du Preez's avatar Jean du Preez
Browse files

Merge branch 'wrfchem_var' into 'main'

fix vars without chem

See merge request mmbees-git/wrf_chem_for_palm!27
parents 09d86ef2 f131c2ee
No related branches found
No related tags found
1 merge request!27fix vars without chem
......@@ -132,7 +132,7 @@ if grid_from_static:
th = np.ceil(terrain_rel / dz)
# building height
if 'buildings_3d' in ncs.variables.keys():
print(np.argmax(a != 0, axis=0))
#print(np.argmax(a != 0, axis=0))
bh3 = ncs.variables['buildings_3d'][:]
# minimum index of nonzeo value along inverted z
bh = np.argmax(bh3[::-1], axis=0)
......@@ -364,6 +364,8 @@ for wrf_file in wrf_files_proc:
# add chemical species if included
if len(wrfchem_spec)>0:
wrfchem_variables = wrfchem_dynamic + wrfchem_spec
else:
wrfchem_variables = wrfchem_dynamic
# add aerosol species if included
N_avr = 6.022e23 # Avargardo constant
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment