Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WRFChem_for_PALM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MBEES
WRFChem_for_PALM
Merge requests
!27
fix vars without chem
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix vars without chem
wrfchem_var
into
main
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Christoph Knote
requested to merge
wrfchem_var
into
main
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
f131c2ee
1 commit,
2 years ago
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
dynamic/palm_dynamic.py
+
3
−
1
Options
@@ -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
Loading