From 8b3607535ad9123c4bcff18c7bb6cf234d7e9553 Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 12:50:42 +0200 Subject: [PATCH 01/16] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b3d3e08..03473c5 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ **Scripts for processing of WRF-CHEM files to PALM dynamic driver.** + Version: v.1.0 The scripts are based on the [wrf-CAMx interface](https://palm.muk.uni-hannover.de/trac/wiki/doc/app/iofiles/wrf_interface) -Usage: palm_dynamic -c [-w] -The optional parameter -w allows to skip horizontal and vertical -interpolation in case it is already done. -Example: python3 palm_dynamic.py -c augsburg_validation_summer_10 +Usage: `palm_dynamic -c [-w]` +The optional parameter -w allows to skip horizontal and vertical interpolation in case it is already done. +Example: `python3 palm_dynamic.py -c augsburg_validation_summer_10` The script requires name of the case configuration on the command line. The corresponding configuration files are placed in subdirectory -- GitLab From b72808334fe36cc4419e0d241187563ff390d6c4 Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 12:55:07 +0200 Subject: [PATCH 02/16] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 03473c5..48d39cc 100644 --- a/README.md +++ b/README.md @@ -5,14 +5,15 @@ Version: v.1.0 The scripts are based on the [wrf-CAMx interface](https://palm.muk.uni-hannover.de/trac/wiki/doc/app/iofiles/wrf_interface) Usage: `palm_dynamic -c [-w]` + The optional parameter -w allows to skip horizontal and vertical interpolation in case it is already done. + Example: `python3 palm_dynamic.py -c augsburg_validation_summer_10` -The script requires name of the case configuration on the command line. -The corresponding configuration files are placed in subdirectory -"configuration" and they are named .conf. The values which -agree with defaults need not be present in the user config. The file -palm_dynamic_init.py contains setting and calculation of standard +The script requires the following: + * The name of the case configuration on the command line. + * The corresponding configuration file `config_name.conf` in the `configuration` subdirectory. + * The values which agree with defaults do not need to be set. `palm_dynamic_init.py` contains setting and calculation of standard initialization values for particular system and can be adjusted. Needed modules are: -- GitLab From e4bc04e5e0d3bb74fd1630bd3aaa74d33c0e0c0c Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 12:56:19 +0200 Subject: [PATCH 03/16] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 48d39cc..451d72e 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ The optional parameter -w allows to skip horizontal and vertical interpolation i Example: `python3 palm_dynamic.py -c augsburg_validation_summer_10` The script requires the following: - * The name of the case configuration on the command line. - * The corresponding configuration file `config_name.conf` in the `configuration` subdirectory. - * The values which agree with defaults do not need to be set. `palm_dynamic_init.py` contains setting and calculation of standard + - The name of the case configuration on the command line. + - The corresponding configuration file `config_name.conf` in the `configuration` subdirectory. + - The values which agree with defaults do not need to be set. `palm_dynamic_init.py` contains setting and calculation of standard initialization values for particular system and can be adjusted. Needed modules are: -- GitLab From 31068dcb19471239c71cf8ee03f9e93fe8e4446c Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 12:56:54 +0200 Subject: [PATCH 04/16] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 451d72e..18f6785 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,9 @@ Example: `python3 palm_dynamic.py -c augsburg_validation_summer_10` The script requires the following: - The name of the case configuration on the command line. + - The corresponding configuration file `config_name.conf` in the `configuration` subdirectory. + - The values which agree with defaults do not need to be set. `palm_dynamic_init.py` contains setting and calculation of standard initialization values for particular system and can be adjusted. -- GitLab From cc4d186100f71f20234e46c8df57863ed43e91e1 Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 12:58:18 +0200 Subject: [PATCH 05/16] Update README.md --- README.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 18f6785..496cad6 100644 --- a/README.md +++ b/README.md @@ -6,19 +6,16 @@ The scripts are based on the [wrf-CAMx interface](https://palm.muk.uni-hannover. Usage: `palm_dynamic -c [-w]` -The optional parameter -w allows to skip horizontal and vertical interpolation in case it is already done. +The optional parameter -w allows to skip horizontal and vertical interpolation in case it has already been done. Example: `python3 palm_dynamic.py -c augsburg_validation_summer_10` The script requires the following: - - The name of the case configuration on the command line. +- The name of the case configuration on the command line. +- The corresponding configuration file `config_name.conf` in the `configuration` subdirectory. +- The values which agree with defaults do not need to be set. `palm_dynamic_init.py` contains setting and calculation of standard initialization values for particular system and can be adjusted. - - The corresponding configuration file `config_name.conf` in the `configuration` subdirectory. - - - The values which agree with defaults do not need to be set. `palm_dynamic_init.py` contains setting and calculation of standard -initialization values for particular system and can be adjusted. - -Needed modules are: +**Required modules:** - [numpy](https://pypi.org/project/numpy) - [scipy](https://pypi.org/project/scipy) - [pyproj](https://pypi.org/project/pyproj) -- GitLab From 15a19660d87e963f80fb66e01e67672d1e591edd Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 13:02:36 +0200 Subject: [PATCH 06/16] Update README.md --- README.md | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 496cad6..9b80702 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,13 @@ Version: v.1.0 The scripts are based on the [wrf-CAMx interface](https://palm.muk.uni-hannover.de/trac/wiki/doc/app/iofiles/wrf_interface) -Usage: `palm_dynamic -c [-w]` +**Usage:** +- `palm_dynamic -c [-w]` +- The optional parameter -w allows to skip horizontal and vertical interpolation in case it has already been done. +- Example: `python3 palm_dynamic.py -c augsburg_validation_summer_10` -The optional parameter -w allows to skip horizontal and vertical interpolation in case it has already been done. -Example: `python3 palm_dynamic.py -c augsburg_validation_summer_10` - -The script requires the following: +**Script requirement:** - The name of the case configuration on the command line. - The corresponding configuration file `config_name.conf` in the `configuration` subdirectory. - The values which agree with defaults do not need to be set. `palm_dynamic_init.py` contains setting and calculation of standard initialization values for particular system and can be adjusted. @@ -22,18 +22,15 @@ The script requires the following: - [netCDF4](https://pypi.org/project/netCDF4) - [metpy](https://unidata.github.io/MetPy) -In the current version, the only supported projection in WRF-CHEM is -Lambertiam conformal conic, which is WRF default and recommended projection for +In the current version, the only supported projection in WRF-CHEM is Lambertiam conformal conic, which is WRF default and recommended projection for mid-latitudes. -The scripts support both variants of WRF-CHEM vertical levels - the sigma levels -(default until WRF version 3.*) and the hybrid levels (default since WRF 4.*). -However, it is necessary to correctly configure this option via the setting -"wrf_hybrid_levs = True/False". +The scripts support both variants of WRF-CHEM vertical levels - the sigma levels (default until WRF version 3.*) and the hybrid levels (default since WRF 4.*). However, it is necessary to correctly configure this option via the setting `wrf_hybrid_levs = True/False`. -# CONFIGURATION +# Configuration parameters Description of the particular configuration options are (defaults are in parenthesis): -## 1. Domain and case related configurations + +## Domain and case related configurations - domain name of the simulation case ("") - resolution name of the particular domain resolution scenario ("") - scenario name of the individual scenario in the case ("") @@ -54,7 +51,7 @@ Description of the particular configuration options are (defaults are in parenth - origin_time origin time of the PALM simulation in the format YYYY-MM-DD hh:mm:ss (""). The default value "" means that the value is read from the global attribute of the static driver. - simulation_hours extent of the simulation in hours -## 2. WRF-CHEM related configurations +## WRF-CHEM related configurations - wrf_dir_name file path of the wrf-chem input files (""). - wrf_file_mask file mask of the wrf-chem input files ("wrfout_*.e000") - wrf_hybrid_levs True means hybrid levels in WRF files, False means sigma levels (True). @@ -74,7 +71,7 @@ Description of the particular configuration options are (defaults are in parenth - wrf_rad_file_mask file mask of the wrf radiation input files ("auxhist6_*"). The default setting reads radiation from WRF auxiliary history files. This setting allows to use finer time step for WRF radiation outputs than for other values. - radiation_smoothing_distance smoothing distance for radiation values in m (10000.0). -## 3. Horizontal parameters of the PALM domain which have to be set in case of grid_from_static = False +## Horizontal parameters of the PALM domain which have to be set in case of grid_from_static = False - nx, ny number of horizontal grids of the domain in x and y directions - dx, dy grid cell size of the domain in x and y directions - origin_x, origin_y origin x and y of the domain -- GitLab From 10d0e97711f41b56b91f253bede799141c4b6e54 Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 13:05:18 +0200 Subject: [PATCH 07/16] Update README.md --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 9b80702..3b5d29f 100644 --- a/README.md +++ b/README.md @@ -31,25 +31,25 @@ The scripts support both variants of WRF-CHEM vertical levels - the sigma levels Description of the particular configuration options are (defaults are in parenthesis): ## Domain and case related configurations - - domain name of the simulation case ("") - - resolution name of the particular domain resolution scenario ("") - - scenario name of the individual scenario in the case ("") + - `domain` Name of the simulation case ("") + - resolution Name of the particular domain resolution scenario ("") + - scenario Mame of the individual scenario in the case ("") - nested_domain False indicates parent and True nested domain. (False) - - dynamic_driver_file file name of output dynamic driver (""). + - dynamic_driver_file File name of output dynamic driver (""). - grid_from_static True - the grid parameters are imported from the static driver, False - they are prescribed in the config (True) - - static_driver_file file name of the static driver in case of grid_from_static (""). - - proj_palm reference coordinate system of PALM simulation ("EPSG:32633") - - proj_wgs84 reference coordinate system of lon-lat projection ("EPSG:4326") + - static_driver_file File name of the static driver in case of grid_from_static (""). + - proj_palm Reference coordinate system of PALM simulation ("EPSG:32633") + - proj_wgs84 Reference coordinate system of lon-lat projection ("EPSG:4326") - - dz height of the PALM vertical grid layer (0.0). The default value dz = 0.0 means dz is assigned from dx. - - nz number of vertical layers of PALM domain (200) - - dz_stretch_level height in meters from which stretching of vertical levels starts in PALM (5000.0) - - dz_stretch_factor coefficient of the stretching of the vertical layers in PALM (1.0) - - dz_max max height of the stretched vertical layers (100.0) + - dz Height of the PALM vertical grid layer (0.0). The default value dz = 0.0 means dz is assigned from dx. + - nz Number of vertical layers of PALM domain (200) + - dz_stretch_level Height in meters from which stretching of vertical levels starts in PALM (5000.0) + - dz_stretch_factor Coefficient of the stretching of the vertical layers in PALM (1.0) + - dz_max Max height of the stretched vertical layers (100.0) - - origin_time origin time of the PALM simulation in the format YYYY-MM-DD hh:mm:ss (""). The default value "" means that the value is read from the global attribute of the static driver. - - simulation_hours extent of the simulation in hours + - origin_time Origin time of the PALM simulation in the format YYYY-MM-DD hh:mm:ss (""). Default reads from static driver. + - simulation_hours Extent of the simulation in hours ## WRF-CHEM related configurations - wrf_dir_name file path of the wrf-chem input files (""). -- GitLab From 35706afcf5bc7b52b3733fab026aa4b3d9e9c387 Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 13:06:35 +0200 Subject: [PATCH 08/16] Update README.md --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 3b5d29f..9cad395 100644 --- a/README.md +++ b/README.md @@ -31,25 +31,25 @@ The scripts support both variants of WRF-CHEM vertical levels - the sigma levels Description of the particular configuration options are (defaults are in parenthesis): ## Domain and case related configurations - - `domain` Name of the simulation case ("") - - resolution Name of the particular domain resolution scenario ("") - - scenario Mame of the individual scenario in the case ("") - - nested_domain False indicates parent and True nested domain. (False) +- domain Name of the simulation case ("") +- resolution Name of the particular domain resolution scenario ("") +- scenario Mame of the individual scenario in the case ("") +- nested_domain False indicates parent and True nested domain. (False) - - dynamic_driver_file File name of output dynamic driver (""). - - grid_from_static True - the grid parameters are imported from the static driver, False - they are prescribed in the config (True) - - static_driver_file File name of the static driver in case of grid_from_static (""). - - proj_palm Reference coordinate system of PALM simulation ("EPSG:32633") - - proj_wgs84 Reference coordinate system of lon-lat projection ("EPSG:4326") +- dynamic_driver_file File name of output dynamic driver (""). +- grid_from_static True - the grid parameters are imported from the static driver, False - they are prescribed in the config (True) +- static_driver_file File name of the static driver in case of grid_from_static (""). +- proj_palm Reference coordinate system of PALM simulation ("EPSG:32633") +- proj_wgs84 Reference coordinate system of lon-lat projection ("EPSG:4326") - - dz Height of the PALM vertical grid layer (0.0). The default value dz = 0.0 means dz is assigned from dx. - - nz Number of vertical layers of PALM domain (200) - - dz_stretch_level Height in meters from which stretching of vertical levels starts in PALM (5000.0) - - dz_stretch_factor Coefficient of the stretching of the vertical layers in PALM (1.0) - - dz_max Max height of the stretched vertical layers (100.0) +- dz Height of the PALM vertical grid layer (0.0). The default value dz = 0.0 means dz is assigned from dx. +- nz Number of vertical layers of PALM domain (200) +- dz_stretch_level Height in meters from which stretching of vertical levels starts in PALM (5000.0) +- dz_stretch_factor Coefficient of the stretching of the vertical layers in PALM (1.0) +- dz_max Max height of the stretched vertical layers (100.0) - - origin_time Origin time of the PALM simulation in the format YYYY-MM-DD hh:mm:ss (""). Default reads from static driver. - - simulation_hours Extent of the simulation in hours +- origin_time Origin time of the PALM simulation in the format YYYY-MM-DD hh:mm:ss (""). Default reads from static driver. +- simulation_hours Extent of the simulation in hours ## WRF-CHEM related configurations - wrf_dir_name file path of the wrf-chem input files (""). -- GitLab From c9c8ac966ddd2bdc63b400a15e21369a5b109181 Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 13:14:48 +0200 Subject: [PATCH 09/16] Update README.md --- README.md | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 9cad395..774fb98 100644 --- a/README.md +++ b/README.md @@ -31,38 +31,38 @@ The scripts support both variants of WRF-CHEM vertical levels - the sigma levels Description of the particular configuration options are (defaults are in parenthesis): ## Domain and case related configurations -- domain Name of the simulation case ("") -- resolution Name of the particular domain resolution scenario ("") -- scenario Mame of the individual scenario in the case ("") -- nested_domain False indicates parent and True nested domain. (False) + - domain Name of the simulation case (""). + - resolution Name of the particular domain resolution scenario (""). + - scenario Name of the individual scenario in the case (""). + - nested_domain False indicates parent and True nested domain. (False). -- dynamic_driver_file File name of output dynamic driver (""). -- grid_from_static True - the grid parameters are imported from the static driver, False - they are prescribed in the config (True) -- static_driver_file File name of the static driver in case of grid_from_static (""). -- proj_palm Reference coordinate system of PALM simulation ("EPSG:32633") -- proj_wgs84 Reference coordinate system of lon-lat projection ("EPSG:4326") + - dynamic_driver_file File name of output dynamic driver (""). + - grid_from_static True - import from static driver, False - given in config (True). + - static_driver_file File name of the static driver in case of grid_from_static (""). + - proj_palm Reference coordinate system of PALM simulation ("EPSG:32633"). + - proj_wgs84 Reference coordinate system of lon-lat projection ("EPSG:4326"). -- dz Height of the PALM vertical grid layer (0.0). The default value dz = 0.0 means dz is assigned from dx. -- nz Number of vertical layers of PALM domain (200) -- dz_stretch_level Height in meters from which stretching of vertical levels starts in PALM (5000.0) -- dz_stretch_factor Coefficient of the stretching of the vertical layers in PALM (1.0) -- dz_max Max height of the stretched vertical layers (100.0) + - dz Height of the PALM vertical grid layer (0.0). The default value dz = 0.0 means dz is assigned from dx. + - nz Number of vertical layers of PALM domain (200). + - dz_stretch_level Height in meters from which stretching of vertical levels starts in PALM (5000.0). + - dz_stretch_factor Coefficient of the stretching of the vertical layers in PALM (1.0). + - dz_max Max height of the stretched vertical layers (100.0). -- origin_time Origin time of the PALM simulation in the format YYYY-MM-DD hh:mm:ss (""). Default reads from static driver. -- simulation_hours Extent of the simulation in hours + - origin_time Origin time of the PALM simulation in the format YYYY-MM-DD hh:mm:ss (""). Default reads from static driver. + - simulation_hours Extent of the simulation in hours. ## WRF-CHEM related configurations - - wrf_dir_name file path of the wrf-chem input files (""). - - wrf_file_mask file mask of the wrf-chem input files ("wrfout_*.e000") + - wrf_dir_name File path of the wrf-chem input files (""). + - wrf_file_mask File mask of the wrf-chem input files ("wrfout_*.e000") - wrf_hybrid_levs True means hybrid levels in WRF files, False means sigma levels (True). - vinterp_terrain_smoothing - the standard deviation for Gaussian kernel of smoothing method of the PALM terrain for WRF vertical interpolation to avoid sharp horizontal gradients. Value None disables the smoothing. (None) - - interp_dir_name file path to interpolated files - - wrfchem_spec wrf-chem chemical species to be included in dynamic driver, list of gaseous species: no, no2, no3, pm10, PM2_5_DRY, o3, co, hno3, ho, h2o2, nh3 + - interp_dir_name File path to interpolated files + - wrfchem_spec Wrf-chem chemical species to be included in dynamic driver, `list of gaseous species: no, no2, no3, pm10, PM2_5_DRY, o3, co, hno3, ho, h2o2, nh3` - aerosol_wrfchem True means aerosols are included, (False) - - wrfchem_bin_limits wrf-chem aerosol siz bins `[3.9e-8, 1.56e-7, 6.25e-7, 2.5e-6, 1.0e-5]` - - listspec PALM aerosol species, only aerosols, options `listspec = ['SO4', 'OC', 'BC', 'DU', 'SS', 'NH', 'NO']` + - wrfchem_bin_limits Wrf-chem aerosol siz bins `[3.9e-8, 1.56e-7, 6.25e-7, 2.5e-6, 1.0e-5]` + - listspec PALM aerosol species, only aerosols, options __listspec = ['SO4', 'OC', 'BC', 'DU', 'SS', 'NH', 'NO']__ - nbin SALSA parameter, # size bins in subrange `[1,7]` - reglim SALSA parameter, subrange limits `[3.9e-8, 5.0e-8, 2.5e-6]` - nf2a SALSA parameter, insoluble fraction, currently only soluble supported in PALM (1.0) -- GitLab From 96d954d15be848654e6b32befdf1d811799b9368 Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 13:18:41 +0200 Subject: [PATCH 10/16] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 774fb98..62ca6c2 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Description of the particular configuration options are (defaults are in parenth - aerosol_wrfchem True means aerosols are included, (False) - wrfchem_bin_limits Wrf-chem aerosol siz bins `[3.9e-8, 1.56e-7, 6.25e-7, 2.5e-6, 1.0e-5]` - - listspec PALM aerosol species, only aerosols, options __listspec = ['SO4', 'OC', 'BC', 'DU', 'SS', 'NH', 'NO']__ + - listspec PALM aerosol species, only aerosols, options listspec = ['SO4', 'OC', 'BC', 'DU', 'SS', 'NH', 'NO'] - nbin SALSA parameter, # size bins in subrange `[1,7]` - reglim SALSA parameter, subrange limits `[3.9e-8, 5.0e-8, 2.5e-6]` - nf2a SALSA parameter, insoluble fraction, currently only soluble supported in PALM (1.0) @@ -72,10 +72,10 @@ Description of the particular configuration options are (defaults are in parenth - radiation_smoothing_distance smoothing distance for radiation values in m (10000.0). ## Horizontal parameters of the PALM domain which have to be set in case of grid_from_static = False - - nx, ny number of horizontal grids of the domain in x and y directions - - dx, dy grid cell size of the domain in x and y directions - - origin_x, origin_y origin x and y of the domain - - origin_z origin of the domain in the vertical direction +`nx, ny` Number of horizontal grids of the domain in x and y directions +`dx, dy` Grid cell size of the domain in x and y directions +`origin_x, origin_y` Origin x and y of the domain +`origin_z` Origin of the domain in the vertical direction ### Major Changes from wrf + CAMx scripts made to wrf_chem_for_palm - Proj future warning resolved -- GitLab From 8814b61005b6815b0344c2c4442f64f4462084b6 Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 13:19:33 +0200 Subject: [PATCH 11/16] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 62ca6c2..c3c8207 100644 --- a/README.md +++ b/README.md @@ -72,10 +72,10 @@ Description of the particular configuration options are (defaults are in parenth - radiation_smoothing_distance smoothing distance for radiation values in m (10000.0). ## Horizontal parameters of the PALM domain which have to be set in case of grid_from_static = False -`nx, ny` Number of horizontal grids of the domain in x and y directions -`dx, dy` Grid cell size of the domain in x and y directions -`origin_x, origin_y` Origin x and y of the domain -`origin_z` Origin of the domain in the vertical direction +* `nx, ny` Number of horizontal grids of the domain in x and y directions. +* `dx, dy` Grid cell size of the domain in x and y directions. +* `origin_x, origin_y` Origin x and y of the domain. +* `origin_z` Origin of the domain in the vertical direction. ### Major Changes from wrf + CAMx scripts made to wrf_chem_for_palm - Proj future warning resolved -- GitLab From 78678ae0faba9575dfd5b18c840d42de940477a6 Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 13:26:03 +0200 Subject: [PATCH 12/16] Update README.md --- README.md | 65 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index c3c8207..e64197e 100644 --- a/README.md +++ b/README.md @@ -31,45 +31,46 @@ The scripts support both variants of WRF-CHEM vertical levels - the sigma levels Description of the particular configuration options are (defaults are in parenthesis): ## Domain and case related configurations - - domain Name of the simulation case (""). - - resolution Name of the particular domain resolution scenario (""). - - scenario Name of the individual scenario in the case (""). - - nested_domain False indicates parent and True nested domain. (False). +* `domain` + Name of the simulation case (""). +* `resolution` Name of the particular domain resolution scenario (""). +* `scenario` Name of the individual scenario in the case (""). +* `nested_domain` False indicates parent and True nested domain. (False). - - dynamic_driver_file File name of output dynamic driver (""). - - grid_from_static True - import from static driver, False - given in config (True). - - static_driver_file File name of the static driver in case of grid_from_static (""). - - proj_palm Reference coordinate system of PALM simulation ("EPSG:32633"). - - proj_wgs84 Reference coordinate system of lon-lat projection ("EPSG:4326"). +* `dynamic_driver_file` File name of output dynamic driver (""). +* `grid_from_static` True - import from static driver, False - given in config (True). +* `static_driver_file` File name of the static driver in case of grid_from_static (""). +* `proj_palm` Reference coordinate system of PALM simulation ("EPSG:32633"). +* `proj_wgs84` Reference coordinate system of lon-lat projection ("EPSG:4326"). - - dz Height of the PALM vertical grid layer (0.0). The default value dz = 0.0 means dz is assigned from dx. - - nz Number of vertical layers of PALM domain (200). - - dz_stretch_level Height in meters from which stretching of vertical levels starts in PALM (5000.0). - - dz_stretch_factor Coefficient of the stretching of the vertical layers in PALM (1.0). - - dz_max Max height of the stretched vertical layers (100.0). +* `dz` Height of the PALM vertical grid layer (0.0). The default value dz = 0.0 means dz is assigned from dx. +* `nz` Number of vertical layers of PALM domain (200). +* `dz_stretch_level` Height in meters from which stretching of vertical levels starts in PALM (5000.0). +* `dz_stretch_factor` Coefficient of the stretching of the vertical layers in PALM (1.0). +* `dz_max` Max height of the stretched vertical layers (100.0). - - origin_time Origin time of the PALM simulation in the format YYYY-MM-DD hh:mm:ss (""). Default reads from static driver. - - simulation_hours Extent of the simulation in hours. +* `origin_time` Origin time of the PALM simulation in the format YYYY-MM-DD hh:mm:ss (""). Default reads from static driver. +* `simulation_hours` Extent of the simulation in hours. ## WRF-CHEM related configurations - - wrf_dir_name File path of the wrf-chem input files (""). - - wrf_file_mask File mask of the wrf-chem input files ("wrfout_*.e000") - - wrf_hybrid_levs True means hybrid levels in WRF files, False means sigma levels (True). - - vinterp_terrain_smoothing - - the standard deviation for Gaussian kernel of smoothing method of the PALM terrain for WRF vertical interpolation to avoid sharp horizontal gradients. Value None disables the smoothing. (None) - - interp_dir_name File path to interpolated files - - wrfchem_spec Wrf-chem chemical species to be included in dynamic driver, `list of gaseous species: no, no2, no3, pm10, PM2_5_DRY, o3, co, hno3, ho, h2o2, nh3` +* `wrf_dir_name` File path of the wrf-chem input files (""). +* `wrf_file_mask` File mask of the wrf-chem input files ("wrfout_*.e000") +* `wrf_hybrid_levs` True means hybrid levels in WRF files, False means sigma levels (True). +* `vinterp_terrain_smoothing` + The standard deviation for Gaussian kernel of smoothing method of the PALM terrain for WRF vertical interpolation to avoid sharp horizontal gradients. Value None disables the smoothing. (None) +* `interp_dir_name` File path to interpolated files +* `wrfchem_spec` Wrf-chem chemical species to be included in dynamic driver, `list of gaseous species: no, no2, no3, pm10, PM2_5_DRY, o3, co, hno3, ho, h2o2, nh3` - - aerosol_wrfchem True means aerosols are included, (False) - - wrfchem_bin_limits Wrf-chem aerosol siz bins `[3.9e-8, 1.56e-7, 6.25e-7, 2.5e-6, 1.0e-5]` - - listspec PALM aerosol species, only aerosols, options listspec = ['SO4', 'OC', 'BC', 'DU', 'SS', 'NH', 'NO'] - - nbin SALSA parameter, # size bins in subrange `[1,7]` - - reglim SALSA parameter, subrange limits `[3.9e-8, 5.0e-8, 2.5e-6]` - - nf2a SALSA parameter, insoluble fraction, currently only soluble supported in PALM (1.0) +* `aerosol_wrfchem` True means aerosols are included, (False) +* `wrfchem_bin_limits` Wrf-chem aerosol siz bins `[3.9e-8, 1.56e-7, 6.25e-7, 2.5e-6, 1.0e-5]` +* `listspec` PALM aerosol species, only aerosols, options 'listspec = ['SO4', 'OC', 'BC', 'DU', 'SS', 'NH', 'NO']' +* `nbin` SALSA parameter, # size bins in subrange `[1,7]` +* `reglim` SALSA parameter, subrange limits `[3.9e-8, 5.0e-8, 2.5e-6]` +* `nf2a` SALSA parameter, insoluble fraction, currently only soluble supported in PALM (1.0) - - radiation_from_wrf enable or disable processing of radiation from WRF files (True). - - wrf_rad_file_mask file mask of the wrf radiation input files ("auxhist6_*"). The default setting reads radiation from WRF auxiliary history files. This setting allows to use finer time step for WRF radiation outputs than for other values. - - radiation_smoothing_distance smoothing distance for radiation values in m (10000.0). +* `radiation_from_wrf` Enable or disable processing of radiation from WRF files (True). +* `wrf_rad_file_mask` File mask of the wrf radiation input files ("auxhist6_*"). The default setting reads radiation from WRF auxiliary history files. This setting allows to use finer time step for WRF radiation outputs than for other values. +* `radiation_smoothing_distance` Smoothing distance for radiation values in m (10000.0). ## Horizontal parameters of the PALM domain which have to be set in case of grid_from_static = False * `nx, ny` Number of horizontal grids of the domain in x and y directions. -- GitLab From c72b3c1fb86a08e4881e7d1121101f8189619004 Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 13:26:47 +0200 Subject: [PATCH 13/16] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e64197e..8c13d08 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Description of the particular configuration options are (defaults are in parenth ## Domain and case related configurations * `domain` - Name of the simulation case (""). + - Name of the simulation case (""). * `resolution` Name of the particular domain resolution scenario (""). * `scenario` Name of the individual scenario in the case (""). * `nested_domain` False indicates parent and True nested domain. (False). -- GitLab From 7ad5c782f5f1f092a5e9d38b607d5e35dcd89504 Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 13:28:13 +0200 Subject: [PATCH 14/16] Update README.md --- README.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8c13d08..876ccf6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -**Scripts for processing of WRF-CHEM files to PALM dynamic driver.** +#Scripts for processing of WRF-CHEM files to PALM dynamic driver.# Version: v.1.0 @@ -27,12 +27,11 @@ mid-latitudes. The scripts support both variants of WRF-CHEM vertical levels - the sigma levels (default until WRF version 3.*) and the hybrid levels (default since WRF 4.*). However, it is necessary to correctly configure this option via the setting `wrf_hybrid_levs = True/False`. -# Configuration parameters +## Configuration parameters Description of the particular configuration options are (defaults are in parenthesis): -## Domain and case related configurations -* `domain` - - Name of the simulation case (""). +### Domain and case related configurations +* `domain` Name of the simulation case (""). * `resolution` Name of the particular domain resolution scenario (""). * `scenario` Name of the individual scenario in the case (""). * `nested_domain` False indicates parent and True nested domain. (False). @@ -40,8 +39,8 @@ Description of the particular configuration options are (defaults are in parenth * `dynamic_driver_file` File name of output dynamic driver (""). * `grid_from_static` True - import from static driver, False - given in config (True). * `static_driver_file` File name of the static driver in case of grid_from_static (""). -* `proj_palm` Reference coordinate system of PALM simulation ("EPSG:32633"). -* `proj_wgs84` Reference coordinate system of lon-lat projection ("EPSG:4326"). +* `proj_palm` Reference coordinate system of PALM simulation ("EPSG:32633"). +* `proj_wgs84` Reference coordinate system of lon-lat projection ("EPSG:4326"). * `dz` Height of the PALM vertical grid layer (0.0). The default value dz = 0.0 means dz is assigned from dx. * `nz` Number of vertical layers of PALM domain (200). @@ -52,7 +51,7 @@ Description of the particular configuration options are (defaults are in parenth * `origin_time` Origin time of the PALM simulation in the format YYYY-MM-DD hh:mm:ss (""). Default reads from static driver. * `simulation_hours` Extent of the simulation in hours. -## WRF-CHEM related configurations +### WRF-CHEM related configurations * `wrf_dir_name` File path of the wrf-chem input files (""). * `wrf_file_mask` File mask of the wrf-chem input files ("wrfout_*.e000") * `wrf_hybrid_levs` True means hybrid levels in WRF files, False means sigma levels (True). @@ -72,13 +71,13 @@ Description of the particular configuration options are (defaults are in parenth * `wrf_rad_file_mask` File mask of the wrf radiation input files ("auxhist6_*"). The default setting reads radiation from WRF auxiliary history files. This setting allows to use finer time step for WRF radiation outputs than for other values. * `radiation_smoothing_distance` Smoothing distance for radiation values in m (10000.0). -## Horizontal parameters of the PALM domain which have to be set in case of grid_from_static = False +### Horizontal parameters of the PALM domain which have to be set in case of grid_from_static = False * `nx, ny` Number of horizontal grids of the domain in x and y directions. * `dx, dy` Grid cell size of the domain in x and y directions. * `origin_x, origin_y` Origin x and y of the domain. * `origin_z` Origin of the domain in the vertical direction. -### Major Changes from wrf + CAMx scripts made to wrf_chem_for_palm +#### Major Changes from wrf + CAMx scripts made to wrf_chem_for_palm - Proj future warning resolved - Chemical species are read from wrf-chem files and interpolated at the same time as the dynamic variables - Interpolated files are saved to a different directory than the wrf-chem data files -- GitLab From bec9385d551a0e18d0db20f6e67f8e38bcddceab Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 13:28:29 +0200 Subject: [PATCH 15/16] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 876ccf6..5b94d46 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#Scripts for processing of WRF-CHEM files to PALM dynamic driver.# +#Scripts for processing of WRF-CHEM files to PALM dynamic driver. Version: v.1.0 -- GitLab From 15981ce28659189d2a713ab65a1462f450f93062 Mon Sep 17 00:00:00 2001 From: dupreeda Date: Tue, 2 Aug 2022 13:28:38 +0200 Subject: [PATCH 16/16] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b94d46..c64d056 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#Scripts for processing of WRF-CHEM files to PALM dynamic driver. +# Scripts for processing of WRF-CHEM files to PALM dynamic driver. Version: v.1.0 -- GitLab