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
!26
fix outspcies typo
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix outspcies typo
output_fix
into
main
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Christoph Knote
requested to merge
output_fix
into
main
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
fix typo in palm output drivers
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
089af80b
1 commit,
2 years ago
3 files
+
9
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
dynamic/palm_dynamic.py
+
6
−
4
Options
@@ -214,7 +214,7 @@ print('cent_lon, cent_lat:', cent_lon, cent_lat)
irange
=
origin_x
+
dx
*
(
np
.
arange
(
nx
,
dtype
=
'
f8
'
)
+
.
5
)
jrange
=
origin_y
+
dy
*
(
np
.
arange
(
ny
,
dtype
=
'
f8
'
)
+
.
5
)
palm_grid_y
,
palm_grid_x
=
np
.
meshgrid
(
jrange
,
irange
,
indexing
=
'
ij
'
)
transformer2
=
Transformer
.
from_crs
(
inproj
,
lonlatproj
,
always_xy
=
True
)
transformer2
=
Transformer
.
from_crs
(
inproj
,
lonlatproj
,
always_xy
=
True
)
palm_grid_lon
,
palm_grid_lat
=
transformer2
.
transform
(
palm_grid_x
,
palm_grid_y
)
######################################
@@ -360,13 +360,15 @@ for wrf_file in wrf_files_proc:
# create list of variables
# dynamical variables
wrfchem_dynamic
=
[
'
PH
'
,
'
PHB
'
,
'
HGT
'
,
'
T
'
,
'
W
'
,
'
TSLB
'
,
'
SMOIS
'
,
'
MU
'
,
'
MUB
'
,
'
P
'
,
'
PB
'
,
'
PSFC
'
]
# add chemical species if included
if
len
(
wrfchem_spec
)
>
0
:
wrfchem_variables
=
wrfchem_dynamic
+
wrfchem_spec
# add aerosol species if included
N_avr
=
6.022e23
# Avargardo constant
inv_den
=
f_wrf
.
variables
[
'
ALT
'
][
0
]
# inverse density
N_avr
=
6.022e23
# Avargardo constant
inv_den
=
f_wrf
.
variables
[
'
ALT
'
][
0
]
# Inverse density
t00
=
f_wrf
.
variables
[
'
T00
'
][
0
]
# Perturbation pt to standard (T00 wrf-chem variable)
for
varname
in
wrfchem_variables
:
# gaseous aerosols
@@ -487,7 +489,7 @@ for wrf_file in wrf_files_proc:
print
(
'
Vertical interpolation...
'
)
palm_wrf_utils
.
palm_wrf_vertical_interp
(
hinterp_file
,
vinterp_file
,
wrf_file
,
z_levels
,
z_levels_stag
,
z_soil_levels
,
origin_z
,
terrain
,
wrf_hybrid_levs
,
vinterp_terrain_smoothing
,
nz
,
ny
,
nx
)
wrf_hybrid_levs
,
vinterp_terrain_smoothing
,
nz
,
ny
,
nx
,
t00
)
if
radiation_from_wrf
:
print
(
'
Start processing of radiation inputs from the WRF radiation files.
'
)
Loading